New .csproj format - How to specify entire directory as “linked file” to a subdirectory?

后端 未结 2 1608
青春惊慌失措
青春惊慌失措 2020-12-10 02:35

With the new .csproj format (as well as the old), it is possible to add files as linked outside of the project folder:

 

        
2条回答
  •  余生分开走
    2020-12-10 02:42

    I got this working for me (linking all svg-files in an external dir to a solution-subfolder) with a hint from this site. Only the %(Parent.Filename) didn't work for me (got a CS1508), so I replaced with %(Filename)%(Extension).

    
        
        
            Resources\%(Filename)%(Extension)
        
    
    

提交回复
热议问题