Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Build an sln file via ANT

Posted on 2007-10-18
Medium Priority
Last Modified: 2013-11-26

How do I build a SLN file via ANT?
Question by:scully9999
  • 2

Expert Comment

ID: 20117099
You could use nant's solution task to build VS 2003 solution files http://nant.sourceforge.net/release/latest/help/tasks/solution.html. Otherwise use nant/ant's exec task to build the solution file using the devenv.com/devenv.exe executable with the exec task.

For help on how to use the devenv.com from command line, check out the help from "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.com" --help. Make necessary changes depending on where you installed Visual Studio.

Accepted Solution

ashish1977 earned 2000 total points
ID: 20117126
Addition to last comment:

Example of ant task:

<target name="build">
   <exec executable="devenv.com">
        <arg line="solutionfile.sln /build solutionconfig"/>

For details of what arguments to provide, check out the help from command line by running devenv.com --help as mentioned in the last post.

Author Comment

ID: 20121952
thanks that was exactly what i was looking for

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Don’ts and Dos are two important end products of software testing basics that a tester needs to regard. This article attempts to explain the principles of both.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question