How should I use my code?

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

On my MVC project I have various Javascript files, CSS files and so
on ...

I created a C# class that merges, compresses and copies to the right
directories the JS and CSS files used on the project.

My question is: what is the best way to integrate this code in my
project so I can run it when I do updates in my CSS or Javascript
files or before I publish my files?

I just need to run this C# code ...

Thanks,

Miguel
 
convert your class to a msbuild task (simple - 1 interface). then add
the task to your proj file.

to learn about creating mbuild tasks see:

http://msbuildtasks.tigris.org/

-- bruce (sqlwork.com)

Hi,

I just downloaded and installed MSBuild ... However I could not find
any project of type MSBuild in my VS 2008!

I found the following:
http://blogs.conchango.com/stuartpreston/archive/2008/03/21/msbuild-project-template-v2-0.aspx

Is that it?
I just don't know how to use this template to build my MVC Web
Application project.

Could you, please, help me out with this?

Thanks,
Miguel
 
Back
Top