VS2008 - Outputting a different file name for Debug/Release configurations

后端 未结 3 1066
迷失自我
迷失自我 2020-12-15 17:25

When building a C# application with Visual Studio 2008, is it possible to set a different output filename per configuration?

e.g.

MyApp_Debug.exe
MyApp_Rele         


        
3条回答
  •  春和景丽
    2020-12-15 18:10

    As adrianbanks mentioned, you can edit your .csproj file by hand to accomplish this.

    I would, however reccomend the simpler form of:

    MyApp_$(Configuration).exe
    

    If you ever edit the properties of this project however, this change will very likely be lost. It's something you will have to manually stay on top of, as it's not going to be a supported setup.

    To manually edit your project definition, right click the project in Visual Studio, and select "Unload", then right click the unloaded project, and select "Edit" and it will open the XML definition for you.

提交回复
热议问题