Skip to content

Unable to restore solutions with *.esproj projects #52279

@weitzhandler

Description

@weitzhandler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions