MSB4018 - "ResolvePackageDependencies" task fails with "Invalid framework version '2.0/win'" #13942
Labels
Area:NuGetAudit
Priority:1
High priority issues that must be resolved in the current sprint.
Product:dotnet.exe
RegressionFromPreviousRTM
A regression from the last RTM. Example: worked in 6.2, doesn't work in 6.3
Type:Bug
NuGet Product Used
MSBuild.exe
Product Version
MSBuild via VS 2022 17.12.0
Worked before?
Worked in VS 2022 17.11.5
Impact
It's more difficult to complete my work
Repro Steps & Context
The error is being emitted for PackageReference projects with the following attributes:
Assumedly, this is where the
2.0/win
comes from. There are many dozens of dependencies (package, product, etc), so determining how to singularly reproduce is exceedingly difficult.Building and running the project itself does not seem to be impacted, but the error displaying is causing much confusion with developers that have upgraded VS on our team.
Adding
<NuGetAuditMode>direct</NuGetAuditMode>
to Directory.Build.props based on the auditing mode change made as part of .NET 9 removes the error from the Error List.Verbose Logs
I can't get additional logs to show up in VS, but what shows in Error List is:
The text was updated successfully, but these errors were encountered: