You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ability to mark self-contained .exe as Windows GUI program. (#2470)
* Add ability to mark self-contained .exe as Windows GUI program.
On Windows only, if the OutputType of the project is WinExe (as oppose to just exe), self-contained published app will now have its subsystem set to Windows GUI.
This means the app will start without a console.
The change renames the task EmbedAppNameInHost to CreateAppHost as it now does more than just embedding the path to the app.
Added unit tests for the AppHost class and then an E2E for the publish command.
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
<source>NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</source>
7
+
<targetstate="new">NETSDK1071: Unable to use '{0}' as application host executable because it's not a Windows PE file.</target>
8
+
<note>{StrBegin="NETSDK1071: "}</note>
9
+
</trans-unit>
10
+
<trans-unitid="AppHostNotWindowsCLI">
11
+
<source>NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</source>
12
+
<targetstate="new">NETSDK1072: Unable to use '{0}' as application host executable because it's not a Windows executable for the CUI (Console) subsystem.</target>
0 commit comments