从命令行创建.inf文件(使用msbuild)(Creating .inf file from command line (using msbuild))

编程入门 行业动态 更新时间:2024-10-21 06:37:51
命令行创建.inf文件(使用msbuild)(Creating .inf file from command line (using msbuild))

我想使用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.

更多推荐

本文发布于:2023-07-16 12:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128591.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   文件   inf   msbuild   line

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!