How will you build using MS Build command line ?

Wednesday, September 2, 2009


MSBuild.exe TestProj.proj /property:Configuration=Debug


www.codecollege.NET

What are Targets in MS Build?


They are used to group Tasks.


www.codecollege.NET

What are Tasks in MS Build?


Tasks are reusable units of executable code used by MSBuild projects to perform build operations. They are declared inside the Target element.


www.codecollege.NET

How will you refer properties in a project file?


$(PropertyName).


www.codecollege.NET

How will you refer item collections in a project file?


@(ItemCollectionName).


www.codecollege.NET

Give an example for PropertyGroup



ABC



www.codecollege.NET

What are Properties in MS Build?


They are key/value pairs which are used to configure the build. They are created by declaring a property element inside PropertyGroup element.


www.codecollege.NET

Give an example for ItemGroup ?







www.codecollege.NET

What is an ItemGroup in MS Build ?


Items represent inputs to the build system and they will be added as collections which are used as
parameters for tasks. They are available inside the ItemGroup element.


www.codecollege.NET

What is MS Build ?


It is a build tool for Visual Studio. It will build the software in environments where even visual studio is not installed.


www.codecollege.NET

What is Team Foundation Proxy Server ?


It is used to develope a single application from many places around the world at the same time.


www.codecollege.NET

In TFS if you Branch A to B , then B to c. If you delete branch B , then is it possible to


No.


www.codecollege.NET

When are Date Type branching used ?


It is used on situations like release.


www.codecollege.NET

When are Changeset Type branching used ?


It is used on situations like maintenace or bug fixing , ie., you knew where the break occured.


www.codecollege.NET

When are Latest Version Type branching used ?


It is used on situations like hotfix where you need the stable lastest version.


www.codecollege.NET

When are Workspace Type branching used ?


Workspaces are mapped from developer's machine to server , so this type will reflect local
files.


www.codecollege.NET

When are Label Type branching used ?


It is not time-based, instead used on such situations where branching needs to be done based on
a collection of files grouped by a user.This type of branching is for the needs of an individual
user.



www.codecollege.NET

What are the options available on creating a branch?


There are 5 options available on creating a branch, they are :
1. Changeset
2. Date
3. Label
4. Latest Version
5. Workspace version


www.codecollege.NET
Blog Widget by LinkWithin