[英]Teamcity Visual Studio sln Targets not found (projects inside project folder)
Im trying to get my teamcity build up and running for a Visual studio solution with multiple projects. 我试图建立我的团队精神并为具有多个项目的Visual Studio解决方案运行。
I have created a build step type: Visual Studio sln with the correct solution path (it runs without a target) 我创建了一个构建步骤类型:具有正确解决方案路径的Visual Studio sln(它在没有目标的情况下运行)
I need to build only for a subset of projects. 我只需要为部分项目构建。 After reading some articles and other questions i think i need to add something like: ProjectName:Rebuild Or SolutionFolder/ProjectName:Rebuild but whatever i type into the Targets field, it will fail me:( 阅读一些文章和其他问题后,我认为我需要添加以下内容:ProjectName:Rebuild或SolutionFolder / ProjectName:Rebuild,但是无论我在“目标”字段中键入什么内容,都会使我失败:(
Hope someone will have the answer to this issue. 希望有人能解决这个问题。
[EDIT] [编辑]
To elaborate on why i need this, my solution looks like this: 要详细说明为什么我需要这样做,我的解决方案如下所示:
Solution: 解:
Libraries (proj folder) 库(proj文件夹)
- SolutionName.Core <--- probably need to build this too -SolutionName.Core <---可能也需要构建它
- SolutionName.Data <--- probably need to build this too -SolutionName.Data <---可能也需要构建它
... ...
SolutionName.Instances (project folder) SolutionName.Instances(项目文件夹)
- SolutionName.Default <--- I only want to build this one. -SolutionName.Default <---我只想构建一个。
- SolutionName.BuildA -SolutionName.BuildA
- SolutionName.BuildB <--- and this one. -SolutionName.BuildB <---和这个。
- SolutionName.BuildC -SolutionName.BuildC
- SolutionName.BuildD -SolutionName.BuildD
SO AC AND D will never build (in the foreseeable future this solution will have way more projects, so the build process is growing fast. [/EDIT] SO AC AND D将永远不会构建(在可预见的将来,该解决方案将拥有更多的项目,因此构建过程将快速增长。[/ EDIT]
What you can do is to configure what to build directly in the solution. 您可以做的是配置直接在解决方案中构建的内容。 Then in TeamCity use Target=Rebuild
and ConfigurationName=Release
. 然后在TeamCity中使用Target=Rebuild
和ConfigurationName=Release
。
Right click in the Solution Explorer on the solution and select "Configuration Manager". 右键单击解决方案上的解决方案资源管理器,然后选择“配置管理器”。 Change the "Active solution configuration" to "Release". 将“活动解决方案配置”更改为“发布”。 Then uncheck build on selected projects. 然后取消选中在选定项目上构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.