Error NETSDK1047: Assets file 'project.assets.json' doesn't have a target for '.NETCoreApp,Version=v5.0/linux-x64'.
See original GitHub issueI have an automated build pipeline in Azure DevOps and since I updated my project to .NET Preview 7 it throws this error during the build phase. Before this step a restore is successfully completed. My project file already has framwork and runtime identifiers defined as shown:
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifiers>win-x86;win-x64;win-arm;linux-x64;linux-arm</RuntimeIdentifiers>
The pipeline passed during Preview 6 with no other changes made to the project.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (6 by maintainers)
Top Results From Across the Web
NETSDK1005 and NETSDK1047: Asset file is missing target
When the .NET SDK issues error NETSDK1005 or NETSDK1047, the project's assets file is missing information on one of your target frameworks.
Read more >Assets file project.assets.json doesn't have a target for 'net6.0'
I found the problem and it indeed had to do with restoring NuGet Packages, in that I have a connection to a corporate...
Read more >Your post says "win
I have the error: Asset file 'project.assets.json' has no target for 'net6.0/win -x64'. Check that the restore ran ...
Read more >How to Fix "Error NETSDK1005 Assets File project.assets.json ...
json ' doesn't have a target for 'netstandard2.0'. Ensure that restore has run and that you have included 'netstandard2.0' in the ...
Read more >Assets File 'c:\xxxxxx\obj\project.assets.json' doesn't have a ...
Error details: Description: Assets file 'c:\xxxxxxx\obj\project.assets.json' doesn't have a target for '.NETStandard,Version=v2.0'.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What should I do to get Azure DevOps to build the project?
Oh, wait, never mind, I was looking at the wrong build. It passed.