--- lang: ja-jp breaks: true --- # `VSIX` 開かれているソリューションファイルのパスを取得 2022-01-26 ```csharp= using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio.Shell; var dte2 = Package.GetGlobalService(typeof(DTE)) as DTE2; if (dte2 != null) { Debug.WriteLine($"{dte2.Solution.FullName}"); } ``` ###### tags: `VSIX` `Package.GetGlobalService` `DTE`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up