문제

I have a number of custom Item and Project Templates for Visual Studio 2010. I have build a VSIX Package that can be used to deploy these extensions to multiple developer's machines.

I am now creating a custom MSBuild Task that will be required for a new Item Template.

In my local project, I can get this to work by putting in a hard-coded path in the project file:

But this does not work when the VSIX package is deployed to the 'dev' Visual Studio instance. Visual Studio just reports that the CustomBuildTask.dll cannot be found.

Where does the VSIX deploy the DLL? Is there an MSBuild %(path) variable I can use to find the DLL on the other machines, or does each user have to manually copy the DLL and/or place a global ".tasks" file into their Visual Studio installation?

NOTE: There is no VSIX content type for MSBuild tasks the way there is for Item and Project Templates. I have tried "VS Package", "MEF Component" and "Custom Extension Type" - and none appear to work.

도움이 되었습니까?

해결책

I don't believe you can do this, since VSIX packages can't install files in arbitrary locations, and the msbuild task would need to go in an msbuild folder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top