-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Describe the bug
My solution contains *.esproj files.
When I call dotnet restore I get the following error:
error NU1012: Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-none
Here's what the esproj file looks like:
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.4338480"/>To Reproduce
I've tried to reproduce with a new solution that contains an ES project and the restore works just fine. I tried to compare all options and settings and I wasn't able to figure out why the dummy project works just fine while my private project doesn't.
I was hoping I can get any guidance on how to pinpoint the cause of this error.
Exceptions
error NU1012: Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-none
Further technical details
- When building the solution in VS it builds just fine
- My solution uses central package management (Directory.Packages.props)
- Related: Adding an
.esprojproject to the solution breaksdotnet list packageNuGet/Home#12817