Lee Loftiss
Lee Loftiss

Reputation: 3205

Visual Studios Express - change debug output directory

Is there a way to get a VS project to build the debug EXE to a directory other than bin/debug?

I found this: http://msdn.microsoft.com/en-us/library/ms165410%28v=vs.80%29.aspx

However, that is only for the RELEASE not for debug.

UPDATE:

I failed to mention this is for the Express version, not the full version.

For anyone else who wants to do the same, here is how:

Upvotes: 4

Views: 6062

Answers (2)

jacob aloysious
jacob aloysious

Reputation: 2597

The Output path is stored in the .cproj file. One for each configuration.

Open ur *project_Name.csproj* in any editor (say notepad)

For Debug:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    .....
    <OutputPath>myOutput\</OutputPath>

</PropertyGroup>

Similarly For Release:

 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    ...
     <OutputPath>bin\Release\</OutputPath>
</PropertyGroup>

You could try manually editing the OutputPath.

The Output Path can take both Relative and Absolute paths.

Note: The Relative OutputPath should be relative to your project directory (project_Name.csproj) .

Upvotes: 0

Sachin
Sachin

Reputation: 40970

To change the build output directory:

On the Project menu, click Properties.
Click the Build tab.
Click the Browse button next to the Output path box and select a new build output directory.

MSDN :Change Build output directory

Change debug directory.

Upvotes: 4

Related Questions