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!