Need a beginner tutorial for Msbuild

We support a medium-sized application for Windows, developed in vb / C # .net at work. The build and deployment process for this application is currently manual. I am determined to make this process automated using MSBuild, which I do not know yet.

Our application has a simple build structure, a set of projects already grouped into four solutions (.sln), and you just need to build four slns in order. Then publish the project (which is part of the last sln to be created) to the directory. That's all. A simple process that already consumes 30 minutes of manual build time, and I am sure that this can be done without manual interference using msbuild at least 1/4 times.

All my goals are set well, I began to inspect the web resources for MSBuild to complete my process, but maybe I look back, many things confuse me. Need a pointer or a good explanation of how to start and where to start for my simple scenario. Help is much appreciated.

+5
source share
2 answers

It sounds like a very simple script to write. Even the batch file:

msbuild \ path \ to \ first.sln / p: Configuration = Release
msbuild \ path \ to \ second.sln / p: Configuration = Release
msbuild \ path \ to \ third.sln / p: Configuration = Release
msbuild \ path \ to \ fourth.sln / p: Configuration = Release
call deploy

, , CruiseControl.NET, - .

MS Build : . - , , , .. , .

(. ). *. * Proj, PropertyGroup. /p.

:

/target:<targets>  Build these targets in this project. Use a semicolon or a
                 comma to separate multiple targets, or specify each
                 target separately. (Short form: /t)
                 Example:
                   /target:Resources;Compile

/property:<n>=<v>  Set or override these project-level properties. <n> is
                 the property name, and <v> is the property value. Use a
                 semicolon or a comma to separate multiple properties, or
                 specify each property separately. (Short form: /p)
                 Example:
                   /property:WarningLevel=2;OutDir=bin\Debug\
+5

, MSBuild, Continuous Integration CuriseControl.NET. .

+1

All Articles