visual studio 2017 - MSBuild.Community.Tasks issue with vs2017 -
folks i've set of services first created in 2012, - down years - have seamlessly built vs2010, vs2013 & vs2015.
when try build vs2017
the msbuild.community.tasks.attrib task not loaded assembly assembly lives under c:\program files (x86)\microsoft visual studio\2017\professional\msbuild\msbuildcommunitytasks
folder, there no msbuildcommunitytasks
folder under \2017\professional\msbuild
folder.
here's full error
c:\working\mysolution\build\build.proj" (default target) (1) -> (setassemblyversion target) -> c:\working\mysolution\build\build.proj(100,5): error msb4062: "msbuild.community.tasks.attrib" task not loaded assembly c:\program files (x86)\microsoft visual studio\2017\professional\msbuild\msbuildcommunitytasks\msbuild.community.tasks.dll. not load file or assembly 'file:///c:\program files (x86)\microsoft visual studio\2017\professional\msbuild\msbuildcommunitytasks\msbuild.community.tasks.dll' or 1 of dependencies. system cannot find file specified. confirm <usingtask> declaration correct, assembly , dependencies available, , task contains public class implements microsoft.build.framework.itask.
what changed between vs2015 , vs2017?
need fix this?
explicitly setting msbuildcommunitytaskspath
property gets past problem.
i @ top of build.proj file.
(for historic reasons keep community build tasks in our repo, why it's set location under trunk)
<msbuildcommunitytaskspath>$(trunk)\ref\build\msbuildcommunitytasks</msbuildcommunitytaskspath>
Comments
Post a Comment