teamcity

Configuring MsTest with TeamCity

ぃ、小莉子 提交于 2019-12-24 08:19:22
问题 I'm using TeamCity with a Git repository and MSTest. The step running the tests gives the following error: [Step 4/4] No assemblies, run configuration and test metadata were found [Step 4/4] Process exited with code 1 So the assembly path seems to be wrong. To execute the tests I need to specify the assembly path, what I don't understand, is where my dll is supposed to be ? The Git repository does not contain the bin folder of the project, must I add it to Git ? Is there a place the dll is

Team city vs-2017 Build version

ε祈祈猫儿з 提交于 2019-12-24 08:10:18
问题 How can I set the build version on dotnet core projects in VS2017? Is it through a build step over powershell to include the the version tag on .csproj file or is there a better way? 回答1: I've created a PowerShell Build Step with the following script and worked fine: $newBuildNumber = "%build.number%" $files = Get-ChildItem -Path "*.csproj" -Recurse foreach( $file in $files ) { Write-Host "Processing: " $file.Name $info = [xml] (Get-Content $file) if($info.Project.PropertyGroup.Version){

Unable to run MSpec test due to the fact that TeamCity is building test assembly wrong

ぃ、小莉子 提交于 2019-12-24 07:26:59
问题 I am trying to run a MSpec test following the build of my solution. So, I've got my MSBuild script set up as follows: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="Build"> <MSBuild Projects="../MyApplication.Web.sln" /> <Message Text="Building solution" Importance="high" /> </Target> <Target Name="TeamCity" DependsOnTargets="Build"> <Message Text="Before executing MSpec

Runner type : SSH exec not found in teamcity

痞子三分冷 提交于 2019-12-24 06:13:49
问题 I am new to Teamcity. I am trying to do some Build configurations on it. As of now I did some configurations but when I am trying to add a new build with Runner type: SSH exec, I am not getting this build step in the drop down. You can see in below image If there are any configuration I need to follow to get SSH EXEC in Teamcity build step please let me know. 回答1: SSH exec runner is available inside Deployer plugin. You can download the latest build from here. To install it, drop the archive

What constitutes full code coverage when I invoke dotCover from an MSTest build step in TeamCity?

[亡魂溺海] 提交于 2019-12-24 05:52:52
问题 What is considered 100% when I invoke dotCover from an MSTest build step in TeamCity? Is 100% all of the compiled code? Is it all the code for all the assemblies which the tests have touched? Is it all the classes which the tests have touched? When I invoke dotCover from a TeamCity MSTest build step which runs My.Tests.dll, which lines are code are being tracked? 回答1: dotCover only provides reporting on statement-level coverage, where as other tools like NCover also include function and

Command line upload of apk to google playstore

牧云@^-^@ 提交于 2019-12-24 04:53:09
问题 I am using TeamCity as my CI server. I want to add a build step such that the generated signed apk of an android project should get uploaded to google playstore automatically. Are there any API available for the same. Is there any terminal commands available for the same. I referred API to automatically upload apk to Google Play? but found no recent activity on uploading via API or command line. Please help me out. 回答1: The Gradle Android Publisher plugin does exactly that, as explained in

Teamcity not using the right MSbuild version

泪湿孤枕 提交于 2019-12-24 03:37:18
问题 Just installed a new version of TC and it seems not to be using the right MSbuild version for deployment. C:\TeamCity\buildAgent\work\3378319287fedcd4\Source\UI\OneBody.Web\OneBody.Web.csproj(927, 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 declaration is correct, and that the file exists on disk. I have the \WebApplications folder on

Showing `dnu publish` exceptions in TeamCity Build Results

时光毁灭记忆、已成空白 提交于 2019-12-24 03:30:18
问题 I've spent about 3 days to setup TeamCity to build and publish asp.net-5 project. Finally I did it by using dnu publish command to publish the site. I'm using the batch file to do it with following commands // stops the apppool for 'samplesite' overvise it returns exception // The process cannot access the file '...' because it is being used by another process call "%windir%\system32\inetsrv\appcmd" stop apppool "samplesite" // publish the site to the --out dir call "C:\Users\Administrator\

teamcity error MSB4057: The target “pack” does not exist in the project

送分小仙女□ 提交于 2019-12-24 03:20:29
问题 Unable to create packages for a Dot Net Core project using 4.7 framework. I am using msbuild /t:pack /p:COnfiguration=Release command in teamcity to create a package. <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net471</TargetFramework> </PropertyGroup> </Project> NuGet.Build.Tasks.Pack is installed in the project. we use only .net core csproj structure but not .net core as target framework so it can't be compiled via .net CLI - that's why we build projects via MSBuild

Test Results at TeamCity UI groups long name tests

一曲冷凌霜 提交于 2019-12-24 01:56:08
问题 My TeamCity configuration only show 255 characters at UI, Test column from the Tests tab, so if my tests share the first 255 characters of the path, they appears at status column like "OK (4 runs)" or "Failure (1 of 4)", how can I customize this limit? 回答1: Unfortunately this limit used in database schema and cannot be modified. See related issues in our tracker: TW-10480 and TW-44130. 来源: https://stackoverflow.com/questions/36431695/test-results-at-teamcity-ui-groups-long-name-tests