Output Path - I want to use absolute paths, not relative paths.  
Author Message
BrentHe





PostPosted: Visual C# IDE, Output Path - I want to use absolute paths, not relative paths. Top

Hi all,

This is a general VS question (not specific to C#) but I couldn't find a more appropriate forum.

I want to set the Output Path for VS projects, to an absolute path, not a relative path. Can I do this

When I specify an absolute path, VS (and vb 6 for that matter) converts it back to a relative path.

The reason I want to do this, is that with our source control system, each developer may place their working copy of the project at different places in their file system, relative to this output path. Since the developers may place the project in different places, the output path will be different between developer machines. I need it to be the same. Please don't suggest to "have developers all copy their working copy of the project to the same area in their file systems..." That is too difficult to enforce for various reasons (we do parallel development, so at times, a developer may have different versions of the same project, in different areas in their file system).

Thanks in Advance.

Brent



Visual C#16  
 
 
Mark Rendle





PostPosted: Visual C# IDE, Output Path - I want to use absolute paths, not relative paths. Top

Hopefully this doesn't qualify as your "Please don't suggest..."

You could use the "Post-build event command line" in Project Properties -> Build Events to copy the Project output to the relevant folder

From the VS documentation: "Output path: Specifies the location of the output files for this project's configuration. Note that the path is relative; if you enter an absolute path, it will be saved as relative." That seems to suggest it's not a configurable option.



 
 
BrentHe





PostPosted: Visual C# IDE, Output Path - I want to use absolute paths, not relative paths. Top

Thanks for the reply Mark.

I think we've decided to map a virtual drive to the folder we want to use as the Output Path. When we do this, the absolute path is saved (and not converted to a relative path). MSDN suggests this, and I think it is a pretty good solution.

Brent