我使用Visual Studio 2012,并且只是将部署工具从NSIS切换到InstallShield。我为InstallShield安装程序的解决方案添加了新项目。当我在Visual Studio(IDE)中构建时,我没有任何错误,没有警告,我很高兴。使用MSBuild构建InstallShield LE项目 - 错误MSB4062
现在,我想要一个脚本来构建完整的解决方案,而无需启动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.
我的搜索导致我,我必须买的InstallShield专业版的获利回吐的结论的ISCmdBuild。但我负担不起,我认为可能有另一种解决方案。
有什么想法?
我没有TFS,所以我想你的第一个解决方案。不幸的是,MSBuild说“指定的解决方案配置Release | x86”是无效的。 – RawBean