Teamcity: Force force sequence build - teamcity

I have 2 configurations:
Build App
Build Installer for App
Sometimes I want to rebuild installer without rebuilding App, so I cannot add snapshot dependency to "Build Installer".
But sometimes I want rebuild App and Installer. OK, I add third configaration "Build App and Installer", add 2 snapshot dependencies (to "Build App" и "Build Installer"), press "Run" and "Build App" and "Build Installer" runs in parallel.
So question is: how to make "Build App" and "Build Installer" to run sequenced ?

Related

Error when building application using cordova

I am using cordova 6.5.0 and when I run "cordova build ios" the build failed with error "No profile for team **** matching ***** found"
but when I open the project in Xcode I am able to build and archive using the same provision profile
How do I solve this?
1) Do you have any Embedded Frameworks in your project?
Go to Build Phases > Under Embed Frameworks
Tick the checkbox for Code Sign On Copy
And try to build again
2) Try to double check your certificate and your provisioning profile if it is selected correctly
Hope it helps!

Continuous Integration on VSTS - Build Definition: No Files - System.AggregateException

I am using Visual Studio Team Services. I created a Simple ASP.NET website and created my Build definition which contains default settings.
After committing changes, the build is triggered using CI. The "Build Solution" Step works fine, however no files are found in the Copy Files Step:
I have created the same build definition for a simple console app, and the build and release are working.
When Creating a release from this build, it fails to deploy (i guess because no files are found in (Build process)) and gives the following error:
When you build Asp.Net project with a default VSBuild definition, the folder bin\$(BuildConfiguration)\ does not exist. So "Copy Files" task cannot find any files with the default settings. A simple way to fix your issue is add /p:outdir=$(build.artifactstagingdirectory) in "MSBuild Arguments" for VSBuild task as following:
And you can also remove "Copy Files" task since "Publish Build Artifacts" task publishes the files in $(build.artifactstagingdirectory) folder by default and you have set the build output to that folder with the argument added in VSBuild task.
Update:
You can add a "Copy Files" task with the following settings to copy "roslyn" folder to "bin" folder:

Change active build target xcode 4

I am not able to run the TestXcodeColors.app in this project
Product / Edit Scheme...
Choose the "Scheme" aka "Target to build" in the drop down that says "Scheme" and hit "OK"

How to add a 'Copy Files build phase' to my Target

I am trying to use a framework that requires me to add a 'Copy Files build phase' to my target. Does anyone know what this means and how to do it?
In Xcode 5, you have to click on your target, then on Editor (menu bar) --> Add build phase --> Add Copy Files Build Phase:
Right-Click on your target in XCode, select add "new build phase" and then "new copy files build phase".
A "DIY" answer: Go to Xcode --> Help --> type your query, e.g., "add copy". And Xcode helpfully points you in the right direction.
In Xcode 4, the option is in Editor->Add Build Phase.
The Copy Files build phase then appears in the Project Navigator and you can add things to it by clicking the plus.

Any clever way to launch a makefile in Visual Studio only if build succeeded?

We have a makefile that is built last in our build process using Visual Studio to launch our unit tests. Unfortunately if the build fails the makefile is still processed and we have extra (annoying) errors. Any way to prevent that?
Example
Project A : build dummy.exe
Project B (makefile) : build command is : run dummy.exe /unittest
We want Project B to skip its build command when Project A has build errors. Thanks!
Set Project B (your makefile project) to be dependant on Project A. This way Project B will always try to build Project A before it builds.
Go to Project Properties. I assume you already have something in the "Post-Build event command line" box? There is a "Run the post-build event" combobox, set it to "On successful build".
Is that what you're looking for?

Resources