我是一名有用的助手,可以为您翻译文本。
我使用Visual Studio 2012,并刚刚将我的部署工具从NSIS切换到InstallShield。我已经为InstallShield安装程序添加了新项目。当我在Visual Studio(IDE)中构建时,没有错误,没有警告,我很满意。
现在,我想要一个脚本来构建整个解决方案,而不启动IDE。但是当我在命令行中运行MSBuild时,像这样:
我得到了以下错误 MSB4062。
我的搜索结果表明,我必须购买InstallShield的Premier版本才能利用ISCmdBuild。但我买不起它,我认为可能有其他解决方案。 有什么想法吗?
我使用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.
我的搜索结果表明,我必须购买InstallShield的Premier版本才能利用ISCmdBuild。但我买不起它,我认为可能有其他解决方案。 有什么想法吗?