Publish self-contained with MSIX in Visual Studio?

%3CLINGO-SUB%20id%3D%22lingo-sub-1482368%22%20slang%3D%22en-US%22%3EPublish%20self-contained%20with%20MSIX%20in%20Visual%20Studio%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1482368%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20wondering%20if%20it's%20possible%20to%20utilize%20the%20.pubxml%20publish%20profile%20in%20.Net%20Core%20projects%20when%20publishing%20an%20MSIX%20packaging%20project.%20Specifically%2C%20I%20would%20like%20to%20publish%20the%20app%20self-contained%2C%20so%20I%20do%20not%20have%20to%20depend%20on%20the%20.Net%20Core%20runtime%20being%20installed.%20I've%20posted%20a%20question%20to%20StackOverflow%20here%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F62163065%2Fhow-do-i-use-a-windows-application-packaging-project-in-visual-studio-2019-to-pu%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F62163065%2Fhow-do-i-use-a-windows-application-packaging-project-in-visual-studio-2019-to-pu%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20saw%20this%20related%20post%2C%20but%20it%20didn't%20ask%20about%20publishing%20self-contained%2C%20which%20I%20think%20is%20a%20reasonable%20scenario%20that%20the%20MS%20team%20would%20want%20to%20support.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmsix-packaging-and-tools%2Fis-it-possible-to-use-publish-single-file-in-net-core-3-with%2Fm-p%2F1023513%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmsix-packaging-and-tools%2Fis-it-possible-to-use-publish-single-file-in-net-core-3-with%2Fm-p%2F1023513%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Senior Member

Hello,

 

I was wondering if it's possible to utilize the .pubxml publish profile in .Net Core projects when publishing an MSIX packaging project. Specifically, I would like to publish the app self-contained, so I do not have to depend on the .Net Core runtime being installed. I've posted a question to StackOverflow here:

https://stackoverflow.com/questions/62163065/how-do-i-use-a-windows-application-packaging-project-in...

 

I saw this related post, but it didn't ask about publishing self-contained, which I think is a reasonable scenario that the MS team would want to support.

 

https://techcommunity.microsoft.com/t5/msix-packaging-and-tools/is-it-possible-to-use-publish-single...

 

Thanks in advance!

1 Reply
Highlighted

@David Cuccia The MSIX Packaging tool appears to put .net core into the package when requested. So you could try creating a package that way and see how they do it.