tags:

views:

6

answers:

1

My VSIX extension has project templates with custom project file. This file contains a reference to my .targets file which is installed as a part of VSIX extension (so it's in my extension's folder). My problem is that I can't find any variable that indicates the vs extensions path, which is needed to find a targets for project file.

If there is still smth like that:

that would be great.

If there is not... is there any other way? Maybe I can run a script during vsix installation?

Thanks,

Kir.

A: 

No, custom MSBuild targets aren't supported in VSIX in VS 2010. There is no way to do a "custom action" during VSIX install time.

One possible solution (may not be good for your situation though) would be including the targets directly in the project file template.

If this isn't feasible, then unfortunately you won't be able to use VSIX to deploy your extension.

Aaron Marten