Using Visual Studio project properties effectively for multiple projects and configurations

后端 未结 6 1260
清酒与你
清酒与你 2020-12-02 03:47

I have always used Visual Studios built in GUI support for configuring my projects, often using property sheets so that several projects will use a common set.

One o

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-02 04:44

    I made some improvements, may be useful for somebody

    
    
      
        
        $([System.Convert]::ToString( $([System.Text.RegularExpressions.Regex]::IsMatch($(Configuration), '[Dd]ebug'))))
    
        
        x86
        x64
    
        
        $(registry:HKEY_CURRENT_USER\Software\MyCompany\@BUILD_DIR)
      
    
      
        
          
          
            Debug
            -d
          
        
        
          
          
            Release
            
          
        
      
    
      
        
          
            $(BUILD_DIR)\Bin\$(MyOutDirBase)_$(ShortPlatform)\
            $(BUILD_DIR)\Build\$(Configuration)_$(ShortPlatform)_$(PlatformToolset)\$(ProjectGuid)\
          
        
        
          
            $(SolutionDir)\Bin\$(MyOutDirBase)_$(ShortPlatform)\
            $(SolutionDir)\Build\$(Configuration)_$(ShortPlatform)_$(PlatformToolset)\$(ProjectGuid)\
          
        
      
    
      
        $(MyOutDir)
        $(MyIntDir)
     
      
    
    

    have fun!

提交回复
热议问题