Debug-only classes and resources in visual studio - is it possible?

后端 未结 4 1857
猫巷女王i
猫巷女王i 2021-01-03 02:56

Is it possible to add a class to a project in Visual Studio and have that class only built for the Debug configuration of the project? That is, it will not appear in the Rel

4条回答
  •  失恋的感觉
    2021-01-03 03:53

    As for the resources, you indeed need to modify *.csproj by hand, changing

    
      AdmittanceChart.cs
      Designer
    
    

    to

    
      AdmittanceChart.cs
      Designer
    
    

    but, as Jon suggested it's not necessarily good practice.

提交回复
热议问题