teamcity

Using AssemblyInfo to automatically update multiple AssemblyInfo.cs files

纵然是瞬间 提交于 2019-12-18 12:30:20
问题 I've got several AssemblyInfo.cs files as part of many projects in a single solution that I'm building automatically as part of TeamCity. To make the msbuild script more maintainable I'd like to be able to use the AssemblyInfo community task in conjunction with an ItemGroup e.g. <ItemGroup> <AllAssemblyInfos Include="..\**\AssemblyInfo.cs" /> </ItemGroup> <AssemblyInfo AssemblyTitle="" AssemblyProduct="$(Product)" AssemblyCompany="$(Company)" AssemblyCopyright="$(Copyright)" ComVisible="false

Deploying a .Net 4.5 website to an IIS 7.5 server

半城伤御伤魂 提交于 2019-12-18 12:29:26
问题 We are using Teamcity to do continuous integration builds for our website and have just upgraded our website to .Net 4.5RC. The application builds and runs in IIS express on my box and builds on our build server that I have installed .NEt 4.5RC on. But when we deploy it to the server that has had .Net 4.5RC installed on it we get the following error. The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.5'. What

How do I deploy using MSDeploy and TeamCity with Integrated Windows Authentication?

戏子无情 提交于 2019-12-18 11:49:25
问题 I had a MSDeploy deployment working beautifully with TeamCity when I passed in the user credentials. The command line parameters (using env. variables for some values) were: MSBuild.exe Web.csproj /P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMsvc /P:CreatePackageOnPublish=True /P:UserName=%env.AdminUser% /P:Password=%env

How do I exclude types and methods from being covered by dotCover in TeamCity?

孤者浪人 提交于 2019-12-18 10:13:07
问题 I've got an existing C# 4 project which I've checked the test coverage for by using TestDriven.Net and the Visual Studio coverage feature, i.e. Test With -> Coverage from the context menu. The project contains some code I don't want covered, and I've solved that by adding the [ExcludeFromCodeCoverage] for those types and methods. We've just upgraded TeamCity to 6.0.3, and I've added dotCover coverage to the NUnit build step. I've managed to remove coverage for external assemblies such as

Automate Selenium tests on TeamCity Continuous Integration server

假如想象 提交于 2019-12-18 10:10:02
问题 I have a Visual Studio solution which includes a Test project having Selenium Tests. (I already have a compilation build triggered by version control checkin (Mercurial)) But I want to have a separate (nightly) Build Configuration which runs the Selenium tests, ideally under MSTest. I assume I need Selenium Server for this? If so, what's the best way to fire it up before running the tests? Should I do this from the MSBuild script or use a Build Step from Team City itself? Do I need to fire up

How to stop “Just In Time Debugging” messages blocking a buildserver

﹥>﹥吖頭↗ 提交于 2019-12-18 10:09:37
问题 Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program. Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build marked as failed, it just hangs. I've turned off the Just In Time debugging feature in VisualStudio, but when it's turned off, you still get a message "Couldn't JustinTime Debug

Teamcity prepare release failed due to project name got appended to FETCH URL

旧时模样 提交于 2019-12-18 09:44:49
问题 I am doing prepare release through Temcity using release-plugin I got below error [10:46:19][Step 2/3] [INFO] Executing: /bin/sh -c cd /home/tcagent/buildAgent/work/860f91e0ad4abff2 && git push https://username:****@testurl.com:8081/scm/myrepo/my-project-name.git/**buildConfName** refs/heads/release/release-name:refs/heads/release/release-name [10:46:19][Step 2/3] [INFO] Working directory: /home/tcagent/buildAgent/work/860f91e0ad4abff2 [Step 2/3] Failed to execute goal org.apache.maven

How call Web Essentials task in MSBuild ?

橙三吉。 提交于 2019-12-18 09:07:10
问题 Web essentials works great when build in VS, but seems no way to build/bundle (Scss/js,Html,Sprit) when call MSBuild (like team city). I googled lot stuffs, but only find - https://www.nuget.org/packages/Pta.Build.WebEssentialsBundleTask/ but it only support bundle, is there any other way to do that ? 回答1: finally, I found http://madskristensen.net/, Mads Kristensen split Bundler & Minifier and Web Compiler from Web Essentials 2015, and it supported integrate with MSBuild process !!!! https:/

What do I need to install for C++ project / VS 2013 on TeamCity server or Team Foundation Build Service?

白昼怎懂夜的黑 提交于 2019-12-18 08:50:09
问题 I am attempting to build a C++ project in a Visual Studio 2013 solution on TC 8.0.6 (build 27767). I have installed the latest MSBuild "Microsoft Build Tools 2013" stuff (which is normally installed as part of VS 2013 install) directly on the server. But I get the following error: [17:05:23]VCTargetsPath is c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\ [17:05:23]PlatformToolset is v120 [17:05:23]VCMessage [17:05:23]c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32

What do I need to install for C++ project / VS 2013 on TeamCity server or Team Foundation Build Service?

天涯浪子 提交于 2019-12-18 08:50:05
问题 I am attempting to build a C++ project in a Visual Studio 2013 solution on TC 8.0.6 (build 27767). I have installed the latest MSBuild "Microsoft Build Tools 2013" stuff (which is normally installed as part of VS 2013 install) directly on the server. But I get the following error: [17:05:23]VCTargetsPath is c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\ [17:05:23]PlatformToolset is v120 [17:05:23]VCMessage [17:05:23]c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32