AdaskoTheBeAsT / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
62 stars 12 forks source link

EnvDTE.DTE not found anymore #2

Closed nfMalde closed 2 years ago

nfMalde commented 2 years ago

Hi! Ive tested your vs22 build and after the switch Im not able to use EnvDTE.DTE anymore...

#reference EnvDTE 
#reference Microsoft.VisualStudio.Shell.15.0
EnvDTE.DTE dte = (EnvDTE.DTE)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(EnvDTE.DTE));

Im using this to get the full soulution path.

Works fine in 1.2 for VS2019 (official). Anything changed regarding the API?

Best,

Malte

AdaskoTheBeAsT commented 2 years ago

hi I will take a look and get back to you

AdaskoTheBeAsT commented 2 years ago

I am not sure yet how much api in VS2022 changed. As a band aid I exposed full solution path in settings https://github.com/AdaskoTheBeAsT/Typewriter/releases/tag/v2.3.1

nfMalde commented 2 years ago

Thanks :-)