Visual Studios Express - change debug output directory

后端 未结 2 898
情歌与酒
情歌与酒 2021-01-19 06:04

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.

相关标签:
2条回答
  • 2021-01-19 06:54

    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.

    0 讨论(0)
  • 2021-01-19 07:03

    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) .

    0 讨论(0)
提交回复
热议问题