我使用 Visual Studio 2012,我刚刚将我的部署工具从 NSIS 切换到 InstallShield。我已将新项目添加到我的 InstallShield 安装程序解决方案中。当我在 Visual Studio(IDE)中构建时,我没有错误,没有警告,我很高兴。
现在,我想要一个脚本来构建完整的解决方案,而无需启动 IDE。但是当我在命令行中运行 MSBuild 时,就像这样
MSBuild MySolution.sln /t:Build /p:Configuration=Release
我收到以下错误 MSB4062
C:\Program Files (x86)\MSBuild\InstallShield\2012SpringLimited\InstallShield.targets(21,3): error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
我的搜索使我得出结论,我必须购买 Premier Edition 的 InstallShield 才能从 ISCmdBuild 中获利。但我买不起,我认为可能还有另一种解决方案。
任何的想法?