简体   繁体   English

找不到Teamcity Visual Studio sln目标(项目文件夹中的项目)

[英]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=RebuildConfigurationName=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.

相关问题 如何创建Visual Studio解决方案文件(.sln)并添加更多项目 - How do you create a Visual Studio Solution File (.sln) and add more projects 如何在多项目sln模板Visual Studio 2015中添加现有项目 - How to add existing project in multi project sln template Visual Studio 2015 TeamCity无法构建Angular 5 / Visual Studio 2017项目 - TeamCity fails to build Angular 5/ Visual Studio 2017 project Teamcity 忽略在 Visual Studio 2010 中配置的项目上下文 - Teamcity ignores project contexts configured in Visual Studio 2010 以编程方式在Visual Studio项目文件中添加和编辑目标 - Programmatically adding and editing the Targets in a Visual Studio Project File 如何更改许多Visual Studio项目的references文件夹? - How do I change the references folder of a lot of Visual Studio projects? 如何打开“测试项目”代码文件夹中的文件? (Visual Studio 2008和.NET C#) - How to open a file inside a Test Project code folder? (Visual Studio 2008 and .NET C#) Visual Studio中是否有命令来使项目依赖于解决方案中的项目? - Is there a command in Visual Studio to get the projects dependent on a project within a solution? Visual Studio 2022:“Persistence = ProjectFileWithInterceptionViaSnapshot”没有项目属性提供程序。 未加载项目 - Visual Studio 2022: There is no project properties provider for "Persistence = ProjectFileWithInterceptionViaSnapshot". Projects are not loaded Visual Studio项目无法解析添加为外部对象的其他项目的符号 - Visual Studio project cannot resolve symbols of other projects added as externals
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM