Skip to content

Repo to reproduce problem with build scripts shipped with .NET 6 pertaining to WPF projects

Notifications You must be signed in to change notification settings

kygagner/reproduce-net6-sdk-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET 6 Preview - Sdk NuGet packages broken for WPF projects

dotnet/wpf#5463

Issue Description

I have created a custom SDK. This SDK imports Microsoft.NET.Sdk to use its functionality and also extends the build with new functionality of its own. Whereas most projects build fine using the custom SDK, this is broken for WPF projects as of the .NET 6 preview (this worked in .NET 5). The error is as follows:

D:\GIT\sdk-test\WpfApp\WpfApp_z0ggbjqk_wpftmp.csproj(9,31): error MSB4236: The SDK 'MyCustomSdk/1.0.0' specified could not be found.

Steps to Reproduce

Consume a custom SDK as a NuGet package instead of Microsoft.NET.Sdk in a WPF project. The custom SDK should import Microsoft.NET.Sdk. This repo is an example, to try, simply run the build script:

.\build.ps1

versions & Configurations

  • MSBuild version: 17.0.0-preview-21460-01+8f208e609
  • dotnet version: 6.0.100-rc.1.21463.6
  • Windows 10 version: 1909

About

Repo to reproduce problem with build scripts shipped with .NET 6 pertaining to WPF projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published