How to use different files in a project for different build configurations - Visual Studio C# .net

后端 未结 4 1695
無奈伤痛
無奈伤痛 2020-12-29 13:24

I have a c# .net winforms solution and I want to create two different builds: one that supports IE6 and one that supports IE7. A few of the files in one of my projects are d

4条回答
  •  北海茫月
    2020-12-29 13:39

    Assuming you are using VS2005 or above you can use the Condition property in the project file.

    You'll need to edit the csproj file directly

    1. Unload project
    2. Edit

    then on the files you want to conditionally include

    
    
    
    

提交回复
热议问题