如何从命令行为智能设备 cab 项目创建 inf 文件?

发布于 2024-07-10 10:39:21 字数 165 浏览 6 评论 0原文

我正在尝试进行持续集成,以在命令行上的 msbuild 中创建构建智能设备 cab 项目。 我发现的所有内容都表明要使用在 Visual Studio 中构建项目时创建的 inf 文件(带有 cabwiz)。 有没有办法使用 .vddproj 文件创建 inf,以便我可以将它与 cabwiz.exe 一起使用?

I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from within visual studio. Is there a way to create the inf using the .vddproj file so that I can then use it with cabwiz.exe?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

千紇 2024-07-17 10:39:21
童话 2024-07-17 10:39:21

如何将“智能设备 CAB 项目”添加到您的解决方案(在 Visual Studio 2005 和 2008 中可用)?
此类项目根据解决方案中其他项目的输出构建 .inf 文件,并生成“cabwiz.exe”以生成最终的 cab。

我个人使用 NAnt 而不是 MSBuild,并且更喜欢手动编辑我的 inf 文件(不经常更改),但 CAB 项目似乎是使用 MSBuild 的解决方案的最佳选择。

PS:如果您的 cab 需要将注册表双字设置为 -1 (0xffffffff),请小心:众所周知,cabwiz 在这方面有一个严重的错误。

PS2:另请注意这篇其他帖子

How about adding a "Smart Device CAB Project" to your solution (available in Visual Studio 2005 and 2008)?
These kind of projects build the .inf file from the output of the other projects in the solution and spawn "cabwiz.exe" to generate your final cab.

I personally use NAnt instead of MSBuild, and prefer to manually edit my inf file (doesn't change that often), but the CAB project seem to be the way to go for a solution that uses MSBuild.

PS: be careful if your cab needs to set a registry dword to -1 (0xffffffff): cabwiz is known to have a nasty bug when it comes to this.

PS2: also note this other post.

断念 2024-07-17 10:39:21

您是问如何创建 cab 文件或如何将其包含在您的项目中? 您可以创建 inf 然后添加 命令行 到构建后事件。

Are you asking how to create the cab file or how to include it in your project? You could create the inf then add the command line to the post build event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文