alumb
alumb

Reputation: 4441

build and publish .net Web App programmatically

I'm building an application that needs to be able to, on a command, publish itself to a specified directory.

I'm looking for something like

System.BuildSystem.Build(<project file>, 'release');
System.BuildSystem.Publish(<project file>, <destination folder>);

Is this possible?

Upvotes: 4

Views: 3476

Answers (1)

rsbarro
rsbarro

Reputation: 27339

Take a look at msbuild or nant. Personally, I use msbuild to push releases to our QA environment and create packages to be rolled out to production.

Your application could, for example, call batch files that run msbuild scripts to produce and publish builds.

Upvotes: 2

Related Questions