microsoft / CLRInstrumentationEngine

The CLR Instrumentation Engine is a cooperation profiler that allows running multiple profiling extensions in the same process.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PR builds sometimes fail during build step with project.assets.json

WilliamXieMSFT opened this issue · comments

Build solution InstrumentationEngine.sln stage:

"D:\a\1\s\InstrumentationEngine.sln" (default target) (1) ->
"D:\a\1\s\tests\ApplicationInsightsCompatibility\Intercept.2.0.1.Tests\Intercept.2.0.1.Tests.csproj" (default target) (13) ->
"D:\a\1\s\src\Dependencies\LegacyDependencies.csproj" (default target) (14) ->
(ResolvePackageAssets target) -> 
  C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1005: Assets file 'D:\a\1\s\obj\LegacyDependencies\project.assets.json' doesn't have a target for 'net461'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. [D:\a\1\s\src\Dependencies\LegacyDependencies.csproj]


"D:\a\1\s\InstrumentationEngine.sln" (default target) (1) ->
"D:\a\1\s\tests\ApplicationInsightsCompatibility\Intercept.Latest.Tests\Intercept.Latest.Tests.csproj" (default target) (15) ->
"D:\a\1\s\src\Dependencies\NativeDependencies.csproj" (default target) (16) ->
  C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1005: Assets file 'D:\a\1\s\obj\NativeDependencies\project.assets.json' doesn't have a target for 'net461'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. [D:\a\1\s\src\Dependencies\NativeDependencies.csproj]

Current workaround is just to requeue the builds.