build-server

Build dependencies and local builds with continuous integration

。_饼干妹妹 提交于 2020-01-15 13:33:52
问题 Our company currently uses TFS for source control and build server. Most of our projects are written in C/C++, but we also have some .NET projects and wouldn't want to be limited if we need to use other languages in the future. We'd like to use Git for our source control and we're trying to understand what would be the best choice for a build server. We have started looking into TeamCity, but there are some issues we're having trouble with which will probably be relevant regardless of our

How do you programatically download the artifacts from the latest Team City build using C#?

♀尐吖头ヾ 提交于 2020-01-07 06:53:10
问题 I understand the HTTPClient and GET process. What I'm trying to find here is the correct URL/syntax to make this work with Team City. I've been trying to get this to work using the examples at RestDocumentation However, they all require a buildId. This is a distinct build number which changes with each build. I've tried several combinations with buildId=lastSuccesful but I just can't seem to get the syntax correct. I have been able to create a link that successfully downloads a specific build

CruiseControl.Net complaining about xml

陌路散爱 提交于 2020-01-05 03:44:18
问题 I inherited an existing project with a failing build. I can see the exception in the ccnet.log file: Exception: System.Xml.XmlException: Name cannot begin with the '%' character, hexadecimal value 0x25. Line 17, position 100. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args) at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset,

Setting up TeamCity to integrate to OSX Build Agent

╄→尐↘猪︶ㄣ 提交于 2020-01-02 05:18:25
问题 Following on from my question on Setting up Teamcity to build Android, I now have the fun challenge of doing the same for an iOS project! What I would like to do is have a TeamCity job (along with all our other Teamcity jobs) to build an iOS Codebase + run unit tests. I'm aware to build iOS we need an OSX Build Agent with XCode installed. It won't work on Windows. What I'd like to know is ... has anyone successfully done this, integrated a Windows TeamCity instance with an OSX Build Agent

VisualStudio.com can't load the temporary UWP certificate during builds

╄→尐↘猪︶ㄣ 提交于 2019-12-31 11:03:16
问题 I set up my Visual Studio Team Service account to clone my private GitHub repo and build the Windows UWP application anytime I queue a build. The cloning works without any issues; the compilation of every project (6) works except one. The Windows UWP app project. I receive the following warnings while the build server compiles the app: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1778,5): Warning APPX0104: Certificate file 'myapp

Can I use mstest.exe without installing Visual Studio?

做~自己de王妃 提交于 2019-12-28 03:17:13
问题 I want to use mstest.exe to run my unit test on build server, but I don't want to install Visual Studio on the build server. Can I just install MSTest without Visual Studio? 回答1: It is possible to run mstest.exe without visual studio. Download one of the Agents for Visual Studio ISO's below and install the Test Agent on the server: Visual Studio 2017 (127MB disk space, less than that for download) Visual Studio 2015 (128MB setup, 2GB disk space required) Visual Studio 2012 (224MB) Visual

ASP.NET Core Web API: Program does not contain a static 'Main' method suitable for an entry point

大兔子大兔子 提交于 2019-12-25 07:59:34
问题 I am working on an ASP.NET Core Web API that references other projects (csproj) within a large solution. The ASP.NET Core Web API builds in Visual Studio 2015 and using msbuild in a command prompt "on my machine" :-) msbuild SomeWebAPI.xproj Compilation succeeded. 33 Warning(s) 0 Error(s) Time elapsed 00:00:01.7740626 Done Building Project . . Build succeeded. Problem is it doesn't build on our build-server. Same msbuild-command, same msbuild-version, different result: msbuild SomeWebAPI

Is it possible to compile Typescript files locally but not on the build server?

牧云@^-^@ 提交于 2019-12-23 22:13:46
问题 I've added Typescript to my build process, but I'm getting the Write to file failed error because the destination js file is Read Only, and this is because I'm including the emitted js file in TFS. I know I could remove the js file from TFS and always generate on the fly, but I don't want to do that because I want to include them in the project and the deployment to the build server will fail if I do that with files that aren't in TFS. I could use a pre-build step to remove the Read Only

TFS 2017 - Build Server does not build Visual Studio 2017

﹥>﹥吖頭↗ 提交于 2019-12-22 08:08:33
问题 After upgrade of Visual Studio 2017 last week on my build server, the MS Build 15.0 is not in use anymore. So whenever I try to compile visual studio 2017 projects which use new feature they will fail. The Warning in build log is: Visual Studio version '15.0' not found. Looking for the latest version. And the error is: something.cs(542,41): Error CS1525: Invalid expression term 'int' Which is because build server is using MS build 14.0 I guess. So far I have 1- Uninstall and Reinstalled the

How do we authenticate against a secured NuGet server with Cake build?

给你一囗甜甜゛ 提交于 2019-12-21 03:58:22
问题 We are working on automating our builds using Cake Build and we use NuGet packages from nuget.org but we also have our own NuGet Feed server which has a username/password authentication to access. How do we utilize Cake Build with a custom NuGet feed server with authentication? 回答1: Cake utilizes the NuGet.exe for installing tools, addins and the NuGet aliases. Unless you have a source specified in the #tool / #addin directives or provided to the NuGet aliases, then NuGet.exe will look for