Visual Studio: Different DLLs for configurations

后端 未结 4 1354
迷失自我
迷失自我 2021-02-04 03:44

I\'d like to make a x86 and x64 version of my application because some of the libraries I\'m using have differences for x86 and x64 (e.g. SQLite). I made a new configuration fo

4条回答
  •  佛祖请我去吃肉
    2021-02-04 04:29

    It exists the build-in keyword Choose and When for csproj file.

    Example below:

    
      
        
            
                {b0cbxxxx-xxxx-xxxx-xxxx-7f3353aaxxxx}
                Saur.OfficeConverter
            
        
      
      
        
            
                ..\packages\OfficeConverter.1.0.1\lib\net45\OfficeConverter.dll
            
        
      
    
    

    Bref explication: when choosing "DebugConversion" in Visual Studio, the project will load a project name OfficeConverter in the solution, otherwise (such as "Debug" / "Release" by default) a Nuget Dll would be restored and loaded.

提交回复
热议问题