-
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
Use SingleFileHost for self-contained single-file apps #11567
Milestone
Comments
Should work. The package should be restored by the first build The plan looks good to me @dsplaisted what do you think? |
Yes, looks good |
30 tasks
swaroop-sridhar
added a commit
to swaroop-sridhar/sdk
that referenced
this issue
May 28, 2020
When publishing self-contained single-file apps: * Use `SingleFileHost` instead of `apphost` * Trim the native components of the runtime published for the app. * Implement options: IncludeNativeBinariesInSingeFile, IncludeAllContentInSingleFile Fixes dotnet#11567.
Merged
swaroop-sridhar
added a commit
to swaroop-sridhar/sdk
that referenced
this issue
May 28, 2020
When publishing self-contained single-file apps: * Use `SingleFileHost` instead of `apphost` * Trim the native components of the runtime published for the app. * Implement options: IncludeNativeBinariesInSingeFile, IncludeAllContentInSingleFile Fixes dotnet#11567.
swaroop-sridhar
added a commit
to swaroop-sridhar/sdk
that referenced
this issue
May 29, 2020
When publishing self-contained single-file apps: * Use `SingleFileHost` instead of `apphost` * Trim the native components of the runtime published for the app. * Implement options: IncludeNativeBinariesInSingeFile, IncludeAllContentInSingleFile Fixes dotnet#11567.
swaroop-sridhar
added a commit
to swaroop-sridhar/sdk
that referenced
this issue
May 29, 2020
This commit implements the following changes for single-file apps: * When publishing self-contained single-file apps: * Use `SingleFileHost` instead of `apphost` * Trim the native components of the runtime published for the app. * Fixes dotnet#11567. * Implements the [optional additional settings](https://github.com/dotnet/designs/blob/master/accepted/2020/single-file/design.md#optional-settings) for .net 5 `PublishSingleFile`. * dotnet/runtime#36590
swaroop-sridhar
added a commit
that referenced
this issue
Jun 1, 2020
* Use SingleFileHost This commit implements the following changes for single-file apps: * When publishing self-contained single-file apps: * Use `SingleFileHost` instead of `apphost` * Trim the native components of the runtime published for the app. * Fixes #11567. * Implements the [optional additional settings](https://github.com/dotnet/designs/blob/master/accepted/2020/single-file/design.md#optional-settings) for .net 5 `PublishSingleFile`. * dotnet/runtime#36590 * Address feedback from @dplaisted. * Update global.json (To include update from runtime) * Updating stage0 caused crossgen2 tests to fail because of missing dependencies in the corssgen2 package. Therefore two tests are disabled until dotnet/runtime#37196 is fixed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are two main tasks that need to be done for self-contained single-file publish scenario:
Use
singlefilehost
singlefilehost
to themicrosoft.netcore.app.host.*
packages.singlefilehost
to the same package asapphost
,ijwhost
, andcomhost
.AppHostSourcePath
. This will generate an app usingsinglefilehost
.--no-build
already has similar concerns for self-contained vs framework-dependent publish.Trim the native components of the runtime:
microsoft.netcore.app.runtime.*
package are no longer necessary to be published for single-file apps.hostfxr
andhostpolicy
are not necessary since they are statically linked withsinglefilehost
. Latercoreclr
,clrjit
will also be linked with thesinglefilehost
, and they are also not necessary. Certain other files such ascreatedump
are excluded from the publish as a matter of policy decision.ExcludeFromSingleFile
ExcludeFromSingleFile
are copied to publish directory alongside the single-file app.RuntimeList.xml
inmicrosoft.netcore.app.runtime.*
package will contain special meta-data identifying that the file is not necessary for single-file scenario<File FileVersion="0.0.0.0" Path="runtimes/linux-x64/native/createdump" Type="Native" DropFromSingleFile="true"/>
ResolveRuntimePackAssets
task will transfer this annotation as (DropFromSingleFile
) meta-data on the asset.The text was updated successfully, but these errors were encountered: