Closed dotMorten closed 3 years ago
@ryalanms This is related to .NET 6.0. This is a showstopper as we have no way to build things and target .NET 6 now. Is there a reason this is scheduled for 7.0? Or could we at least get a workaround?
@dotMorten I just opened #5426 which fixes the build of arcgis-toolkit-dotnet for me. Could you try it and see if it fixes yours ?
I opened it in main (aka .Net 7) but maybe the WPF team would like to backport it to .Net 6.
@ThomasGoulet73 You're a rock star!
Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions here. No? It is introduced with .NET 6 and/or VS2022 installer, but will even affect VS2019/.NET5 installs once installed
Problem description: Using an SDK that comes from a PackageReference (MSBuild.Sdk.Extras) in a WPF application is broken with WPF PackageReference support enabled. Setting
IncludePackageReferencesDuringMarkupCompilation
tofalse
works around the issue (but comes with other downsides). On a PC that only has VS2019 installed, the problem doesn't reproduce. If you install VS2022p3.1, the problem does reproduce, even from a VS2019 command prompt. The problem seems to occur just by installing the .NET 6 SDK, and will break even .NET 5 and .NET Framework builds.Actual behavior:
Expected behavior: Build completes.
Minimal repro: From a VS2019 or VS2022 prompt run: