【发布时间】:2014-08-05 01:53:45
【问题描述】:
我在构建 VB.NET 项目时开始遇到 VS2010 的奇怪行为:
第一次构建成功,我做了一个小改动(例如添加评论),第二次构建失败并出现我不明白的错误:
Error 1 "obj\x86\Debug\<Project Name>.exe;obj\x86\Debug\<Project Name>.exe" is an invalid value for the "OutputAssembly" parameter of the "Vbc" task. Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem". <Project Name>
Error 2 The "exists" function only accepts a scalar value, but its argument "@(IntermediateAssembly)" evaluates to "obj\x86\Debug\<Project Name>.exe;obj\x86\Debug\<Project Name>.exe" which is not a scalar value. <Project Name>
有时同一个项目会出现不同的错误:
Error 1 The target "CompileRdlFiles" does not exist in the project. <Project Name>
当我关闭解决方案,重新打开并重建时,它会再次成功或失败并出现不同的错误,例如:
Error 1 The target "EntityDeploy" does not exist in the project. BetterThumbnailBrowser
新创建的 VB.NET 项目也会发生这种情况。
项目始终是 Windows 窗体应用程序。
【问题讨论】:
标签: vb.net visual-studio-2010 visual-studio msbuild