C# / VS2008: Add separate debug / release references to a project

前端 未结 4 590
终归单人心
终归单人心 2020-12-23 09:40

When adding a user control or a project reference to a VS 2008 C# project, I can add only one configuration of the assembly. Is it possible to add separate configurations, d

4条回答
  •  没有蜡笔的小新
    2020-12-23 10:10

    While @Marc Gravell's suggestion will work, is there a reason that you don't want both projects in the same solution? If they are in the same solution, you can add a Project Reference when referencing the User Control project to the sample app's project. When a Project Reference is used, Visual Studio will automatically add the Debug version for a Debug build, and the Release version for the Release build.

提交回复
热议问题