-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet restore/Visual Studio conflicting with .esproj + Nx project.json #13512
Comments
Team Triage: Please attach a minimal repro ZIP with a project we can restore to reproduce the problem and investigate further. |
You should be able to reproduce it with the above project. |
I was able to reproduce the issue using the provided example solution. |
In case it helps, I see a similar issue with my Example: |
Thanks for the suggestion, I've just tried it: <Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</Project> and it seems to still have the same problem:
I'd guess it's a different issue. |
Can you try with latest version @Assura-Mark? I pulled your zip file and got it working with the following
Notes
I use |
I've updated to dotnet 8.0.303
I've also updated my .esproj to use the same Microsoft.VisualStudio.JavaScript.Sdk version as you've mentioned, unfortunately it still appears to be having the issue.
Could the global.json you've mentioned be helping? I've not looked into using it before. |
It must be Visual Studio/Windows + Good luck trying to solve this! Maybe try unlinking |
|
I faced exactly the same problem with nx project. Fortunately I was able to find a workaround. You need to add <Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.1184077">
<PropertyGroup>
+ <ResolveNuGetPackages>false</ResolveNuGetPackages>
</PropertyGroup>
[...]
</Project> then you need to create a JSON file with content: {
"frameworks": {
"net8.0": {}
}
} |
NuGet Product Used
dotnet.exe, Visual Studio Package Management UI
Product Version
Visual Studio 17.10.1, dotnet 8.0.300
Worked before?
Visual Studio 17.9.1
Impact
It's more difficult to complete my work
Repro Steps & Context
Steps:
Context:
I'm using an .esproj that contains an Nx project. The Nx project adds a project.json file which NuGet appears to be trying to process now - previously it was ignored.
I've had limited success in the command line by forcing
<RestoreProjectStyle>Unknown</RestoreProjectStyle>
in the .esproj, but it doesn't appear to be respected by Visual Studio's package management UI.Verbose Logs
The text was updated successfully, but these errors were encountered: