views:

27

answers:

3

In Visual Studio 2008 when you go to properties of a project (an ASP.NET MVC one at least) you have the option to run an external program. There are three parts for it: the path to the program, the command line options, the working directory.

I need to pass the root of my web application as a command line argument. I don't want to hardcode the path in my machine in that directory. Is there some sort of (environment) variable I could use?

Background: I'm trying to run UltiDev Cassini because VS' Cassini is 32bit only. I think this is the right way to run it, is it?

A: 

You will find the list of all the variables that you can use, with their values, at the following place:

  • Open the properties for your project, go the 'Debugging' node
  • click in the 'Command Arguments' field, a drop-down symbol appears on the right of the field
  • open the drop-down, choose 'Edit'
  • click on the 'Macros' button, et voilà...

This shows the list of all the variables you can use, along with their values. You should be able to find one that suits your needs...

Xavier Nodet
A: 

Try a $(ProjectDir) or $(SolutionDir) variable, or some other one from a list documented here: MSDN

Dmitry
A: 

Pablo, you can customize and compile CassiniDev as x64 and get exactly what you want.

Custom configuration via .config is on the todo for the next release.

Sky Sanders