自定义 Visual Studio MSIX 打包项目输出 [英] Customizing Visual Studio MSIX packaging project output
问题描述
我正在使用 Visual Studio MSIX 打包项目在网络共享上为内部应用程序创建安装程序.
一个问题是它正在创建一个带有_Test"的目录.最后.
为什么要这样做,我该如何摆脱它?我只想要MyApp.MSIX_0.0.1.0",或者理想情况下,MyApp.0.0.1.0".
目录 I:\08/14/2020 09:44 AM <DIR>.08/14/2020 09:44 AM <DIR>..08/14/2020 09:44 AM 21,312 index.html08/14/2020 09:23 AM 601 MyApp.MSIX.appinstaller08/14/2020 09:37 AM <DIR>MyApp.MSIX_0.0.1.0_Test2 个文件 21,913 字节3 目录 62,444,621,824 字节空闲
我一直在搜索文档,但找不到关于它创建的目录或它生成的 index.html 文件的任何信息.我想自定义所有这些,添加发行说明等.
这是一个 WPF 应用程序,如果有什么不同的话.
我只是在这里放了一份
要修改输出的html文件,请修改Landing"中的index.template.html文件.子目录 - C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Landing(取决于 VS 版本).
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.
I am just placing here a copy of the original answer from MSFT:
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:
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).
这篇关于自定义 Visual Studio MSIX 打包项目输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!