-
Notifications
You must be signed in to change notification settings - Fork 49
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
Specify self-contained
for .NET 6.
#340
Comments
Is there something currently not working?
it's not documented on docs.Microsoft.com for the publish command but that should be the same as
See these issue for sort of documentation on |
Filed an issue to update docs.Microsoft.com. |
Docs have been updated to document the |
It looks like this is caused by the "build" commands which happen before "publish". These build commands also have a rid. I don't know why there are build commands at all. Do you know why the pipeline does this? Per dotnet documentation and my experience you only need to (and only should) publish for distribution. "Build" doesn't produce assets that are expected to be distributed. This is the first of the 3 build commands. After the 3 builds there are 4 publishes.
From dotnet documentation:
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish I could either: I'm leaning towards 2 unless there is a specific non standard thing we are doing that requires them. If there is I'd like to document what what the extra commands are for in the pipeline as well. |
I remember now there was some kind of effort to not duplicate some shared assets between the projects. Perhaps that was the motivation? Can you remind me what the desired behavior of the build is and I can run some tests locally to figure out the right combination. |
.NET 6 introduced a change that requires
self-contained
to be explicitly specified ifruntimeIdentifiers
are too.Details at: https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/runtimeidentifier-self-contained
We might need to include
<SelfContained>false</SelfContained>
in each of the tool .csproj files, or change the arguments in thePipelines/templates/dotenet-build-publish-all-platforms-job.yml
file.The text was updated successfully, but these errors were encountered: