teamcity

TeamCity - FTP Upload to Azure fails

…衆ロ難τιáo~ 提交于 2019-12-11 02:54:28
问题 I am trying to deploy a .Net Core 2.0 project to an Azure web app using a TeamCity build. There are 3 steps : 1 - Nuget Restore 2 - dotnet publish 3 - FTP Upload After step 2, I get a folder "Output" with all the stuff I need to copy to my Azure web app. I configured step 3 to copy the content from this folder to my wwwroot folder on the Azure FTP. This step copies 3 DLLs and then displays the following message : [Step 3/3] Deployment problem: Failed to upload artifacts via FTP. Reply was:

Mark as successful action for builds in Teamcity

佐手、 提交于 2019-12-11 02:25:33
问题 I have a question to all the experienced Teamcity users out there. I would like to exit out of a job based on a particular condition, but I do not want the status of the job as a failure. Is it possible to mark a job as successful even when you exit out of the job with an "exit code 1" or any pointers to achieve the same (exit out of a Teamcity job but mark the job as successful) through an alternative way is greatly appreciated! Thanks! 回答1: You can use TeamCity service messages to update

How to get TeamCity build version into unmanaged DLLs and OCX controls?

吃可爱长大的小学妹 提交于 2019-12-11 01:59:31
问题 I have a TeamCity build solution with managed (C#) and unmanaged (C++) projects. Is there a TeamCity utility out there similar to Assembly Info Patcher that will change the version numbers in the .rc files for unmanaged C++ DLL and OCX projects to match the build number? 回答1: No, teamcity doesn't have anything to update version of C++ dlls, you could however use StampVer.exe to update the version of C++ dlls. You'll need to download the exe and add a build to call the exe which will update

How to configure TeamCity to build a solution with 2 projects?

独自空忆成欢 提交于 2019-12-11 01:24:30
问题 How to configure TeamCity to build a solution with 2 projects? I have configured TeamCity to build my solution which has 1 project which is chosen as Startup Project and it builds fine. I configured it by adding a new Build Step with Runner Type of "Visual Studio (sln)" from its WebUI. I added a new class library project and added a reference to it from the first project and it builds fine locally. The .csproj file of the first project now contains this: <ItemGroup> <ProjectReference Include=

msbuild create itemgroup from property group

て烟熏妆下的殇ゞ 提交于 2019-12-11 00:01:36
问题 I want to pass a semi-colon separated list of strings. Each string represents a file name. <PropertyGroup> <FileNames>Newtonsoft.Json;Reactive</FileNames> <PathToOutput>C:/</PathToOutput> </PropertyGroup> Now I want to create an item group which should give me all the files in particular folder excluding list of Filename, something like: <ItemGroup> <ReleaseFiles Include="$(PathToOutput)\**\*.*" Exclude="%(identity)-> identity.contains(%FileNames)"/> </ItemGroup> How do I iterate through

TeamCity build step — FAILED in MSBuild

怎甘沉沦 提交于 2019-12-10 23:59:02
问题 The solution builds successfully on my machine but not on the build server. There are the project's solution Projects within solution This is the MSBuild output [13:42:17][Step 2/5] MSBuild output [13:42:17][MSBuild output] Focal.Business.Library -> D:\BuildAgent\work\9d2a77191c8abcc1\Focal.Business.Library\bin\Release\Focal.Business.Library.exe [13:42:17][MSBuild output] Copying file from "obj\Release\Focal.Business.Library.pdb" to "bin\Release\Focal.Business.Library.pdb". [13:42:17][MSBuild

File Content Replacer having no effect on artifacts

本秂侑毒 提交于 2019-12-10 23:33:00
问题 I'm using a relatively new feature of TeamCity: File Content Replacer. In my current setup I have a version.js file in my VCS: window["MyPlugin"].version = "1.0.##VCS_REVISION##.##CI_BUILD_NUMBER##"; I use the File Content Replacer build feature to replace that last part with: %build.vcs.number%.%system.build.number% So far so good! I have one relevant build step. It's an MSBuild step, but it does nothing except call a ps1 , which does two relevant things: Moves all js files to an " output "

Why do I get an Invalid Operation Exception (non STA thread?) running this MSpec test on TeamCity?

↘锁芯ラ 提交于 2019-12-10 22:55:28
问题 As part of the migration of my app to .NET 4, I'm struggling to get some of the WPF unit tests working again with TeamCity. On all the tests that are somehow using a WPF control (a ListItem for example), I get an exception I didn't get before: System.InvalidOperationException: The calling thread must be STA, because many UI components require this. I understand what it means, and after checking, it turns out that my thread is indeed MTA, not STA. My problem is that I have no idea on how to

Show Changes with Files in TeamCity 5.1 Notification

故事扮演 提交于 2019-12-10 22:54:18
问题 I would like to include a list of changed files in the TeamCity 5.1 email notification which is sent out to my team after a successful or failed build. I have reviewed the Customizing Notifications in TeamCity 5.1 documentation and I have looked at the .ftl template files found within the config\_notifications\email folder, but I haven't found a list of available template variables or alternate template samples. I was able to include a list of changed files in prior versions of TeamCity (I

BadImageFormatException thrown when running NUnit tests on TeamCity

南楼画角 提交于 2019-12-10 18:57:07
问题 I have a unit test project using NUnit 2.6.3 using .Net 4.5. But in the teamcity build step configuration I only have runtime 4.0 available (even if other components of my solution are compile against 4.5) and when I run my unit test I get the following exception : [Step 8/9] System.ArgumentException: Specified NUnit error running tests in '[SANITIZED].UnitTest.dll' assembly Loading assembly is compiled for v4.0.30319, MSIL NUnit runner runtime is v4.0.30319, x64 System.ArgumentException: A