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.CMAEvolutionStrategy/3.4/HeuristicLab.Algorithms.CMAEvolutionStrategy-3.4.csproj

    r12817 r16143  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     2<Project Sdk="Microsoft.NET.Sdk">
    33  <PropertyGroup>
    4     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    5     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    6     <ProductVersion>9.0.30729</ProductVersion>
    7     <SchemaVersion>2.0</SchemaVersion>
    8     <ProjectGuid>{291010E4-2F4E-4D29-A795-753CFF293FDB}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Algorithms.CMAEvolutionStrategy</RootNamespace>
    12     <AssemblyName>HeuristicLab.Algorithms.CMAEvolutionStrategy-3.4</AssemblyName>
    13     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    14     <TargetFrameworkProfile>
    15     </TargetFrameworkProfile>
    16     <FileAlignment>512</FileAlignment>
     4    <TargetFramework>netstandard2.0</TargetFramework>
     5    <Copyright>(c) 2002-2018 HEAL</Copyright>
     6    <Product>HeuristicLab</Product>
    177    <SignAssembly>true</SignAssembly>
    188    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    19     <FileUpgradeFlags>
    20     </FileUpgradeFlags>
    21     <OldToolsVersion>3.5</OldToolsVersion>
    22     <UpgradeBackupLocation />
    23     <PublishUrl>publish\</PublishUrl>
    24     <Install>true</Install>
    25     <InstallFrom>Disk</InstallFrom>
    26     <UpdateEnabled>false</UpdateEnabled>
    27     <UpdateMode>Foreground</UpdateMode>
    28     <UpdateInterval>7</UpdateInterval>
    29     <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    30     <UpdatePeriodically>false</UpdatePeriodically>
    31     <UpdateRequired>false</UpdateRequired>
    32     <MapFileExtensions>true</MapFileExtensions>
    33     <ApplicationRevision>0</ApplicationRevision>
    34     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    35     <IsWebBootstrapper>false</IsWebBootstrapper>
    36     <UseApplicationTrust>false</UseApplicationTrust>
    37     <BootstrapperEnabled>true</BootstrapperEnabled>
    38   </PropertyGroup>
    39   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    40     <DebugSymbols>true</DebugSymbols>
    41     <DebugType>full</DebugType>
    42     <Optimize>false</Optimize>
    43     <OutputPath>..\..\bin\</OutputPath>
    44     <DefineConstants>DEBUG;TRACE</DefineConstants>
    45     <ErrorReport>prompt</ErrorReport>
    46     <WarningLevel>4</WarningLevel>
    47     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    48     <Prefer32Bit>false</Prefer32Bit>
    49   </PropertyGroup>
    50   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    51     <DebugType>pdbonly</DebugType>
    52     <Optimize>true</Optimize>
    53     <OutputPath>..\..\bin\</OutputPath>
    54     <DefineConstants>TRACE</DefineConstants>
    55     <ErrorReport>prompt</ErrorReport>
    56     <WarningLevel>4</WarningLevel>
    57     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    58     <Prefer32Bit>false</Prefer32Bit>
    59   </PropertyGroup>
    60   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    61     <DebugSymbols>true</DebugSymbols>
    62     <OutputPath>..\..\bin\</OutputPath>
    63     <DefineConstants>DEBUG;TRACE</DefineConstants>
    64     <DebugType>full</DebugType>
    65     <PlatformTarget>x86</PlatformTarget>
    66     <ErrorReport>prompt</ErrorReport>
    67     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    68     <Prefer32Bit>false</Prefer32Bit>
    69   </PropertyGroup>
    70   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    71     <OutputPath>..\..\bin\</OutputPath>
    72     <DefineConstants>TRACE</DefineConstants>
    73     <Optimize>true</Optimize>
    74     <DebugType>pdbonly</DebugType>
    75     <PlatformTarget>x86</PlatformTarget>
    76     <ErrorReport>prompt</ErrorReport>
    77     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    78     <Prefer32Bit>false</Prefer32Bit>
    79   </PropertyGroup>
    80   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    81     <DebugSymbols>true</DebugSymbols>
    82     <OutputPath>..\..\bin\</OutputPath>
    83     <DefineConstants>DEBUG;TRACE</DefineConstants>
    84     <DebugType>full</DebugType>
    85     <PlatformTarget>x64</PlatformTarget>
    86     <ErrorReport>prompt</ErrorReport>
    87     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    88     <Prefer32Bit>false</Prefer32Bit>
    89   </PropertyGroup>
    90   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    91     <OutputPath>..\..\bin\</OutputPath>
    92     <DefineConstants>TRACE</DefineConstants>
    93     <Optimize>true</Optimize>
    94     <DebugType>pdbonly</DebugType>
    95     <PlatformTarget>x64</PlatformTarget>
    96     <ErrorReport>prompt</ErrorReport>
    97     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    98     <Prefer32Bit>false</Prefer32Bit>
     9    <AssemblyVersion>3.4.0.0</AssemblyVersion>
     10    <AssemblyFileVersion>3.4.25.0</AssemblyFileVersion>
     11    <RootNamespace>HeuristicLab.Algorithms.CMAEvolutionStrategy</RootNamespace>
    9912  </PropertyGroup>
    10013  <ItemGroup>
    101     <Reference Include="ALGLIB-3.7.0, Version=3.7.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
     16  </ItemGroup>
     17  <ItemGroup>
     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.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj" />
     27    <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     28    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     29    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     30    <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj" />
     31    <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj" />
     32  </ItemGroup>
     33  <ItemGroup>
     34    <Reference Include="ALGLIB-3.7.0, Version=3.7.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    10235      <SpecificVersion>False</SpecificVersion>
    10336      <HintPath>..\..\bin\ALGLIB-3.7.0.dll</HintPath>
    10437      <Private>False</Private>
    10538    </Reference>
    106     <Reference Include="System" />
    107     <Reference Include="System.Core">
    108       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    109     </Reference>
    110     <Reference Include="System.Drawing" />
    111     <Reference Include="System.Xml.Linq">
    112       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    113     </Reference>
    114     <Reference Include="System.Data.DataSetExtensions">
    115       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    116     </Reference>
    117     <Reference Include="System.Data" />
    118     <Reference Include="System.Xml" />
    11939  </ItemGroup>
    120   <ItemGroup>
    121     <Compile Include="CMAAnalyzer.cs" />
    122     <Compile Include="CMAOperators\CMAInitializer.cs" />
    123     <Compile Include="CMAOperators\CMALogweightedRecombinator.cs" />
    124     <Compile Include="CMAOperators\CMAMutator.cs" />
    125     <Compile Include="CMAOperators\CMALinearweightedRecombinator.cs" />
    126     <Compile Include="CMAOperators\CMAEqualweightedRecombinator.cs" />
    127     <Compile Include="CMAParameters.cs" />
    128     <Compile Include="CMAOperators\CMARecombinator.cs" />
    129     <Compile Include="CMAOperators\CMAUpdater.cs" />
    130     <Compile Include="Interfaces\ICMAInitializer.cs" />
    131     <Compile Include="Interfaces\ICMAManipulator.cs" />
    132     <Compile Include="Interfaces\ICMARecombinator.cs" />
    133     <Compile Include="Interfaces\ICMAUpdater.cs" />
    134     <Compile Include="Plugin.cs" />
    135     <Compile Include="Properties\AssemblyInfo.cs" />
    136     <Compile Include="CMAEvolutionStrategy.cs" />
    137     <Compile Include="Terminator.cs" />
    138   </ItemGroup>
    139   <ItemGroup>
    140     <None Include="HeuristicLab.snk" />
    141     <None Include="Plugin.cs.frame" />
    142     <None Include="Properties\AssemblyInfo.cs.frame" />
    143   </ItemGroup>
    144   <ItemGroup>
    145     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    146       <Visible>False</Visible>
    147       <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    148       <Install>false</Install>
    149     </BootstrapperPackage>
    150     <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    151       <Visible>False</Visible>
    152       <ProductName>.NET Framework 3.5 SP1</ProductName>
    153       <Install>true</Install>
    154     </BootstrapperPackage>
    155     <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    156       <Visible>False</Visible>
    157       <ProductName>Windows Installer 3.1</ProductName>
    158       <Install>true</Install>
    159     </BootstrapperPackage>
    160   </ItemGroup>
    161   <ItemGroup>
    162     <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">
    163       <Project>{887425b4-4348-49ed-a457-b7d2c26ddbf9}</Project>
    164       <Name>HeuristicLab.Analysis-3.3</Name>
    165       <Private>False</Private>
    166     </ProjectReference>
    167     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    168       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    169       <Name>HeuristicLab.Collections-3.3</Name>
    170       <Private>False</Private>
    171     </ProjectReference>
    172     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    173       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    174       <Name>HeuristicLab.Common-3.3</Name>
    175       <Private>False</Private>
    176     </ProjectReference>
    177     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    178       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    179       <Name>HeuristicLab.Core-3.3</Name>
    180       <Private>False</Private>
    181     </ProjectReference>
    182     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    183       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    184       <Name>HeuristicLab.Data-3.3</Name>
    185       <Private>False</Private>
    186     </ProjectReference>
    187     <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj">
    188       <Project>{bb6d334a-4bb6-4674-9883-31a6ebb32cab}</Project>
    189       <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name>
    190       <Private>False</Private>
    191     </ProjectReference>
    192     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    193       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    194       <Name>HeuristicLab.Operators-3.3</Name>
    195       <Private>False</Private>
    196     </ProjectReference>
    197     <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
    198       <Project>{25087811-f74c-4128-bc86-8324271da13e}</Project>
    199       <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    200       <Private>False</Private>
    201     </ProjectReference>
    202     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    203       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    204       <Name>HeuristicLab.Optimization-3.3</Name>
    205       <Private>False</Private>
    206     </ProjectReference>
    207     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    208       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    209       <Name>HeuristicLab.Parameters-3.3</Name>
    210       <Private>False</Private>
    211     </ProjectReference>
    212     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    213       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    214       <Name>HeuristicLab.Persistence-3.3</Name>
    215       <Private>False</Private>
    216     </ProjectReference>
    217     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    218       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    219       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    220       <Private>False</Private>
    221     </ProjectReference>
    222     <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj">
    223       <Project>{f4539fb6-4708-40c9-be64-0a1390aea197}</Project>
    224       <Name>HeuristicLab.Random-3.3</Name>
    225       <Private>False</Private>
    226     </ProjectReference>
    227     <ProjectReference Include="..\..\HeuristicLab.Selection\3.3\HeuristicLab.Selection-3.3.csproj">
    228       <Project>{2c36cd4f-e5f5-43a4-801a-201ea895fe17}</Project>
    229       <Name>HeuristicLab.Selection-3.3</Name>
    230       <Private>False</Private>
    231     </ProjectReference>
    232   </ItemGroup>
    233   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    234   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    235        Other similar extension points exist, see Microsoft.Common.targets.
    236   <Target Name="BeforeBuild">
     40  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     41    <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" />
    23742  </Target>
    238   <Target Name="AfterBuild">
    239   </Target>
    240   -->
    241   <PropertyGroup>
    242     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    243 set ProjectDir=$(ProjectDir)
    244 set SolutionDir=$(SolutionDir)
    245 set Outdir=$(Outdir)
    246 
    247 call PreBuildEvent.cmd
    248 </PreBuildEvent>
    249     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    250 export ProjectDir=$(ProjectDir)
    251 export SolutionDir=$(SolutionDir)
    252 
    253 $SolutionDir/PreBuildEvent.sh
    254 </PreBuildEvent>
     43  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     44    <OutputPath>..\..\bin\</OutputPath>
     45    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    25546  </PropertyGroup>
    25647</Project>
Note: See TracChangeset for help on using the changeset viewer.