teamcity

Microsoft.Build.Utilities.ToolLocationHelper error on TeamCity

百般思念 提交于 2019-12-24 00:43:25
问题 Although my solution is building on my local machine, it throws this error on TeamCity when I use "Visual Studio (sln)" as the runner for the build step: [Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion))". Method 'Microsoft.Build.Utilities.ToolLocationHelper.GetPlatformSDKDisplayName' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine( a , b )).

How to build .vdproj msi using TeamCity?

隐身守侯 提交于 2019-12-24 00:28:27
问题 I am trying to get continuous integration setup using TeamCity to automatically build and release our application and Windows services. The solution currently consists of a web application and 2 services (amongst a host of other projects, but all that gets deployed is the app and services) - the services are packaged into .msi installers using Visual Studio 2010 setup projects ( .vdproj ). The web application isn't an issue because I can just use MsBuild.exe to publish. However, MsBuild.exe

Adding a Trigger to a build configuration in TeamCity using the REST API

旧时模样 提交于 2019-12-24 00:11:15
问题 I'm trying to use TeamCity's REST API to create a new Build Configuration. To avoid doing everything manually I'm using TeamCitySharp. I was able to create a build configuration, attach it to a template and even set parameters without major issues. But now I'm trying to setup build Triggers and TeamCitySharp requires the raw xml for the trigger configuration? Anyone could point me in the right direction here? Not sure where to start. I've looked over the REST API documentation on the

Error running maven surefire test plugin Java 11

与世无争的帅哥 提交于 2019-12-23 20:55:05
问题 I am running some tests for Spring Boot app in Team City using the maven surefire plugin version 2.22.1. Spring Boot version is 2.1.2. I have specified in the configuration to use a forked Java 11 jvm as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkCount>1</forkCount> <jvm>${jdk11.home}/bin/java</jvm> <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine> </configuration> </plugin> When running Team City I get the

TeamCity: email notifications to non registered users

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 20:43:00
问题 Is it possible setup TeamCity e-mail notifications to VCS users which doesn't registered in TeamCity? VCS user name is a first part of e-mail: vasily.pupkin -> vasily.pupkin@company.com Jenkins has settings for this case: 'Default user e-mail suffix'. May be TC has similar settings? What I do not want to do: force all users to create account create all accounts manually as admin setup LDAP synchronization now (I need quick, temporary solution) 回答1: If possible, you could create a TeamCity

TeamCity - MSBuild - SVN - AssemblyVersion - C#

為{幸葍}努か 提交于 2019-12-23 19:28:53
问题 I'm currently using MSBuild+Community Task's to change the AssemblyVersion, AssemblyFileVersion + more in AssemblyInfo.cs, via TeamCity and it works like a charm :). However I would like to commit the modified AssemblyInfo.cs back to the repo. How can I do that? I tried with the " SvnCommit " task from Community Tasks , but on the Agent's the source is not checked out, it appears to be Exported or copied directly from TC instead (there's no .svn folders). This is actually very cool I think

gradle artifactory plugin

别等时光非礼了梦想. 提交于 2019-12-23 18:22:55
问题 I'm new to artifactory and teamcity. I tried using the gradle-artifactory plugin. but It is throwing me the following error.. can anybody pls tell what this error is about and help me with some solution. Error is Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention@9bb457' with class 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention' to class 'org.jfrog.gradle.plugin

How to include dependencies outside solution directory in .NET project for TeamCity

纵饮孤独 提交于 2019-12-23 18:19:46
问题 I have class library outside my solution directory, so I have reference like this in *.sln file "../SomeDependency.csproj" In VS everything is ok, but TeamCity failed when try to build my solution. I guess it copy all solution directory so relation doesn't exists any more. This is error I had C:\TeamCity\buildAgent\work\799db5684a98650b\blablabla.sln.metaproj error MSB3202: The project file "C:\TeamCity\buildAgent\work\799db5684a98650b....\Shared\Libraries\mysecretlib‌​rary\mysecretlibrary

Fixing issues in YouTrack from SubVersion commit comments using TeamCity

青春壹個敷衍的年華 提交于 2019-12-23 18:10:15
问题 I have a TeamCity server and a YouTrack server working with SubVersion. I have enable integration in the two JB applications. Is it possible to changes the status of YT issues from comments in the SubVersion commit comments? I.e. TC will update the YT status accordingly, and set in YT which version the fix was done. 回答1: Yes, f.e. you can write #TST-12 Fixed in you commit message which will transit #TST-12 to the Fixed state. For more details look here. 回答2: First of all you need to make sure

FSharp project build fails in MSBuild in TeamCity

余生颓废 提交于 2019-12-23 16:15:26
问题 I have the following setup described here (TeamCity with MSBuild and F# 3.1 Tools installed). 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 on a project that references my FSharp project : "C:\TeamCity\buildAgent\work\9d3b5b7177ddb2b9\MY_SOLUTION.sln.teamcity" (TeamCity_Generated_Build target)