C# 클래스 VSEmbed.VsLoader

Sets up assembly redirection to load Visual Studio assemblies.
This class must be initialized before anything else is JITted.
파일 보기 프로젝트 열기: SLaks/VSEmbed 1 사용 예제들

공개 메소드들

메소드 설명
FindAllVersions ( ) : IEnumerable

Finds all installed Visual Studio versions.

Load ( System.Version vsVersion ) : void

Initializes the assembly loader with the specified version of Visual Studio.

LoadLatest ( ) : void

Initializes the assembly loader with the latest installed version of Visual Studio.

비공개 메소드들

메소드 설명
CurrentDomain_AssemblyResolve_Roslyn ( object sender, ResolveEventArgs args ) : Assembly
CurrentDomain_AssemblyResolve_VS ( object sender, ResolveEventArgs args ) : Assembly
GetInstallationDirectory ( System.Version version ) : string

Gets the installation directory for the specified version.

GetSkuVersions ( string sku ) : IEnumerable
LoadResourceDll ( AssemblyName name, string baseDirectory, CultureInfo culture ) : Assembly
TryLoadInteropAssembly ( string installDirectory ) : bool

The interop assembly isn't included in the GAC and it doesn't offer any MEF components (it's just a simple COM interop library). Hence it needs to be loaded a bit specially. Just find the assembly on disk and hook into the resolve event. Copied from @JaredPar's EditorUtils.

메소드 상세

FindAllVersions() 공개 정적인 메소드

Finds all installed Visual Studio versions.
public static FindAllVersions ( ) : IEnumerable
리턴 IEnumerable

Load() 공개 정적인 메소드

Initializes the assembly loader with the specified version of Visual Studio.
public static Load ( System.Version vsVersion ) : void
vsVersion System.Version
리턴 void

LoadLatest() 공개 정적인 메소드

Initializes the assembly loader with the latest installed version of Visual Studio.
public static LoadLatest ( ) : void
리턴 void