Nov 20 2019 10:55 PM
Hi,
Where I work we have a WPF application that we converted to .NET Core 3.0 and migrated to MSIX/AppInstaller from ClickOnce. I noticed that .NET Core 3.0 has the ability to publish as a single file. However if I add this setting to my .csproj for my WPF application and/or make modifications to the .wapproj:
<ItemGroup>
<ProjectReference Include="..\..\Application\MyWpfDotNetCore3App.csproj">
<DesktopBridgeSelfContained>True</DesktopBridgeSelfContained>
<DesktopBridgeIdentifier>win-x64</DesktopBridgeIdentifier>
<Properties>SelfContained=%(DesktopBridgeSelfContained);RuntimeIdentifier=%(DesktopBridgeIdentifier);PublishReadyToRun=true</Properties>
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
</ProjectReference>
</ItemGroup>
Nov 25 2019 11:07 AM
Solution
When using the Windows Application Packaging Project with .NET Core 3 it creates an app-local .NET Core package which is fully self contained. The single file, is currently not supported. I've forwarded your feedback to the Visual Studio team.
Cheers,
Tanaka
Nov 29 2019 06:27 PM
Nov 25 2019 11:07 AM
Solution
When using the Windows Application Packaging Project with .NET Core 3 it creates an app-local .NET Core package which is fully self contained. The single file, is currently not supported. I've forwarded your feedback to the Visual Studio team.
Cheers,
Tanaka