TFS 2010 : Use the label name in build number format - msbuild

I'm trying to setup a build with TFS 2010. I want the build number format to be something like $(BuildDefinitionName)_$(version) where $(Version) is the version (label or changeset) specified in the "Get Version" field in the "Queue Build" dialog. If there's no specific version, I would like the version to be latest.
I googled for that but I'm new to msbuild and TFS build so I'm not sure what I should look for to get started.
Thanks.

The Microsoft.TeamFoundation.Build.Workflow.Activities.UpdateBuildNumber activity in your build template (e.g. DefaultTemplate.xaml) is what does the work of transforming your build number format string. It takes any of the parameters listed here, however, the version (your changeset or label) is not one of the supported tags.
One workaround I've found that does not require custom code is to edit the BuildNumberFormat argument immediately before the Update Build Number activity uses it.
Open up the xaml template using the GUI editor and find the Update Build Number activity at the top.
Find the Primitives -> Assign activity in the Toolbox. Drag and drop that just above the Update Build Number.
Edit the Assign activity to assign the value String.Format("$(BuildDefinitionName)_$(Date:yyyyMMdd)_{0}$(Rev:.r)", BuildDetail.SourceGetVersion) to BuildNumberFormat. The SourceGetVersion will pull the changeset number or label used to trigger the build. If nothing is specified in the Get Version dialog when you're queuing your build then the changeset number is used by default (e.g. C16044).

this is a good start
http://www.ewaldhofman.nl/post/2010/06/01/Customize-Team-Build-2010-e28093-Part-10-Include-Version-Number-in-the-Build-Number.aspx

Related

Only the UWP project is running

It doesn't work if I try to add multiple pages to UNO SOLUTION. There are a lot of mistakes coming out. Only the UWP project is running. One of the mistakes.
LIST
First create a Page (Uno Platform UWP) then copy the body.
I also fixed the error in the same way.
To fix InitializeComponent error in Uno, you could refer to the following steps that are from the official document.
You could build your project once, close the solution and reopen it. It is also important to note that Uno uses a multi-project structure, for which each project has to be build individually for errors to disapear from the Error List window (notice the Project column values).
In order to clear the Error List window, build the whole solution completely once. Thereafter, build a specific project and prefer the use of the Output tool window (in the menu View -> Output), taking build messages by order of appearance.

Appcelerator Studio indexes very slow

Once in a while Appcelerator Studio starting task "Building workspace... " and it shows that it indexes "/iphone/hyperloop/..." or "/android/hyperloop/..." even though I've disabled hyperloop in my project. Does anyone know how can I get rid of this long indexing? It takes like 20 minutes and makes no sense to me.
Thank you!
You can disable the automatic build under "Preferneces - General - Workspace - Build automatically" or inside the Project menu disable "Build automatically". If you still have the problem you could file a ticket at https://jira.appcelerator.org/secure/Dashboard.jspa
Exclude these folders from the project tree by adding Resource filters. Add Exclude All resource filter type to root folder of your project. You can also use regular expressions if needed.
This will avoid indexing the excluded files and folders, hence it will improve the performance.
Steps:
Right click on the project
Click on the project
Go to Resources -> Resources Filter
Click on Add Filter...
Select "Exclude All" from the Filter Type section
Select "Folders" from the Applies to section
Enter "modules" in the textbox as shown below
Appcelerator Studio is dog slow and I suggest to use another editor. The editor is Eclipse-based I believe, but as long as it exists it has had performance issues. The build options that are built into the appc studio can be called using the command line (appc ti build ...).
I deleted all the previous module versions of hyperloop and facebook.
Go to:
Library>Application Support>Titanium>modules
Look in:
iphone>hyperloop
iphone>facebook
android>hyperloop
android>facebook
I deleted all previous modules in those folders, keeping only the latest.

Cannot edit new locale in Codename One IntelliJ plugin

I am using IntelliJ for Codename One development. I am trying to add a new locale, so the steps I do are the following:
1. Double click the theme.res
2. Click on Localization -> Add Resource Bundle
3. Add a new locale, say "de"
4. Double click on some row, or click "Edit text". Now I expect to be able to write in a value for the new locale, but nothing happens.
My expectations are based on this video and on the developer guide. Am I missing something or this is a bug in the IntelliJ plugin?
There seems to be a regression with the first 5 default entries. If you add a new entry into the designer tool it should work.
The problem is that the new entries are null instead of blank strings and one of our recent fixes failed to account to that. If you set them to a non-null value thru the XML and then try to edit again this should work as expected in the GUI.
We'll fix this in the next plugin update within 3-4 weeks (sometime during September 2016). Since the designer is part of the tooling and not the API it isn't updated every week. The fix is already in git.

how to get the automatically incremented publish revision number

I would like to read the automatically incremented publish version revision number by code and use it so I can display it on a splash screen.
On the picture the Revision number is number 58.
I use Vb.net, Visual Studio 2013.
In fact the solution:
how to show publish version in a textbox?
does work in the compiled, published executable. But not during debugging.
remember to add "System.Deployment" as a reference to your project (under the .NET tab of "Add Reference").
example vb.net:
If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed
Then
TextBoxVersion.Text =
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString
End If

increase Idea "reopen project" list size

Is there a way to increase the size of the recent projects list you get when you use "reopen project"? I found no setting for this - but perhaps there is some magic number I can tweak in some file?!
Sorry! This is actually possible after all.
Use ctrl+shift+a to enter an action and type Registry.
From here, search for the key in the list named ide.max.recent.projects
Edit as appropriate (I have gone with 50 =).
Plus, for Android Studio, you can use this plugin: Recent Projects Extender