Skip to content

Commit 110e791

Browse files
author
Peter Huene
committed
Implement framework-dependent application with apphost.
This commit implements building and publishing a framework-dependent application with the application host. Building with `/p:UseAppHost=true` (when a `RuntimeIdentifier` is specified) and with `/p:SelfContained=false` will create an executable apphost that can be used to run the application against globally installed runtimes. Fixes #6237.
1 parent ddf8f26 commit 110e791

19 files changed

+387
-9
lines changed

src/Tasks/Common/Resources/Strings.resx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,4 +381,16 @@ The following are names of parameters or literal values and should not be transl
381381
<value>NETSDK1065: Cannot find app host for {0}. {0} could be an invalid runtime identifier (RID). For more information about RID, see https://aka.ms/rid-catalog.</value>
382382
<comment>{StrBegin="NETSDK1065: "}</comment>
383383
</data>
384+
<data name="CannotUseAppHostWithoutRuntimeIdentifier" xml:space="preserve">
385+
<value>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</value>
386+
<comment>{StrBegin="NETSDK1066: "}</comment>
387+
</data>
388+
<data name="CannotUseSelfContainedWithoutAppHost" xml:space="preserve">
389+
<value>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</value>
390+
<comment>{StrBegin="NETSDK1067: "}</comment>
391+
</data>
392+
<data name="FrameworkDependentAppHostRequiresVersion21" xml:space="preserve">
393+
<value>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</value>
394+
<comment>{StrBegin="NETSDK1068: "}</comment>
395+
</data>
384396
</root>

src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">Je potřeba zadat alespoň jednu možnou cílovou platformu</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">Cílem projektu {0} je {2}. Nemůže na něj odkazovat projekt, jehož cílem je {1}.</target>

src/Tasks/Common/Resources/xlf/Strings.de.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">Geben Sie mindestens ein mögliches Zielframework an.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">Das Projekt "{0}" hat das Ziel "{2}". Ein Verweis von einem Projekt mit dem Ziel "{1}" ist nicht möglich.</target>

src/Tasks/Common/Resources/xlf/Strings.es.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">Debe especificarse al menos una plataforma de destino posible.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">El proyecto "{0}" tiene como destino "{2}". No se puede hacer referencia a él mediante un proyecto que tenga como destino "{1}".</target>

src/Tasks/Common/Resources/xlf/Strings.fr.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">Au moins un framework cible doit être spécifié.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">Le projet '{0}' cible '{2}'. Il ne peut pas être référencé par un projet qui cible '{1}'.</target>

src/Tasks/Common/Resources/xlf/Strings.it.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">È necessario specificare almeno un framework di destinazione possibile.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">Il progetto '{0}' è destinato a '{2}'. Non può essere usato come riferimento in un progetto destinato a '{1}'.</target>

src/Tasks/Common/Resources/xlf/Strings.ja.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">可能性のあるターゲット フレームワークを少なくとも 1 つ指定する必要があります。</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">プロジェクト '{0}' は、'{2}' を対象としています。'{1}' を対象とするプロジェクトは、これを参照できません。</target>

src/Tasks/Common/Resources/xlf/Strings.ko.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">가능한 대상 프레임워크를 하나 이상 지정해야 합니다.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">'{0}' 프로젝트가 '{2}'을(를) 대상으로 합니다. '{1}'을(를) 대상으로 하는 프로젝트에서 참조할 수 없습니다.</target>

src/Tasks/Common/Resources/xlf/Strings.pl.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">Należy określić co najmniej jedną możliwą platformę docelową.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">Projekt „{0}” ma platformę docelową „{2}”. Nie może on być przywoływany przez projekt z platformą docelową „{1}”.</target>

src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77
<target state="needs-review-translation">É necessário especificar pelo menos uma estrutura de destino possível.</target>
88
<note>{StrBegin="NETSDK1001: "}</note>
99
</trans-unit>
10+
<trans-unit id="CannotUseAppHostWithoutRuntimeIdentifier">
11+
<source>NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</source>
12+
<target state="new">NETSDK1066: The application host cannot be used without specifying a RuntimeIdentifier. Either specify a RuntimeIdentifier or set UseAppHost to false.</target>
13+
<note>{StrBegin="NETSDK1066: "}</note>
14+
</trans-unit>
15+
<trans-unit id="CannotUseSelfContainedWithoutAppHost">
16+
<source>NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</source>
17+
<target state="new">NETSDK1067: Self-contained applications are required to use the application host. Either set SelfContained to false or set UseAppHost to true.</target>
18+
<note>{StrBegin="NETSDK1067: "}</note>
19+
</trans-unit>
20+
<trans-unit id="FrameworkDependentAppHostRequiresVersion21">
21+
<source>NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</source>
22+
<target state="new">NETSDK1068: The framework-dependent application host requires a target framework of at least 'netcoreapp2.1'.</target>
23+
<note>{StrBegin="NETSDK1068: "}</note>
24+
</trans-unit>
1025
<trans-unit id="NoCompatibleTargetFramework">
1126
<source>NETSDK1002: Project '{0}' targets '{2}'. It cannot be referenced by a project that targets '{1}'.</source>
1227
<target state="needs-review-translation">O projeto '{0}' tem como destino '{2}'. Ele não pode ser referenciado por um projeto que tenha '{1}' como destino.</target>

0 commit comments

Comments
 (0)