Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I'm using Visual Studio 2019 community and created a VSIX extension project.
In the project, I have some *.tt in a custom folder, the property "Build Action" was set to "Content" and "include in VSIX" was set to "True".

When launch debug, the folder will be copied to output directory and the extension and generate file by T4 template process are working fine. But after I install the VSIX to official environment, I will get a error message that mean can't found *.tt in the run-time.

What I have tried:

I have checked the working folder in the run-time is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE", BUT the extension is not installed here, and correct path will be at "Users\...\AppData\Local\Microsoft\VisualStudio\...\Extensions\[code with some format]\...". (the code looks like "ue0v5lz3.ht1")

My question is how to get correct installed path in the run-time so I can read the *.tt for related process successfully? I'd like to ask suggestion and help for that. Thank you!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900