生成VS 2013安装项目时输出中的消息重复 [英] Duplicate messages in output when building VS 2013 setup project

查看:59
本文介绍了生成VS 2013安装项目时输出中的消息重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个VS2013安装项目,该项目构建用于安装由两个C#项目产生的exe的安装程序。生成安装项目时,我收到重复的消息,好像有两个生成过程一样。我从安装项目的输出中删除了两个exe文件之一,但仍然收到重复的消息。

I have a VS2013 setup project that builds the setup that installs the exes produced by two C# projects. When I build the setup project I get duplicate messages as if there are two build processes. I removed one of the two exes from the output of the setup project but I still get the duplicate messages.

------ Starting pre-build validation for project 'SetupWindowsService' ------ 
------ Starting pre-build validation for project 'SetupWindowsService' ------ 
------ Pre-build validation for project 'SetupWindowsService' completed ------
------ Pre-build validation for project 'SetupWindowsService' completed ------
2>------ Build started: Project: SetupWindowsService, Configuration: Release ------
2>------ Build started: Project: SetupWindowsService, Configuration: Release ------
Building file 'C:\projects\SetupTESTWindowsService\Release\SetupWindowsService.msi'...
Building file 'C:\projects\SetupTESTWindowsService\Release\SetupWindowsService.msi'...
Packaging file 'MoreLinq.dll'...
Packaging file 'MoreLinq.dll'...
Packaging file 'System.Web.Razor.dll'...
Packaging file 'System.Web.Razor.dll'...
................

所有dll依赖项都重复。生成项目所产生的输出是正确的(即msi文件)。 TargetPlatform是x86。在配置管理器中,活动解决方案平台为任何CPU,活动解决方案配置为发布。设置项目所依赖的所有项目都是Release / Any CPU。

All the dlls dependencies are duplicated. The output that results from building the project is ok (i.e. the msi file). The TargetPlatform is x86. In the configuration Manager the Active solution platform is Any CPU and the Active solution configuration is Release. All the projects that the setup project depends on are Release/Any CPU.

这正常吗?我正在运行在Win 7 64位旗舰版上运行的VS 2013 Premium Update 3。

Is this normal? I am using VS 2013 Premium Update 3 running on Win 7 64 bit Ultimate.

谢谢

只是更新:我在notepad ++中打开了vdproj,并在配置下删除了调试配置。建立了项目,不再有重复的消息了。我以为解决了。

Just an update: I opened the vdproj in notepad++ and I removed the Debug configuration under "Configurations". Built the project and there were no duplicate messages anymore. I thought that solved it. Did another rebuild and the duplicates are back.

推荐答案

我认为这是Visual Studio或其构建过程中的错误。

I think this is a bug in Visual Studio or its build process.

我在VS2015中遇到了同样的问题; IDE有时会启动多个任务来构建相同的安装项目。一旦开始这样做,只会变得更糟。如果我继续,我可以让三个任务尝试相同的构建,有时这些任务相互作用并导致其中一个失败。

I get the same issue with VS2015; occasionally the IDE will start multiple tasks to build the same setup project. Once it has started doing this, it only gets worse. If I continue, I can get three tasks attempting the same build, and sometimes these tasks interact and cause one of them to fail.

我找到的最简单的解决方法是只是退出并重新加载整个IDE。

The easiest workaround I've found is to simply exit and reload the entire IDE.

我怀疑在IDE工具/选项/项目和解决方案/构建和运行中更改并行构建的最大数量也可以:

I suspect changing the maximum number of parallel builds in the IDE Tools/ Options/ Projects and Solutions / Build and Run will also work:

https://msdn.microsoft.com/en-us/library/y0xettzf%28v=vs.90%29.aspx

这篇关于生成VS 2013安装项目时输出中的消息重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆