How do I import the msbuildcommunitytasks project from another msbuild project with a relative file path?

后端 未结 6 2199
再見小時候
再見小時候 2020-12-16 02:46

Please go easy I am new to msbuild and msbuildtasks!

How can I set a property which represents a relative file path to a targets file which I want to import? I need

6条回答
  •  爱一瞬间的悲伤
    2020-12-16 03:07

    There was a similar question at Is it possible to use MSBuild Extension Pack without installation?. That question was how to do the same with the MSBuild Extension Pack, both of which are similar in this aspect. For the Extension Pack you have to declare the property ExtensionTasksPath,and for the Community tasks you have to declare a similar property named MSBuildCommunityTasksLib. So in your case it should look like:

    
      
        E:\Data\Development\My Code\Community\MSBuild\CommunityTasks\
      
    
      
    
      
        
      
    
    
    

提交回复
热议问题