Changeset 16998 for branches/2924_DotNetCoreMigration/HeuristicLab
- Timestamp:
- 05/29/19 12:31:59 (6 years ago)
- Location:
- branches/2924_DotNetCoreMigration/HeuristicLab/3.3
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2924_DotNetCoreMigration/HeuristicLab/3.3/ApplicationCommand.cs
r16985 r16998 1 1 using System; 2 using System.Collections.Generic;3 2 using System.IO; 4 3 using HeuristicLab.CommandLineInterface; … … 12 11 } 13 12 14 [ HeuristicLab.CommandLineInterface.Application(13 [CommandLineInterface.Application( 15 14 "HL", "1.0.0.0", 16 15 SubCommands = new Type[] { … … 32 31 33 32 public void Execute() { 34 if (StartAsRunnerHost) {33 if (StartAsRunnerHost) { 35 34 StartupRunnerHost(); 36 35 } else { 37 36 SetupIsolation(); 38 37 } 39 40 38 } 41 39 … … 48 46 else 49 47 Console.Error.WriteLine("Cannot deserialize data from stdin to a type of RunnerConfig!"); 50 51 48 } 52 49 -
branches/2924_DotNetCoreMigration/HeuristicLab/3.3/Dockerfile
r16985 r16998 1 #Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed. 2 #For more information, please see https://aka.ms/containercompat 3 4 FROM mcr.microsoft.com/dotnet/core/runtime:3.0-nanoserver-1809 AS base 1 FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim AS base 5 2 WORKDIR /app 6 3 7 FROM mcr.microsoft.com/dotnet/core/sdk:3.0- nanoserver-1809AS build4 FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build 8 5 WORKDIR /src 9 COPY ["HeuristicLab/3.3/HeuristicLab-3.3.csproj", "HeuristicLab/3.3/"] 10 COPY ["HeuristicLab.CommandLineInterface/HeuristicLab.CommandLineInterface.csproj", "HeuristicLab.CommandLineInterface/"] 11 COPY ["HeuristicLab.Common/3.3/HeuristicLab.Common-3.3.csproj", "HeuristicLab.Common/3.3/"] 12 COPY ["HeuristicLab.PluginInfrastructure/3.3/HeuristicLab.PluginInfrastructure-3.3.csproj", "HeuristicLab.PluginInfrastructure/3.3/"] 13 COPY ["HeuristicLab.DefinitionLanguage/HeuristicLab.DefinitionLanguage.csproj", "HeuristicLab.DefinitionLanguage/"] 14 COPY ["HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj", "HeuristicLab.Core/3.3/"] 15 COPY ["HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj", "HeuristicLab.Persistence/3.3/"] 16 COPY ["HeuristicLab.Tracing/3.3/HeuristicLab.Tracing-3.3.csproj", "HeuristicLab.Tracing/3.3/"] 17 COPY ["HeuristicLab.Common.Resources/3.3/HeuristicLab.Common.Resources-3.3.csproj", "HeuristicLab.Common.Resources/3.3/"] 18 COPY ["HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj", "HeuristicLab.Collections/3.3/"] 19 COPY ["HeuristicLab.DynamicAssemblyTestApp/HeuristicLab.DynamicAssemblyTestApp.csproj", "HeuristicLab.DynamicAssemblyTestApp/"] 20 COPY ["HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj", "HeuristicLab.Optimization/3.3/"] 21 COPY ["HeuristicLab.Data/3.3/HeuristicLab.Data-3.3.csproj", "HeuristicLab.Data/3.3/"] 22 COPY ["HeuristicLab.Parameters/3.3/HeuristicLab.Parameters-3.3.csproj", "HeuristicLab.Parameters/3.3/"] 23 COPY ["HeuristicLab.Operators/3.3/HeuristicLab.Operators-3.3.csproj", "HeuristicLab.Operators/3.3/"] 6 COPY ["HeuristicLab/3.3/", "HeuristicLab/3.3/"] 7 COPY ["HeuristicLab.CommandLineInterface/", "HeuristicLab.CommandLineInterface/"] 8 COPY ["HeuristicLab.Common/3.3/", "HeuristicLab.Common/3.3/"] 9 COPY ["HeuristicLab.PluginInfrastructure/3.3/", "HeuristicLab.PluginInfrastructure/3.3/"] 10 COPY ["HeuristicLab.DynamicAssemblyTestApp/", "HeuristicLab.DynamicAssemblyTestApp/"] 11 COPY ["HeuristicLab.Core/3.3/", "HeuristicLab.Core/3.3/"] 12 COPY ["HeuristicLab.Persistence/3.3/", "HeuristicLab.Persistence/3.3/"] 13 COPY ["HeuristicLab.Tracing/3.3/", "HeuristicLab.Tracing/3.3/"] 14 COPY ["HeuristicLab.Common.Resources/3.3/", "HeuristicLab.Common.Resources/3.3/"] 15 COPY ["HeuristicLab.Collections/3.3/", "HeuristicLab.Collections/3.3/"] 16 COPY ["HeuristicLab.Optimization/3.3/", "HeuristicLab.Optimization/3.3/"] 17 COPY ["HeuristicLab.Data/3.3/", "HeuristicLab.Data/3.3/"] 18 COPY ["HeuristicLab.Parameters/3.3/", "HeuristicLab.Parameters/3.3/"] 19 COPY ["HeuristicLab.Operators/3.3/", "HeuristicLab.Operators/3.3/"] 24 20 RUN dotnet restore "HeuristicLab/3.3/HeuristicLab-3.3.csproj" 25 COPY . .26 21 WORKDIR "/src/HeuristicLab/3.3" 27 22 RUN dotnet build "HeuristicLab-3.3.csproj" -c Release -o /app -
branches/2924_DotNetCoreMigration/HeuristicLab/3.3/HeuristicLab-3.3.csproj
r16985 r16998 4 4 <OutputType>Exe</OutputType> 5 5 <TargetFramework>netcoreapp3.0</TargetFramework> 6 7 <DockerDefaultTargetOS>Windows</DockerDefaultTargetOS>6 <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> 7 <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> 8 8 <Copyright>(c) 2002-2018 HEAL</Copyright> 9 9 <Product>HeuristicLab</Product> … … 13 13 <AssemblyFileVersion>3.3.15.0</AssemblyFileVersion> 14 14 <RootNamespace>HeuristicLab</RootNamespace> 15 <ApplicationIcon>HeuristicLab.ico</ApplicationIcon> 16 <ApplicationManifest>app.manifest</ApplicationManifest> 15 17 </PropertyGroup> 16 18 … … 23 25 </ItemGroup> 24 26 25 26 27 <ItemGroup> 27 28 <ProjectReference Include="..\..\HeuristicLab.CommandLineInterface\HeuristicLab.CommandLineInterface.csproj" /> 28 29 <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj" /> 29 <ProjectReference Include="..\..\HeuristicLab.DefinitionLanguage\HeuristicLab.DefinitionLanguage.csproj" />30 30 <ProjectReference Include="..\..\HeuristicLab.DynamicAssemblyTestApp\HeuristicLab.DynamicAssemblyTestApp.csproj" /> 31 31 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" /> -
branches/2924_DotNetCoreMigration/HeuristicLab/3.3/InspectCommand.cs
r16985 r16998 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 1 using System.IO; 2 using System.Linq; 4 3 using HeuristicLab.CommandLineInterface; 5 using HeuristicLab.DynamicAssemblyTestApp;6 4 using HeuristicLab.PluginInfrastructure; 7 5 … … 21 19 QuietMode = false, 22 20 AssembliesToLoad = Settings.assemblyInfos, 23 StartApplication = new InspectApplication() { 24 InputFilePath = new UniPath(Input) 25 } 21 StartApplication = 22 ApplicationManager.Manager.GetInstances<IApplication>(new UniPath(Input)) 23 .Where(x => x.Name.Equals("CLIInspect")) 24 .First() 25 26 26 }); 27 27 } 28 29 28 } 30 29 } -
branches/2924_DotNetCoreMigration/HeuristicLab/3.3/OptimizeCommand.cs
r16985 r16998 1 using System. Collections.Generic;2 using System. IO;1 using System.IO; 2 using System.Linq; 3 3 using HeuristicLab.CommandLineInterface; 4 using HeuristicLab.DynamicAssemblyTestApp;5 4 using HeuristicLab.PluginInfrastructure; 6 5 … … 27 26 QuietMode = Quiet, 28 27 AssembliesToLoad = Settings.assemblyInfos, 29 StartApplication = new AppTest() { 30 InputFilePath = new UniPath(Input), 31 OutputPath = new UniPath(Output ?? Input.Replace(Path.GetFileName(Input), "")) 32 } 28 StartApplication = 29 ApplicationManager.Manager.GetInstances<IApplication>( 30 new UniPath(Input), 31 new UniPath(Output ?? Input.Replace(Path.GetFileName(Input), "")) 32 ).Where(x => x.Name.Equals("CLIOptimize")) 33 .First() 33 34 }); 34 35 }
Note: See TracChangeset
for help on using the changeset viewer.