简体   繁体   中英

VS2010 always rebuilds solution?

I have a solution with 40 projects in it. I've recently reconfigured output path for each of these projects to this value:

..\\Output

Change was made in *.csproj files for every build configuration.

This change did what was expected (gather all compiled assemblies into one folder) but unusual side effect is - every time I hit F5 Debug, portion of the (around 40%) assemblies always gets rebuilt. I have tested this several times without any changes to the projects themselves.

Once I undid changes build behaved as before.

I need help resolving this issue.

通过更改项目文件,清理解决方案,手动删除所有bin文件夹,重新启动Visual Studio并重建所有内容,可以解决此问题。

I would guess that the assemblies that get rebuilt are referenced from the project you are trying to build? Check the references in one of the projects, and see if this is correct. If so, you might try to adjust the properties for each reference, such as "Copy Local", and/or "Specific Version"; maybe each project "thinks" it needs to rebuild the other projects it references in order to achieve the same version number or something like that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM