clariuslabs / TransformOnBuild

Transform Text Templates On Build
Apache License 2.0
48 stars 17 forks source link

Will there be problems with using EnvDTE.DTE inside tt? #63

Open silentnightwalk opened 5 years ago

silentnightwalk commented 5 years ago

Is it possible to do the same when tt contains

var visualStudio = (this.Host as IServiceProvider).GetService(typeof(EnvDTE.DTE)) as EnvDTE.DTE;

?

I'm afraid to get null reference exception. Your method looks like running TextTransform.exe by self. However, I also tried to run TextTransform.exe from batch file and got this exception.