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

后端 未结 6 2200
再見小時候
再見小時候 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:23

    I just wanted to add, since i cannot comment (rep), that to do a path to your particular project you can use $(SolutionDir) on your property group like so:

    $(SolutionDir)\My Code\Community\MSBuild\CommunityTasks\

    This way its not tied down to a specific drive and can be based off of the location of the project relative to your solutions directory structure.

    Also thanks for the answer above it helped me in my project with the addition above.

提交回复
热议问题