/// <inheritdoc /> public async override Task Extract() { var packageUnzipPath = await NuGetPackageHelper.InstallPackages(_packageNames, Platform).ConfigureAwait(false); Log.Debug($"Package unzip path is {packageUnzipPath}"); var xamarinForms = Directory.GetFiles( packageUnzipPath, "Xamarin.Essentials.dll", SearchOption.AllDirectories); var latestVersion = xamarinForms.First(x => x.Contains("netstandard1.0", StringComparison.InvariantCulture)); Assemblies.Add(latestVersion); if (PlatformHelper.IsRunningOnMono()) { CecilSearchDirectories.Add( @"/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111"); } else { CecilSearchDirectories.Add(@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile111"); } }
/// <inheritdoc /> public async override Task Extract() { var packageUnzipPath = await NuGetPackageHelper.InstallPackages(_packageNames, Platform).ConfigureAwait(false); Log.Debug($"Package unzip path is {packageUnzipPath}"); var xamarinForms = Directory.GetFiles( packageUnzipPath, "Xamarin.Forms.Core.dll", SearchOption.AllDirectories); var latestVersion = xamarinForms.Last(); Assemblies.Add(latestVersion); if (PlatformHelper.IsRunningOnMono()) { CecilSearchDirectories.Add( @"/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111"); CecilSearchDirectories.Add(@"/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades"); } else { CecilSearchDirectories.Add(@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\Facades"); } }
/// <inheritdoc /> public override async Task Extract() { var packageUnzipPath = await NuGetPackageHelper.InstallPackages(_packageNames, Platform, FrameworkConstants.CommonFrameworks.Tizen4).ConfigureAwait(false); Log.Debug($"Package unzip path is {packageUnzipPath}"); Assemblies.AddRange(Directory.GetFiles(packageUnzipPath, "ElmSharp*.dll", SearchOption.AllDirectories)); Assemblies.AddRange(Directory.GetFiles(packageUnzipPath, "Tizen*.dll", SearchOption.AllDirectories)); foreach (var directory in Directory.GetDirectories(packageUnzipPath, "*.*", SearchOption.AllDirectories)) { CecilSearchDirectories.Add(directory); } }
/// <inheritdoc /> public override async Task Extract() { var packageUnzipPath = await NuGetPackageHelper.InstallPackages(_packageNames, Platform).ConfigureAwait(false); Log.Debug($"Package unzip path is {packageUnzipPath}"); var xamarinForms = Directory.GetFiles( packageUnzipPath, "Xamarin.Essentials.dll", SearchOption.AllDirectories); var latestVersion = xamarinForms.First(x => x.Contains("netstandard2.0", StringComparison.InvariantCulture)); Assemblies.Add(latestVersion); foreach (var directory in Directory.GetDirectories(packageUnzipPath, "*.*", SearchOption.AllDirectories)) { CecilSearchDirectories.Add(directory); } }