-
Notifications
You must be signed in to change notification settings - Fork 252
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
[Bug Bash] An error occurred when reloading project according to warning tips after installing “Fsharp.Net.SDk” package for “F# Console Application (.NET framework)” project #13896
Comments
I'm not able to repro this. The package installs and there's no warnings/errors. I wonder if your machine has another version of MSBuild in the GAC or something and it's finding the wrong targets it expects for that SDK. On your repro machine, could you run the following PowerShell Developer Command Prompt and compare it to the output from my machine below. My GAC command output
|
Hi @donnie-msft, the framework we were using before was 4.8.1, we can still repro this issue when we use framework 4.7 on VS Main\35511.74 + NuGet Client Dev\6.13.0.60, here is my GAC command output, could you please help to look at it? GAC command output
|
Can you install this package with CLI? If so, please collect an MSBuild binlog. |
Hi @donnie-msft, this issue is also repro when we use the CLI to install the package "FSharp.NET.Sdk" as below screenshot, the binlog file that is generated after installing the package is uploaded to the Note: We installed “Project System Tools 2017/2019” according to the first step you provided in above documentation when trying to collect binlogs in VS but the installation fails as follows: |
NuGet Product Used
Visual Studio Package Management UI
Product Version
NuGet Client Dev\6.13.0.50
Worked before?
It is not a regression since it also reproes on D16.11\34601.136 with implicit NuGet Client 5.11.6.4 and D17.12.5\35424.85 with implicit NuGet Client 6.12.0.129.
Impact
It bothers me. A fix would be nice
Repro Steps & Context
Notes:
The repro rate is 100%.
The package was installed successfully on step 4.
An additional error was showing on the top of VS after step 4 on D16.11\34601.136 with implicit NuGet Client 5.11.6.4 as the screenshot below.
Repro Steps:
Create a “F# Console Application (.NET framework)” project.
Right-click the project in Solution Explorer and select "Manage NuGet Packages…" menu item to open PM UI.
Click “Browse” tab and select “nuget.org” from Package source drop-down list.
Search 'FSharp.NET.Sdk ' package in the filter of “Browse” tab and click the ‘Install’ button on the right panel.
An error “MSB4057: The target "CollectNuGetAuditSuppressions" does not exist in the project.” occur in error list window.
Observe the top of VS and click the “Reload Projects” button.
Expected:
The project was reloaded successfully.
Actual:
An error “The project file cannot be opened by the project system, because it is missing some critical imports or the referenced SDK cannot be found.” occurred when reloading project as below screenshot. It makes the solution fail to use.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: