teamcity

What do I need to install a Visual Studio 2010 (sln)-compatible Build Agent in TeamCity?

陌路散爱 提交于 2019-12-01 05:49:43
I seem to be unable to install a build agent on our TeamCity 5.1.2 build server that is compatible with a VS2010 (sln) build configuration. Under "Build Runners", the following runners are listed: Ant: Runner for Ant build.xml files Duplicates finder (.NET): C# and VB duplicate code finder Command Line: Simple command execution And under "Compatible configurations", the project I've configured to build with the Visual Studio 2010 (sln) build runner is listed under "Incompatible configurations". To install the build agent, I'm simply running the .msi installation package, but it seems the

How to use NuGet packages with an ASP.NET Website on CI Server

荒凉一梦 提交于 2019-12-01 04:42:42
I have a number of ASP.NET Web Form Websites (the one with no .csproj file), and I am trying to figure out how to best use NuGet packages with them. When using Visual Studio 2015, adding NuGet packages via the UI works correctly (there is a packages.config in the site root), and the build drops the binaries in the bin folder. The problem is trying to build the project on TeamCity via MSBuild. For other projects, I can use NuGet.exe with the restore command (either against the csproj or the sln file), and the packages are correctly downloaded and included in the output. However, this doesn't

FSharp build fails in MSBuild, but works ok in Visual Studio

孤街浪徒 提交于 2019-12-01 04:03:06
I have a number of projects in my solution, among which also a F# project. Everything builds fine in Visual Studio, but when I try to build it with MSBuild on my TeamCity server (which does not have VS installed) it throws the following build error: C:\TeamCity\buildAgent\work\42c74d8b9d19a844\FSharpEngine\MY_FSHARP_PROJECT.fsproj : error MSB4057: The target "Clean" does not exist in the project. [16:27:58]Done Building Project "C:\TeamCity\buildAgent\work\42c74d8b9d19a844\Folder0\MY_FSHARP_PROJECT.fsproj" (Clean target(s)) -- FAILED. [16:27:58]Done Building Project "C:\TeamCity\buildAgent

TeamCity Artifacts; Exclude Individual Files

偶尔善良 提交于 2019-12-01 02:44:44
I have a TeamCity Build Configuration that includes the following to publish artifacts: Source\Builder\bin\Release\*.dll=>release This works fine, however I am wanting to exclude one dll (there are quite a few) and have read that you can use + & - operators to do this. Something along the lines of: +: Source\Builder\bin\Release\*.dll=>release -: Source\Builder\bin\Release\Builder.* As soon as I add these in, no artifacts are published and I get the following error in the build log (looks like it is counting the + as part of the path): [Publishing artifacts] Collecting files to publish [+

How to use NuGet packages with an ASP.NET Website on CI Server

て烟熏妆下的殇ゞ 提交于 2019-12-01 02:17:56
问题 I have a number of ASP.NET Web Form Websites (the one with no .csproj file), and I am trying to figure out how to best use NuGet packages with them. When using Visual Studio 2015, adding NuGet packages via the UI works correctly (there is a packages.config in the site root), and the build drops the binaries in the bin folder. The problem is trying to build the project on TeamCity via MSBuild. For other projects, I can use NuGet.exe with the restore command (either against the csproj or the

FSharp build fails in MSBuild, but works ok in Visual Studio

坚强是说给别人听的谎言 提交于 2019-12-01 00:40:29
问题 I have a number of projects in my solution, among which also a F# project. Everything builds fine in Visual Studio, but when I try to build it with MSBuild on my TeamCity server (which does not have VS installed) it throws the following build error: C:\TeamCity\buildAgent\work\42c74d8b9d19a844\FSharpEngine\MY_FSHARP_PROJECT.fsproj : error MSB4057: The target "Clean" does not exist in the project. [16:27:58]Done Building Project "C:\TeamCity\buildAgent\work\42c74d8b9d19a844\Folder0\MY_FSHARP

Can I cancel a TeamCity build from my msbuild script?

本秂侑毒 提交于 2019-11-30 23:23:34
问题 TeamCity allows me to report back from my MsBuild script using the ##teamcity interaction. I can use this to tell TeamCity that the build has FAILED, or indeed SUCCEEDED, however I would like to tell it to CANCEL the build instead. Does anyone know of a way to do this? I can use this to inform TeamCity of failure... <Message Text="##teamcity[buildStatus status='FAILURE']" Condition="Something==SomeCondition" /> I would love to do this... <Message Text="##teamcity[buildStatus status='CANCEL']"

Nightly build for release branch if branch exists

倾然丶 夕夏残阳落幕 提交于 2019-11-30 23:02:28
问题 I'd like to set up a nightly build for my release branch. Since I'm using git-flow I don't always have a relase branch so I would like it to build it if it can find a branch with a pattern of: refs/heads/release-* Any idea of how to get teamcity to perform this action for me? 回答1: Use Branch Filter in the Trigger and set the only filter as +:release-* Also in Version Control under Branch Specification use +:(release-*) I also had similar issue and solved it as given above. I think this would

TeamCity Artifacts; Exclude Individual Files

早过忘川 提交于 2019-11-30 22:34:48
问题 I have a TeamCity Build Configuration that includes the following to publish artifacts: Source\Builder\bin\Release\*.dll=>release This works fine, however I am wanting to exclude one dll (there are quite a few) and have read that you can use + & - operators to do this. Something along the lines of: +: Source\Builder\bin\Release\*.dll=>release -: Source\Builder\bin\Release\Builder.* As soon as I add these in, no artifacts are published and I get the following error in the build log (looks like

Passing an environment variable (parameter) to dependency project in TeamCity

大兔子大兔子 提交于 2019-11-30 22:32:27
问题 I have a build chain with two projects: A is the root project, B depends on it. B has two dependencies configured: an artifact and a snapshot dependency. One build configuration for B has an environment variable (parameter) set. However, I also need this parameter set for the root project A. Is there any way in TeamCity 9 to pass a build configuration parameter from a project to its dependency (in the same build chain)? 回答1: Since TeamCity 9.0 it is possible to override the dependencies