microsoft / WSL-DistroLauncher

Sample/reference launcher app for WSL distro Microsoft Store packages.
MIT License
1.69k stars 521 forks source link

Solving building warnings #120

Open D3vil0p3r opened 1 year ago

D3vil0p3r commented 1 year ago

Hello, during the building there are not impacting warnings that are produced. Mainly:

(_ValidateAppxManifest target) ->
 MyDistro.appxmanifest(13,6): warning APPX0006: This project uses the 'runFullTrust' capability. You should use
        the Windows Application Packaging Project to produce the store and sideload packages. See https://go.microsoft.
       com/fwlink/?linkid=871803 for more information. [D:\GitHub\DistroLauncher-WSL\DistroLauncher-Appx\DistroLauncher-Appx.
       vcxproj]

and

(CustomBuild target) ->
         C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(
       247,5): warning MSB8064: Custom build for item "mydistro" succeeded, but specified dependency "d:\github\distrolauncher-
       wsl\distrolauncher-appx\mydistro" does not exist. This may cause incremental build to work incorrectly. [D:\GitHub
       \DistroLauncher-WSL\DistroLauncher-Appx\DistroLauncher-Appx.vcxproj]

Is there a way to solve these warnings?

For the 1st warning: How can I convert the project to Windows Application Packaging Project? For the 2nd warning: How can I create the mydistro file that is missing?