我想用一个bat文件建立一个安装项目,并希望生成MSI。我试着用下面像MSBuild.exe建筑
I want to build a setup project using a bat file and want to generate msi. I tried building using MSBuild.exe like below
@echo off
call %windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe C:\Setup1\Setup1.sln
但似乎MSBUILD不支持安装项目。有没有用bat文件来生成安装项目中的任何其他的想法?
But it seems MSBUILD doesn't support setup projects. Is there any other idea to build the setup project using bat file?
Devnev 就是你追求的是什么。
Devnev is what you're after.
下面的命令生成安装项目的设置1 的中的 C:\设置1 \ Setup1.sln 的版本中的配置:
The following command builds setup project Setup1 in C:\Setup1\Setup1.sln in release configuration:
>devenv C:\Setup1\Setup1.sln /build Release /project Setup1
或者你也可以直接构建它:
Or you can build it directly:
>devenv C:\Setup1\Setup1\Setup1.vdproj /build Release