D.R.
D.R.

Reputation: 21194

Build scripts for C# project - written in C#?

We've got a quite complex deployment scenario and want to make use of continuous deployment. Currently we've got a huge MSBuild script for everything, however, MSBuild is ok for building but not really suitable for deploying.

We'd love it if there would be some kind of C# project where we could write the deploy code directly with C#. Is there some C# scripting language which is suitable especially for deploying applications?

Upvotes: 1

Views: 882

Answers (5)

Karl Harnagy
Karl Harnagy

Reputation: 727

While it's not a C# project, you can use my company's product BuildMaster to handle deployments. It's designed to solve some of the problems you're already having, and some you probably don't realize you have (configuration file deployments, database schema updates, process automation, approvals, etc.)

However, if all you want is to write C# scripts for deployment, there's a tool called con-dep which looks like what you're describing.

Upvotes: 1

Daniel Mann
Daniel Mann

Reputation: 58980

You may want to look into using a tool that's specifically designed for handling deployments. If you're using Team Foundation Server, Team Build + InRelease provides a well-supported, well-documented way to handle your builds and deployments. Now that Microsoft owns InRelease, it'll be part of Team Foundation Server pretty soon.

If not, you can always write PowerShell scripts to handle your deployments. PowerShell isn't C#, but it's built on top of the .NET framework (so all the framework methods you're familiar with are still available), and the learning curve isn't very steep.

Upvotes: 0

joe
joe

Reputation: 8634

You can use the .NET integrated C# compiler.

The advantage is that you can use the same DLLs/APIs in a C# 'script' as you do in your own software.

I use it in our production software. Our production engineers are able to write some small programs for special stuff.

See this answer for details.

Upvotes: 0

KarmaEDV
KarmaEDV

Reputation: 1691

Depending on your deployment solutions you might want to look into the NAntBuilder IDE. We used this for continuous ddeployment together with SVN server. If you have TFS why don't you just look into the details and many possibilities of Build Process templates?

Upvotes: 0

alc
alc

Reputation: 1557

Well, with Roslyn now I suppose that you can technically now use C# as a scripting language. I don't know if it would be terrible appropriate to do so...

Upvotes: 0

Related Questions