microsoft/winforms-designer-extensibility

breaking change in .NET 8.0 SDK dotnet pack causes prepareTemplates.bat to fail

sineme opened this issue · 0 comments

In .Net 8.0 the default configuration of dotnet pack changed from Debug to Release (see https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/dotnet-pack-config)

Using .NET 8 SDK

> dotnet new install .\bin\Debug\Microsoft.WinForms.Designer.TypeEditorTemplate.1.1.0-prerelease-preview3.nupkg

then fails with

.\bin\Debug\Microsoft.WinForms.Designer.TypeEditorTemplate.1.1.0-prerelease-preview3.nupkg is not supported.

because the file does not exist.

Either the configuration needs to be specified dotnet pack -c Debug or the file path needs to be updated.