question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error NETSDK1047: Assets file 'project.assets.json' doesn't have a target for '.NETCoreApp,Version=v5.0/linux-x64'.

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
BrunoBlanescommented, Aug 3, 2020

What should I do to get Azure DevOps to build the project?

1reaction
BrunoBlanescommented, Oct 12, 2020

Oh, wait, never mind, I was looking at the wrong build. It passed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found