Create and publish .net web application programmatically

I am creating an application that should be able to publish itself to the specified directory on the command line.

I'm looking for something like

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

Is it possible?

+3
source share
1 answer

Take a look at msbuild or nant. Personally, I use msbuild to distribute releases in our QA environment and create packages for deployment to production.

Your application may, for example, invoke batch files that run msbuild scripts to create and publish assemblies.

+2
source

Source: https://habr.com/ru/post/1791286/


All Articles