Skip to content

NETSDK1221 warning for wpftmp.csproj projects #44605

@KirillOsenkov

Description

@KirillOsenkov

There's a new warning when building WPF projects targeting net472 using desktop msbuild.exe /r:

C:\Program Files\dotnet\sdk\9.0.100-rc.2.24474.11\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(267,5): warning NETSDK1221: NuGetPackageRoot property is empty so package Microsoft.Net.Sdk.Compilers.Toolset cannot be used but it is recommended because your MSBuild and SDK versions are mismatched. Ensure you are building with '/restore /t:Build' and not '/t:Restore;Build'. [C:\proj\proj_o3rfveu0_wpftmp.csproj]

This is a breaking change and is potentially urgent, cc @marcpopMSFT

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions