Пример #1
0
 public MonoAotLLVMGenerator(string targetFrameworkMoniker, string cliPath, string packagesPath, string customRuntimePack, string aotCompilerPath, MonoAotCompilerMode aotCompilerMode)
     : base(targetFrameworkMoniker, cliPath, packagesPath, runtimeFrameworkVersion: null)
 {
     CustomRuntimePack = customRuntimePack;
     AotCompilerPath   = aotCompilerPath;
     AotCompilerMode   = aotCompilerMode;
 }
Пример #2
0
        /// <summary>
        /// creates new instance of MonoAotLLVMRuntime
        /// </summary>
        public MonoAotLLVMRuntime(FileInfo aotCompilerPath, MonoAotCompilerMode aotCompilerMode, string msBuildMoniker = "net6.0", string displayName = "MonoAOTLLVM") : base(RuntimeMoniker.MonoAOTLLVM, msBuildMoniker, displayName)
        {
            if (aotCompilerPath == null)
            {
                throw new ArgumentNullException(paramName: nameof(aotCompilerPath));
            }
            if (aotCompilerPath.IsNotNullButDoesNotExist())
            {
                throw new FileNotFoundException($"Provided {nameof(aotCompilerPath)} file: \"{aotCompilerPath.FullName}\" doest NOT exist");
            }

            AOTCompilerPath = aotCompilerPath;
            AOTCompilerMode = aotCompilerMode;
        }
Пример #3
0
        public NetCoreAppSettings(
            string targetFrameworkMoniker,
            string runtimeFrameworkVersion,
            string name,
            string customDotNetCliPath          = null,
            string packagesPath                 = null,
            string customRuntimePack            = null,
            string aotCompilerPath              = null,
            MonoAotCompilerMode aotCompilerMode = MonoAotCompilerMode.mini
            )
        {
            TargetFrameworkMoniker  = targetFrameworkMoniker;
            RuntimeFrameworkVersion = runtimeFrameworkVersion;
            Name = name;

            CustomDotNetCliPath = customDotNetCliPath;
            PackagesPath        = packagesPath;
            CustomRuntimePack   = customRuntimePack;
            AOTCompilerPath     = aotCompilerPath;
            AOTCompilerMode     = aotCompilerMode;
        }