teamcity

Running Watin on TeamCity

我怕爱的太早我们不能终老 提交于 2019-11-27 13:57:01
问题 I'm trying to run a simple Watin test through TeamCity but the Internet Explorer window is never shown as is usually is via CruiseControl. I get an error that it can't find a text field so something is running. But i can't see what without the window. Is there a specific change to the setup of TeamCity server that I need to do? 回答1: Under Account tab on the Teamcity Agent's Service property window ( services.msc ), check "Allow service to interact with desktop", that will allow local service

ASPNETCOMPILER error ASPCONFIG: Could not load file or assembly 'Microsoft.VisualBasic.Activities.Compiler' or one of its dependencies

允我心安 提交于 2019-11-27 13:44:31
问题 I just upgraded my project to Asp.Net 4, from 3.5. When the build kicks off from TeamCity, I get the following error: [Project "Website.metaproj" (Rebuild target(s)):] C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /Website -p Website\ -u -f PrecompiledWeb\Website\ [12:11:50]: [Project "Website.metaproj" (Rebuild target(s)):] ASPNETCOMPILER error ASPCONFIG: Could not load file or assembly 'Microsoft.VisualBasic.Activities.Compiler' or one of its dependencies. An attempt

NUnit expected exceptions

与世无争的帅哥 提交于 2019-11-27 13:00:42
I've got a set of test cases, some of which are expected to throw exceptions. Because of this, I have have set the attributes for these tests to expect exceptions like so: [ExpectedException("System.NullReferenceException")] When I run my tests locally all is good. However when I move my tests over to the CI server running TeamCity, all my tests that have expected exceptions fail. This is a known bug. I am aware that there is also the Assert.Throws<> and Assert.Throws methods that NUnit offers. My question is how can I make use of these instead of the attribute I'm currently using? I've had a

How to add the custom nuget feed to TeamCity build?

吃可爱长大的小学妹 提交于 2019-11-27 12:01:54
I have created a Nuget Server using Teamcity (running on a virtual machine in internet) and created the build that publishes a package into it. I also have another project that needs to use that package. This project is built on teamcity as well. On my local Visual Studio I added the nuget feed uri, installed the package and everything works fine. But when I try to build it on teamcity it says that "Package not found". So my question is : "How to add the custom nuget feed to TeamCity build?" The NuGet package sources are configured through Visual Studio, but they're stored in a per-user

'dotnet restore' vs. 'nuget restore' with TeamCity

蹲街弑〆低调 提交于 2019-11-27 11:57:22
问题 I have an ASP.NET Core project that builds properly with Visual Studio, but it doesn't build under MSBuild. It doesn't find all the common libraries (system, etc.). I'm using TeamCity and part of the build process is a nuget restore . I tried to do the same steps as TeamCity, but manually with MSBuild, and it failed, not finding the libraries. I added a dotnet restore step and then it worked. So, what is the difference between a nuget restore and a dotnet restore ? 回答1: Both nuget restore and

How can I change the user identity that runs a build agent in TeamCity?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 11:04:48
问题 I am trying to get a build process set up in TeamCity 5, and I am encountering an access denied error when trying to copy some files. I see that my build agent is running as "SYSTEM" now, and I think that's part of the problem. I'd like to change that user identity. The trouble is that I can't figure out how to change those settings on the build agent. How can I change the build user identity? 回答1: Open the services list (Start -> Run -> services.msc) Find the "Team City Build Agent" service

msbuild.exe staying open, locking files

痴心易碎 提交于 2019-11-27 10:54:24
I use TeamCity which in turn invokes msbuild (.NET 4). I have a strange issue in that after a build is complete (and it doesn't seem to matter if it was a successful build or not), msbuild.exe stays open, and locks one of the files, which means every time TeamCity tries to clear its work directory, it fails, and can't continue. This happens almost every time. I'm really lost on this one, so I'll try to provide as much detail as possible. Server is an Intel Core i7, 2 GB ram, with Windows Server 2008 standard 64-bit SP2. In TeamCity, the msbuild runner is configured with the /m command-line

How to debug into my nuget package deployed from TeamCity?

蹲街弑〆低调 提交于 2019-11-27 10:23:25
I have put a library that my team uses into a nuget package that is deployed from TeamCity into a network folder. I cannot debug into this code though! SymbolSource is one solution I have read about but I would much rather find some way to have access to the .pdb/source files directly from Teamcity. Does anyone know how to do this? Edit. When I check 'Include Symbols and Source' in the Nuget Pack build step TeamCity creates a .Symbol.nupkg in addition to the .nupkg file in the network folder. The .Symbol.nupkg contains the src and the .pdb file. Edit. I unchecked 'Include Symbols and Source'

MSBuild in TeamCity of Visual Studio 2012 solution

↘锁芯ラ 提交于 2019-11-27 10:19:23
I have a VS 2012 web project /sln that I am trying to build in TeamCity. it uses .NET 4.5 which is installed on TeamCity. The TeamCity server has VS 2010 installed only . I get this error when the build runs: C:\BuildAgent\work\d5bc4e1b8005d077\CUSAAdmin.Web\CUSAAdmin.Web.csproj(799, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Project CUSAAdmin.Web\CUSAAdmin.Web.csproj failed.

Why would a post-build step (xcopy) occasionally exit with code 2 in a TeamCity build?

别来无恙 提交于 2019-11-27 09:55:11
问题 A few projects in my client's solution have a post-build event: xcopy the build output to a specific folder. This works fine when building locally. However, in TeamCity, I occasionally get xcopy [...] exited with code 2 If I use regular copy , it exits with code 1. I expect this has something to do with file locks, although the specific files being copied are not the same, so perhaps just locking on the shared destination directory. I use /y to not prompt on overwriting files. Why this fails