Visual Studio Project: How to include a reference for one configuration only?

后端 未结 4 656
予麋鹿
予麋鹿 2020-12-05 14:20

Env.: VS2008 C# project

I need to build my app for use in 2 different environments. In one of those environments, I need to use a 3rd party DLL assembly.

I c

4条回答
  •  遥遥无期
    2020-12-05 14:36

    Unload the project and open it as .XML

    Locate the reference item tag and add a Condition attribute.

    For instance:

    
      
        3.5
      
      
      
      
    
      
    
    
    

    Notice the last reference now has a condition.

提交回复
热议问题