build-automation

Reload Environment Variables in C# after launch

落花浮王杯 提交于 2019-12-07 12:53:53
问题 We received a new code base that uses environment variables all over the place. They point to things like the project root, assets, different tools, etc. Not the most ideal situation but it works. However, when it comes time to try and run our automated build it becomes a giant pain. Windows seems to instance the environment variables when a process is created and does not refresh those values again. We would like to be able to have our Automated Build System run through a list of projects

Why does TeamCity miss a reference and fails compilation?

与世无争的帅哥 提交于 2019-12-07 11:41:48
问题 I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution to learn it. My solution has 2 projects: ConsoleApplication1 and ClassLibrary1. ConsoleApplication1 has a reference to ClassLibrary1. The solution compiles with no problem in VS directly. However, when I try to compile the same solution in TeamCity, it fails with error: Program.cs(13, 25): error CS0246: The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an

Why do Unit Test systems include useless assertive methods? [closed]

你。 提交于 2019-12-07 11:19:48
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I'm wondering why unittest systems like PHPUnit include what seems to be repetitive operators that just add overhead to the unit tests. I can understand a couple of those methods, but most seem like a total waste of time. public function testPop(array stack) { this-

Using Apache Ant APIs in Java program to programmatically build source files

余生长醉 提交于 2019-12-07 09:34:55
问题 I am looking for good and practical resources that will help me use the Ant APIs effectively. The project website just gives the documentation of the API which is not useful at all. Very few websites seem to give very brief tutorials on the subject. Is there some resource I am missing out on? How can I use the Ant APIs for simple tasks, without spending hours browsing through them and looking at source code? Thanks. (Answers to previously asked questions not helpful - How can i use Apache ANT

Gradle 1.3: build.gradle not building classes

此生再无相见时 提交于 2019-12-07 06:21:43
问题 a newb question here: I have a build.gradle file with apply plugin: java in it, and associated with a java project/package. when I run gradle build from the command line I get: :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test UP-TO-DATE :check UP-TO-DATE :build UP-TO-DATE BUILD SUCCESSFUL Total time: 4.312 secs but when I check the build

Continuous Integration with Teamcity and Clearcase

时光毁灭记忆、已成空白 提交于 2019-12-07 05:13:31
问题 Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a productive continuous integration build environment on a decent size project? 回答1: Yes we have, but with a custom ClearCase plugin for TeamCity , in order to:: use a dynamic view set with a "time" directive , and to avoid hundreds of " descr -l " for each changed files (which would be Sparta, err, no, madness, would be madness since it would represents hundreds of transaction to the

Does MSBuild need Visual Studio to be installed?

只愿长相守 提交于 2019-12-07 04:22:16
问题 I'm setting up a build server using Atlassian Bamboo. MSBuild is included with the .NET framework, so I believe I can build .NET applications fine at least without VS2010. We mostly develop in C++ - will I need to install Visual Studio on the build server to build .vcxproj C++ projects, or can this be done only with MSBuild? 回答1: No you just need the toolset (libraries) see: http://msdn.microsoft.com/en-us/library/dd293607%28v=vs.100%29.aspx 来源: https://stackoverflow.com/questions/10063355

Comparison between CruiseControl, TeamCity and Team Foundation Server

荒凉一梦 提交于 2019-12-07 04:01:07
问题 Today we are using TFS 2008 for source control, and I imagine we will go for TFS 2010 as quick it goes RTM. We are going to use some continues integration tool but which one? I have been looking at both TeamCity and CruiseControl.NET both seems quite good (TeamCity were a little more easy to configure). I have seen some really promising screencast about TFS 2010 automation tools and it looks really good. But I have only scratched the surface of the tools. Which one should I use? 回答1: Given

using different string files in android

不想你离开。 提交于 2019-12-07 03:13:23
问题 I'm porting my iPhone app to android and I'm having a problem with the string files now. The app is a translation tool and users can switch the languages, so all the localized strings are in both languages and they are independent from what locale the OS is running. For iOS version I have different files like de.strings, en.strings and fr.strings and so on. For every target with specified language pair I read the strings from the string tables, e.g. for de-fr I will include de.strings and fr

How to set Node.js and NPM version numbers in a hosted VSO Build Agent?

荒凉一梦 提交于 2019-12-07 02:50:47
问题 In Visual Studio Online you can now set build dependencies on the General tab of a build definition. But.. is there a way to set the version of Node.js and NPM? It seems like a hosted build agent is currently using Node.js v0.12.7 and NPM v2.11.3 but I need Node.js v4.2+ and NPM v3.3+. Is there a way to enforce it? P.S.: On-premise VSO build agent is not an option. 回答1: There is now a Node Tool installer available. The link to software inventory shared by Daniel was very helpful, and I