Open rido-min opened 6 months ago
In general you should not mix using the package with using the .NET SDK. For Web and Worker projects you should use the SDK support. For console projects, you should use the Package support.
Starting in 8.0.200, even console applications will be able to use the SDK support, so the motivation for the package will be much reduced.
Hi @rido-min uninstall Microsoft.NET.Build.Containers
and it should work fine
I was successfully creating containers with
dotnet publish /t:PublicContainer
, once my VS got updated to .NET8 SDK, the projects (still targeting .NET7) fail with.I noticed that removing the
<PackageReference Include="Microsoft.NET.Build.Containers" Version="7.0.401" />
fixes the issue, however we have templates with the package reference, and we might need to tell our users to remove manually the ref from projects generated from the template.