Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/14/18 17:07:25 (6 years ago)
Author:
dpiringe
Message:

#2522:

  • migrated a lot of projects to .NET Standard 2.0
  • added AppDomain.CurrentDomain.ApplyPolicy to Assembly.ReflectionOnlyLoad in PluginValidator to correctly load the System library
  • deleted Properties folder from .NET Standard projects, because AssemblyInformation is saved in .csproj files now
  • .NET Framework projects target now v4.7, because it is only possible to use .NET Standard libraries in v4.6 or higher
  • removed System.Data.Linq from defaultAssemblies and DiscoverNamespaces in ProgrammableOperator, it is not supported in .NET Standard
  • the Microsoft.Windows.Compatibility package is necessary for usage of PluginInfrastructure, we should probably switch to the System.Drawing.Common package when PluginInfrastructure is migrated to .NET Standard
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2522_RefactorPluginInfrastructure/HeuristicLab.Algorithms.ALPS/3.3/HeuristicLab.Algorithms.ALPS-3.3.csproj

    r15973 r16143  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    3   <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
     2<Project Sdk="Microsoft.NET.Sdk">
    43  <PropertyGroup>
    5     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    6     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    7     <ProjectGuid>{59F354CB-FE13-4253-AED2-AD86372BEC27}</ProjectGuid>
    8     <OutputType>Library</OutputType>
    9     <AppDesignerFolder>Properties</AppDesignerFolder>
     4    <TargetFramework>netstandard2.0</TargetFramework>
     5    <Copyright>(c) 2002-2018 HEAL</Copyright>
     6    <Product>HeuristicLab</Product>
     7    <SignAssembly>true</SignAssembly>
     8    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     9    <AssemblyVersion>3.3.0.0</AssemblyVersion>
     10    <AssemblyFileVersion>3.3.15.0</AssemblyFileVersion>
    1011    <RootNamespace>HeuristicLab.Algorithms.ALPS</RootNamespace>
    11     <AssemblyName>HeuristicLab.Algorithms.ALPS-3.3</AssemblyName>
    12     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    13     <FileAlignment>512</FileAlignment>
    14     <TargetFrameworkProfile />
    15   </PropertyGroup>
    16   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    17     <DebugSymbols>true</DebugSymbols>
    18     <DebugType>full</DebugType>
    19     <Optimize>false</Optimize>
    20     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    21     <DefineConstants>DEBUG;TRACE</DefineConstants>
    22     <ErrorReport>prompt</ErrorReport>
    23     <WarningLevel>4</WarningLevel>
    24     <Prefer32Bit>false</Prefer32Bit>
    25   </PropertyGroup>
    26   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    27     <DebugType>pdbonly</DebugType>
    28     <Optimize>true</Optimize>
    29     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    30     <DefineConstants>TRACE</DefineConstants>
    31     <ErrorReport>prompt</ErrorReport>
    32     <WarningLevel>4</WarningLevel>
    33     <Prefer32Bit>false</Prefer32Bit>
    34   </PropertyGroup>
    35   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    36     <DebugSymbols>true</DebugSymbols>
    37     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    38     <DefineConstants>DEBUG;TRACE</DefineConstants>
    39     <DebugType>full</DebugType>
    40     <PlatformTarget>x64</PlatformTarget>
    41     <ErrorReport>prompt</ErrorReport>
    42     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    43     <Prefer32Bit>false</Prefer32Bit>
    44   </PropertyGroup>
    45   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    46     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    47     <DefineConstants>TRACE</DefineConstants>
    48     <Optimize>true</Optimize>
    49     <DebugType>pdbonly</DebugType>
    50     <PlatformTarget>x64</PlatformTarget>
    51     <ErrorReport>prompt</ErrorReport>
    52     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    53     <Prefer32Bit>false</Prefer32Bit>
    54   </PropertyGroup>
    55   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    56     <DebugSymbols>true</DebugSymbols>
    57     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    58     <DefineConstants>DEBUG;TRACE</DefineConstants>
    59     <DebugType>full</DebugType>
    60     <PlatformTarget>x86</PlatformTarget>
    61     <ErrorReport>prompt</ErrorReport>
    62     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    63     <Prefer32Bit>false</Prefer32Bit>
    64   </PropertyGroup>
    65   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    66     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    67     <DefineConstants>TRACE</DefineConstants>
    68     <Optimize>true</Optimize>
    69     <DebugType>pdbonly</DebugType>
    70     <PlatformTarget>x86</PlatformTarget>
    71     <ErrorReport>prompt</ErrorReport>
    72     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    73     <Prefer32Bit>false</Prefer32Bit>
    74   </PropertyGroup>
    75   <PropertyGroup>
    76     <SignAssembly>true</SignAssembly>
    77   </PropertyGroup>
    78   <PropertyGroup>
    79     <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    8012  </PropertyGroup>
    8113  <ItemGroup>
    82     <Reference Include="System" />
    83     <Reference Include="System.Core" />
    84     <Reference Include="System.Drawing" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    8516  </ItemGroup>
    8617  <ItemGroup>
    87     <Compile Include="AlpsOffspringSelectionGeneticAlgorithmMainLoop.cs" />
    88     <Compile Include="AlpsOffspringSelectionGeneticAlgorithm.cs" />
    89     <Compile Include="AlpsGeneticAlgorithmMainOperator.cs" />
    90     <Compile Include="AlpsOffspringSelectionGeneticAlgorithmMainOperator.cs" />
    91     <Compile Include="AlpsOffspringSelector.cs" />
    92     <Compile Include="ReseedingController.cs" />
    93     <Compile Include="ResultsHistoryWiper.cs" />
    94     <Compile Include="WeightingReducer.cs" />
    95     <Compile Include="Analyzers\OldestAverageYoungestAgeAnalyzer.cs" />
    96     <Compile Include="Analyzers\AgeDistributionAnalyzer.cs" />
    97     <Compile Include="AgingScheme.cs" />
    98     <Compile Include="AlpsGeneticAlgorithm.cs" />
    99     <Compile Include="AlpsGeneticAlgorithmMainLoop.cs" />
    100     <Compile Include="Analyzers\OldestAverageYoungestAgeCalculator.cs" />
    101     <Compile Include="EldersSelector.cs" />
    102     <Compile Include="LastLayerCloner.cs" />
    103     <Compile Include="MatingPoolCreator.cs" />
    104     <Compile Include="Plugin.cs" />
    105     <Compile Include="Properties\AssemblyInfo.cs" />
     18    <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj" />
     19    <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj" />
     20    <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj" />
     21    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj" />
     22    <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj" />
     23    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     27    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     28    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     29    <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj" />
     30    <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj" />
    10631  </ItemGroup>
    107   <ItemGroup>
    108     <None Include="HeuristicLab.snk" />
    109     <None Include="Plugin.cs.frame" />
    110     <None Include="Properties\AssemblyInfo.cs.frame" />
    111   </ItemGroup>
    112   <ItemGroup>
    113     <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">
    114       <Project>{887425b4-4348-49ed-a457-b7d2c26ddbf9}</Project>
    115       <Name>HeuristicLab.Analysis-3.3</Name>
    116       <Private>False</Private>
    117     </ProjectReference>
    118     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    119       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    120       <Name>HeuristicLab.Collections-3.3</Name>
    121       <Private>False</Private>
    122     </ProjectReference>
    123     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    124       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    125       <Name>HeuristicLab.Common-3.3</Name>
    126       <Private>False</Private>
    127     </ProjectReference>
    128     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    129       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    130       <Name>HeuristicLab.Core-3.3</Name>
    131       <Private>False</Private>
    132     </ProjectReference>
    133     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    134       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    135       <Name>HeuristicLab.Data-3.3</Name>
    136       <Private>False</Private>
    137     </ProjectReference>
    138     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    139       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    140       <Name>HeuristicLab.Operators-3.3</Name>
    141       <Private>False</Private>
    142     </ProjectReference>
    143     <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
    144       <Project>{25087811-f74c-4128-bc86-8324271da13e}</Project>
    145       <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    146       <Private>False</Private>
    147     </ProjectReference>
    148     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    149       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    150       <Name>HeuristicLab.Optimization-3.3</Name>
    151       <Private>False</Private>
    152     </ProjectReference>
    153     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    154       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    155       <Name>HeuristicLab.Parameters-3.3</Name>
    156       <Private>False</Private>
    157     </ProjectReference>
    158     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    159       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    160       <Name>HeuristicLab.Persistence-3.3</Name>
    161       <Private>False</Private>
    162     </ProjectReference>
    163     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    164       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    165       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    166       <Private>False</Private>
    167     </ProjectReference>
    168     <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj">
    169       <Project>{f4539fb6-4708-40c9-be64-0a1390aea197}</Project>
    170       <Name>HeuristicLab.Random-3.3</Name>
    171       <Private>False</Private>
    172     </ProjectReference>
    173     <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj">
    174       <Project>{2c36cd4f-e5f5-43a4-801a-201ea895fe17}</Project>
    175       <Name>HeuristicLab.Selection-3.3</Name>
    176       <Private>False</Private>
    177     </ProjectReference>
    178   </ItemGroup>
    179   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    180   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    181        Other similar extension points exist, see Microsoft.Common.targets.
    182   <Target Name="BeforeBuild">
     32  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     33    <Exec Command="set Path=%Path%;$(ProjectDir);$(SolutionDir)&#xD;&#xA;set ProjectDir=$(ProjectDir)&#xD;&#xA;set SolutionDir=$(SolutionDir)&#xD;&#xA;set Outdir=$(Outdir)&#xD;&#xA;call PreBuildEvent.cmd" />
    18334  </Target>
    184   <Target Name="AfterBuild">
    185   </Target>
    186   -->
    187   <PropertyGroup>
    188     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    189 set ProjectDir=$(ProjectDir)
    190 set SolutionDir=$(SolutionDir)
    191 set Outdir=$(Outdir)
    192 
    193 call PreBuildEvent.cmd
    194 </PreBuildEvent>
    195     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    196 export ProjectDir=$(ProjectDir)
    197 export SolutionDir=$(SolutionDir)
    198 
    199 $SolutionDir/PreBuildEvent.sh
    200 </PreBuildEvent>
     35  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     36    <OutputPath>..\..\bin\</OutputPath>
     37    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    20138  </PropertyGroup>
    20239</Project>
Note: See TracChangeset for help on using the changeset viewer.