我想使用msbuild命令行创建.inf文件(用于创建.cab文件)。
首先,我尝试使用VS IDE重建解决方案,并创建.inf文件,该文件可用于创建.cab文件(移动设备包)。 然后我尝试使用msbuild使用以下命令创建.inf文件:
msbuild solutionName.sln /p:platform="Windows Mobile 6 Professional SDK (ARMV4I)" /t:rebuild"它成功地重建了解决方案和所有项目,但它没有在部署项目目录中创建.inf文件。
有谁知道如何从命令行创建.inf文件?
I would like to create .inf file (for creating .cab file) using msbuild command line.
First I tried to rebuild the solution using VS IDE and it created .inf file which could be used to create .cab file (package for mobile device). Then I tried to create .inf file with msbuild with the following command:
msbuild solutionName.sln /p:platform="Windows Mobile 6 Professional SDK (ARMV4I)" /t:rebuild"It successfully rebuilt the solution and all the projects but it didn't create the .inf file inside deployment project directory.
Does anyone know how to create the .inf file from command line?
最满意答案
我假设你的意思是该解决方案包含一个智能设备CAB项目,该项目没有建立? 不幸的是,CAB项目(以及常规桌面安装)在某种程度上是一种失常。 它们是Studio的插件,实际上不与msbuild交互,并且不能直接自动化。 你不得不破解Exec命令来运行devenv,传入args,然后复制你的结果。 有关桌面安装程序的过程, 请参阅此文章 。 同样的过程也适用于设备项目。
这就是我们仍然手工构建INF并独立运行cabwiz的确切原因。
I assume you mean that the solution contains a Smart Device CAB project and that project is not getting built? Unfortunately the CAB project (and the regular desktop installs for that matter) are somewhat of an aberration. They are plug-ins to Studio that actually don't interact with msbuild, and are not directly automatable. You instead have to hack in an Exec command to run devenv, pass in the args, and then copy out your results. See this article on the procedures for a desktop installer. The same process works for device projects too.
This is the exact reason we still hand-build the INF and run cabwiz independently.
更多推荐
发布评论