using AssemblySearchPaths in csproj files

后端 未结 2 840
清歌不尽
清歌不尽 2021-02-08 10:28

I am trying to set up my csproj files to search for dependencies in a parent directory by adding:


    
       ..         


        
2条回答
  •  名媛妹妹
    2021-02-08 11:07

    Seems like there was a fix recently Thus this works as well:

    
      MY_PATH;$(ReferencePath)
    
    

    This makes the assemblies in that folder to also show up in the "Add References..." window :)


    And since you also might not want the assemblies to be copied into the output-folder, here an example on how to achieve this:

    
    
      
    
      
        
        C:\Program Files\Unity\Hub\Editor\$(UNITY_VERSION)\Editor\Data\Managed\UnityEngine;$(ReferencePath)
      
    
      
        
        
          
          
          
          
        
      
    
      
    
    

提交回复
热议问题