Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WilliamXieMSFT opened this issue Nov 17, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@WilliamXieMSFT
Copy link
Member

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]
@WilliamXieMSFT WilliamXieMSFT added the bug Something isn't working label Nov 17, 2020
@WilliamXieMSFT
Copy link
Member Author

Current workaround is just to requeue the builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant