How to obtain my vsix extension's folder and use this value to insert in some project template's files? -
my vsix extension has project templates custom project file. file contains reference .targets
file installed part of vsix extension (so it's in extension's folder). problem can't find variable indicates vs extensions path, needed find target projects file.
if there still like:
<import project="$(vsextensionspath)\mycompany\myextension\mylang.targets" />
that great.
if not, there other way? maybe can run script during vsix installation?
<import project="$([system.io.directory]::getfiles($([system.io.path]::combine($([system.environment]::getfolderpath(specialfolder.localapplicationdata)), `microsoft\visualstudio\11.0\extensions`)), `your.targets`, system.io.searchoption.alldirectories))" />
Comments
Post a Comment