multiple hint paths in csproj file from an text file variable

前端 未结 2 1253
灰色年华
灰色年华 2021-01-14 22:00

Context : In our application there two separate dlls which are repositories of variables configured for different types of hardware .These dlls has same na

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-14 22:13

    "Can i declare a variable in a text file say type1 and import that text file in my csproj file and assign the appropriate reference to my application ?"

    Isn't that exactly what I describe in the blog post you link to?

    Look for the defined variable 'SomeProject' in the configuration file 'ProjectReferences.txt' which I load from the .csproj file.

    ProjectReferences.txt

    
      
        ..\SomeProject
      
    
    

    .csproj file

    
    
      
        
          
            {6CA7AB2C-2D8D-422A-9FD4-2992BE62720A}
            SomeProject
          
        
      
      
        
          
            ..\Libraries\SomeProject.dll
          
        
      
    
    

提交回复
热议问题