teamcity

C# Object Initializers and v2.0 compiler error

I'm having an issue setting up one of my projects in TeamCity (v4.0), specifically when it comes to using Object Initializers. The project builds fine normally, however it would seem that TeamCity transforms the build file into something it likes (some MSBuild mutation) and when it comes to compiling the code for a part of the solution ...

Microsoft Office PIA and how to reference and build correctly from WebApp

All, I am currently trying to build on teamcity, which uses Microsoft.Office.Interop dll. This will build and work fine locally as I have office installed, however when trying to build it on TeamCity it fails as it has no reference. I can't install the PIA distributable as I get an error message saying the Office 2003 is required to ...

Why won't TeamCity run my Nant build file?

I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is: <?xml version="1.0" ?> <project name="Project_name" default="update"> <property name="root" value="C:\Subversion\UpdateDir" overwrite="false"/> <property name="build.repos" value=...

SVN, TeamCity virtualisation / hardware requirement

I am trying to put a requirement together for a new environment to consist of TeamCity running of Sql Server, a couple of build agents (for now) and an SVN repository. There are 6 developers and there will be 5 active solutions partaking in the CI process for now which will obviously grow over time. None of the solutions take >10 minut...

What dlls from Gallio do I need to include for TeamCity to run the tests

I'm using Gallio and MbUnit 3, and I have Team City 4 installed. I just put the whole bin directory of Gallio into Subversion since I didn't know what dlls I needed. Do you know which ones I need to keep, and what I don't need to put into SCM? Thanks. ...

Framework + Client Code references

Hi, We are simultaniously working on a base-framework and on a implementation (little test tool) on top of it. There are several things I'd like, and I am wondering if they are all possible: (.NET 3.5, VS2008) Have a .sln with only the implementation (tool) - project Have a .sln with tool + framework projects Have a .sln with only f...

How do I automate unit tests for a console application in TeamCity?

I've written a console application that has a number of unit tests and I'm wanting to include it in my nant build script so that it will be run on our TeamCity CIS. Unfortunately I'm not quite sure how to do that. The nant script has examples of current projects that have been added...they they all have to supply the assemblies that nee...

How can I use SVNLook functionality on client machine

All I wish to call the svnlook commandline from my MSbuild script using the Exec command, however all the documentation I have read seems to indicate that this can only be run on the machine holding the repository itself (i.e. the server.) Does anyone know how I can access this functionality from the client machine, is there a client...

Is there any way to avoid installing Microsoft Visual Studio 2008 Team System Database Edition to be able to build DBPro projects on a centralized build server?

I have a DBPro (DataDude) project inside my solution to manage and version the database schema of my application. I use TeamCity 4.0 for continuous integration. To be able to build a .dbproj, MSBuild tasks and their respective assemblies have to be installed, other .dbschema and .xsd dependencies put in place. The easiest solution is to...

Running WatIn on TeamCity

I'm trying to run a simple WatIn test through TeamCity but the IExplorer window is never shown. Like it is usally through CruiseControl. I get an error that it can't find a text field so something is running. But i can't see what with out the window. Is there a specific setup of TeamCity server that i need to do? ...

Driving NDepend with NUnit

Is it possible to use NUnit to run CQL queries using NDepend? It would be nice to be able to just include the NDepend dlls in a UnitTests library and write tests like: [Test] public void DomainAssemblyHasNoDatabaseDependencies ... or something similar. This would make it very easy to integrate with Team City, and automatically fail ...

TeamCity forgotten admin password - where to look?

I need to recover/reset the admin password for JetBrain's TeamCity. I have full RDP access to the server so no problems there. It's just been 2 months since we used it so now I have forgotten my login - my usual ones don't work. It is setup without a database at the moment, so was hoping the usernames would just be in a file somewhere,...

TeamCity Twitter Notifier?

Has anyone built something to send out your TeamCity build status with Twitter? Can this be done with TeamCity's Jabber support? ...

Watin test hang application while uploading file

I have an issue with watin test that should browse for pdf and upload it to a web page. This test runs smoothly on my machine, always find pdf, click submit and wait 30 sec for upload completed. But when I try to run this test on build machine (teamcity), happens that test hang at the point when it should wait for upload. The problem...

Changing an IIS6 website directory remotely

First, the prior situation: We have this project with a one-click build script. It's cobbled together with TFS Deployer + PowerShell + VB Script. TFS Deployer sits on the production machine, copies the new website files into a brand new directory, and then calls a VB Script that changes the IIS website to the new directory. Now, I'm ...

How can you link version numbers between build configurations of a TeamCity project?

I'd like to have 3 distinct builds within a TeamCity project (Development, QA, Production). With the dependencies linked (Production can't build without a successful QA, and QA can't build without a successful Development), I'd like to propagate the version numbers through the builds. Development Build => v 1.0.1.0 QA Build => on succe...

NAnt Builds Failing on Windows Server 2008 after installing ASP.NET 2.0 SDK

I'm using TeamCity to manage one of my projects however it doesn't seem to be working well with Nant on Windows Server 2008. What can I do to fix this? BEFORE Installing the ASP.NET 2.0 Framework SDK: [10:21:07]: BUILD FAILED [10:21:07]: Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework. [10:21:07]: ...

Reinstall TeamCity when Tomcat becomes corrupt

I've got a TeamCity 4 installation where tomcat has bit the dust with the following error "The APR Based Apache Tomcat Native library which allows for optimal performance in production environments was not found in java.library path". It appears this started happening once the JDK was installed on the server to allow for a compile. The...

Can you configure TeamCity "Artifacts" to be checked back into source control?

I would like to have TeamCity Artifacts be checked back into source control. I have used TFS Integrator before. So I am used to its approach where, through config, it can check in the output builds back into source control. Then when people do a get they will receive these artifacts. Or is there a completely different way of achieving ...

Finding TeamCity Agent's working path for use in MSBuild script

Hello, I want to copy the output files from my build to a staging server, but I can't figure out how to find the path used by TeamCity to store the build output in from in MSBuild. Any help? Thanks! ...