SOLVED

Customizing Visual Studio MSIX packaging project output

%3CLINGO-SUB%20id%3D%22lingo-sub-1601747%22%20slang%3D%22en-US%22%3ECustomizing%20Visual%20Studio%20MSIX%20packaging%20project%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1601747%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20using%20a%20Visual%20Studio%20MSIX%20packaging%20project%20to%20create%20an%20installer%20on%20a%20network%20share%20for%20an%20internal%20application.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20problem%20is%20that%20it's%20creating%20a%20directory%20with%20%22_Test%22%20at%20the%20end.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20is%20it%20doing%20that%20and%20how%20do%20I%20get%20rid%20of%20it%3F%20I%20just%20want%20%22MyApp.MSIX_0.0.1.0%22%2C%20or%20ideally%2C%20%22MyApp.0.0.1.0%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3E%20%20%20%20%20Directory%20of%20I%3A%5C%0A%0A%20%20%20%2008%2F14%2F2020%20%2009%3A44%20AM%20%20%20%20%3C%2FCODE%3E%3CDIR%3E%3CCODE%3E%20%20%20%20%20%20%20%20%20%20.%0A%20%20%20%2008%2F14%2F2020%20%2009%3A44%20AM%20%20%20%20%3C%2FCODE%3E%3CDIR%3E%3CCODE%3E%20%20%20%20%20%20%20%20%20%20..%0A%20%20%20%2008%2F14%2F2020%20%2009%3A44%20AM%20%20%20%20%20%20%20%20%20%20%20%2021%2C312%20index.html%0A%20%20%20%2008%2F14%2F2020%20%2009%3A23%20AM%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20601%20MyApp.MSIX.appinstaller%0A%20%20%20%2008%2F14%2F2020%20%2009%3A37%20AM%20%20%20%20%3C%2FCODE%3E%3CDIR%3E%3CCODE%3E%20%20%20%20%20%20%20%20%20%20MyApp.MSIX_0.0.1.0_Test%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%20File(s)%20%20%20%20%20%20%20%20%2021%2C913%20bytes%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%203%20Dir(s)%20%2062%2C444%2C621%2C824%20bytes%20free%3C%2FCODE%3E%3C%2FDIR%3E%3C%2FDIR%3E%3C%2FDIR%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20scouring%20the%20documentation%2C%20but%20I%20can't%20find%20anything%20about%20the%20directories%20it%20creates%20or%20the%20index.html%20file%20it%20generates.%20I'd%20like%20to%20customize%20all%20that%2C%20add%20release%20notes%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20a%20WPF%20app%2C%20if%20that%20makes%20any%20difference.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1624209%22%20slang%3D%22en-US%22%3ERe%3A%20Customizing%20Visual%20Studio%20MSIX%20packaging%20project%20output%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1624209%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F765945%22%20target%3D%22_blank%22%3E%40MattGregory%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20output%20directory%20of%20the%20packages%20is%20defined%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EMicrosoft.AppxPackage.Targets%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20at%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EC%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2019%5CEnterprise%5CMSBuild%5CMicrosoft%5CVisualStudio%5Cv16.0%5CAppxPackage%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(depending%20on%20your%20version%20of%20Visual%20Studio).%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20remove%20the%20%22_Test%22%20suffix%20you%20can%20modify%20the%20lines%20defining%20the%20output%20directory.%20In%20my%20file%20it%20was%20around%20line%203190%20-%203196%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorTanaka_Jimha_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22appxtargets.png%22%20style%3D%22width%3A%202867px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215720i2A4C3199A7477BC0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22appxtargets.png%22%20alt%3D%22appxtargets.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20modify%20the%20output%20html%20file%2C%20modify%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eindex.template.html%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20in%20the%20%22Landing%22%20subdirectory%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EC%3A%5CProgram%20Files%20(x86)%5CMicrosoft%20Visual%20Studio%5C2019%5CEnterprise%5CMSBuild%5CMicrosoft%5CVisualStudio%5Cv16.0%5CAppxPackage%5CLanding%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(depending%20on%20VS%20version).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers%2C%3CBR%20%2F%3ETanaka%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I'm using a Visual Studio MSIX packaging project to create an installer on a network share for an internal application.

 

One problem is that it's creating a directory with "_Test" at the end.

 

Why is it doing that and how do I get rid of it? I just want "MyApp.MSIX_0.0.1.0", or ideally, "MyApp.0.0.1.0".

 

 

     Directory of I:\

    08/14/2020  09:44 AM    <DIR>          .
    08/14/2020  09:44 AM    <DIR>          ..
    08/14/2020  09:44 AM            21,312 index.html
    08/14/2020  09:23 AM               601 MyApp.MSIX.appinstaller
    08/14/2020  09:37 AM    <DIR>          MyApp.MSIX_0.0.1.0_Test
                   2 File(s)         21,913 bytes
                   3 Dir(s)  62,444,621,824 bytes free

 

 

I've been scouring the documentation, but I can't find anything about the directories it creates or the index.html file it generates. I'd like to customize all that, add release notes, etc.

 

This is a WPF app, if that makes any difference.

1 Reply
best response confirmed by Sharla_Akers (Microsoft)
Solution

Hi @MattGregory ,

 

The output directory of the packages is defined in the Microsoft.AppxPackage.Targets file at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage (depending on your version of Visual Studio).

If you want to remove the "_Test" suffix you can modify the lines defining the output directory. In my file it was around line 3190 - 3196:

 

appxtargets.png

To modify the output html file, modify the index.template.html file in the "Landing" subdirectory - C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Landing (depending on VS version).

 

Cheers,
Tanaka