Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As far as reading your project files. I've done something like this before. I ended up just writing a program that read the project files and built a custom project by project build file. </p> <p>However I was trying to compile my code base. Looks like you are trying to just zip it. </p> <p>Considering that the Zip task would allow you to run multiple filesets into it you could create some generic filesets and then just update for your specific ones rather easily.</p> <p>So you could have something like this:</p> <pre><code>&lt;fileset id="project.source.objects"&gt; &lt;include name="**/*.cs"/&gt; &lt;include name="**/*.xml"/&gt; &lt;include name="**/*.resx"/&gt; &lt;/fileset&gt; &lt;fileset id="project.misc.sources"&gt; &lt;include name="MyFile1.someext"/&gt; &lt;/fileset&gt; </code></pre> <p>Then in your zip target just put:</p> <pre><code>&lt;zip zipfile="myzip.zip"&gt; &lt;fileset refid="project.source.objects"/&gt; &lt;fileset refid="project.misc.sources"/&gt; &lt;/zip&gt; </code></pre> <p>Now if you wanted project specifics. There is one other thing you could do. If you are using VS2005 or greater search on T4. It's a template framework for creating plugins that allow you have extra files generated when you do something. Kind of like when you do a class diagram or have a XSD (and it gets it's code behind file, it's done this way). </p> <p>In most projects that I've worked on we maintain a build file for each project and just keep it up to date. Since we have the generic filesets that's a start so we only really need to update the file for the obscure stuff.</p> <p>Hope that helps. If you could provide a little more detail I might be able to help further.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload