Create msbuild script to build, publish with specified app.config and update from different locations

I've searched everywhere for this solution and can't find anything!

I want to have a msbuild script to do the following:

  • Build a design solution
  • Publish inline solution with specified app.config (app.config.debug or app.config.release) to specified folder (development or production)
  • In the specified configuration, find out where to check for updates.   -if development
      -> check in the sample production folder - if development -> check the
    development sample folder

The script is currently working, but there are two problems ...

  • I can't figure out how to have two different installations that check two different locations to check for updates.
  • I cannot automatically increment the build of revisions. It currently stays with the same build number every time I use the script.

My Current script:

msbuild "C:\sample\sample.csproj"
/t:clean
/t:build
/t:publish
/p:Configuration=release
/property:PublishDir="C:\Samplelocation/"
/property:UpdatedEnabled=true
/property:UpdateRequired=true
/property:UpdateUrl="C:\Samplelocation/"
/property:GenerateManifests=true
/property:PublishWizardCompleted=true

      

Any help would be greatly appreciated. Thanks in advance!

+2


source to share


1 answer


You should take a look at MSBuild Batching .

Here are some links to batch processing:



+4


source







All Articles