-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add container publish pubxml #26506
Add container publish pubxml #26506
Conversation
src/WebSdk/Publish/Targets/PublishProfiles/DefaultContainerDeploy.pubxml
Outdated
Show resolved
Hide resolved
src/WebSdk/Publish/Targets/PublishProfiles/DefaultContainerDeploy.pubxml
Outdated
Show resolved
Hide resolved
src/WebSdk/Publish/Targets/PublishTargets/Microsoft.NET.Sdk.Publish.Container.targets
Outdated
Show resolved
Hide resolved
I might be missing something with testing locally. I run:
The project is just some csproj that targets net7.0 and does nothing special, so I'm likely missing something |
Is the project a websdk project? |
I think that was it; I got it to "work" (read "break how I expect it to") with a webapi project: ❯ dotnet publish -p:PublishProfile=DefaultContainer
MSBuild version 17.4.0-preview-22358-02+62b690b29 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
S:\sdk\artifacts\bin\redist\Debug\dotnet\sdk\7.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [S:\play\webapi\webapi.csproj]
webapi -> S:\play\webapi\bin\Debug\net7.0\webapi.dll
webapi -> S:\play\webapi\bin\Debug\net7.0\publish\
S:\sdk\artifacts\bin\redist\Debug\dotnet\sdk\7.0.100-dev\Sdks\Microsoft.NET.Sdk.Publish\targets\DotNetCLIToolTargets\Microsoft.NET.Sdk.DotNetCLITool.targets(104,11): error MSB4057: The target "PublishContainer" does not exist in the project. [S:\play\webapi\webapi.csproj] |
It was not :) I got it to repro as well
With the expected failure, |
Todo: