microsoft / microsoft/CLRInstrumentationEngine
PR builds sometimes fail during build step with project.assets.json
Open
Nobody has claimed this yet.
bug
- Dominant language
- C++
- Stars
- 102
- Forks
- 52
- Avg merge
- 13h 11m
- Merged PRs (30d)
- 6
Description
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]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/Dependencies/LegacyDependencies.csproj and src/Dependencies/NativeDependencies.csproj, then inspect the restore and build steps for InstrumentationEngine.sln. Reproduce the intermittent build failure and determine why project.assets.json lacks the net461 target; done means the solution builds without NETSDK1005 in the affected projects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, csharp
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100