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.Problems.TestFunctions.MultiObjective/3.3/HeuristicLab.Problems.TestFunctions.MultiObjective-3.3.csproj

    r15221 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>{D53E8E48-CFAA-4F57-AC35-63BEF4476159}</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.Problems.TestFunctions.MultiObjective</RootNamespace>
    11     <AssemblyName>HeuristicLab.Problems.TestFunctions.MultiObjective-3.3</AssemblyName>
    12     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    13     <FileAlignment>512</FileAlignment>
    14   </PropertyGroup>
    15   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    16     <DebugSymbols>true</DebugSymbols>
    17     <DebugType>full</DebugType>
    18     <Optimize>false</Optimize>
    19     <OutputPath>..\..\bin\</OutputPath>
    20     <DefineConstants>DEBUG;TRACE</DefineConstants>
    21     <ErrorReport>prompt</ErrorReport>
    22     <WarningLevel>4</WarningLevel>
    23     <RunCodeAnalysis>true</RunCodeAnalysis>
    24   </PropertyGroup>
    25   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    26     <DebugType>pdbonly</DebugType>
    27     <Optimize>true</Optimize>
    28     <OutputPath>..\..\bin\</OutputPath>
    29     <DefineConstants>TRACE</DefineConstants>
    30     <ErrorReport>prompt</ErrorReport>
    31     <WarningLevel>4</WarningLevel>
    32   </PropertyGroup>
    33   <PropertyGroup>
    34     <SignAssembly>true</SignAssembly>
    35   </PropertyGroup>
    36   <PropertyGroup>
    37     <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    38   </PropertyGroup>
    39   <PropertyGroup>
    40     <StartupObject />
    41   </PropertyGroup>
    42   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    43     <DebugSymbols>true</DebugSymbols>
    44     <OutputPath>..\..\bin\</OutputPath>
    45     <DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
    46     <DebugType>full</DebugType>
    47     <PlatformTarget>x64</PlatformTarget>
    48     <RunCodeAnalysis>true</RunCodeAnalysis>
    49     <ErrorReport>prompt</ErrorReport>
    50     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    51   </PropertyGroup>
    52   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    53     <OutputPath>..\..\bin\</OutputPath>
    54     <DefineConstants>TRACE</DefineConstants>
    55     <Optimize>true</Optimize>
    56     <DebugType>pdbonly</DebugType>
    57     <PlatformTarget>x64</PlatformTarget>
    58     <ErrorReport>prompt</ErrorReport>
    59     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    60   </PropertyGroup>
    61   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    62     <DebugSymbols>true</DebugSymbols>
    63     <OutputPath>..\..\bin\</OutputPath>
    64     <DefineConstants>CODE_ANALYSIS;DEBUG;TRACE</DefineConstants>
    65     <DebugType>full</DebugType>
    66     <PlatformTarget>x86</PlatformTarget>
    67     <RunCodeAnalysis>true</RunCodeAnalysis>
    68     <ErrorReport>prompt</ErrorReport>
    69     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    70   </PropertyGroup>
    71   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    72     <OutputPath>..\..\bin\</OutputPath>
    73     <DefineConstants>TRACE</DefineConstants>
    74     <Optimize>true</Optimize>
    75     <DebugType>pdbonly</DebugType>
    76     <PlatformTarget>x86</PlatformTarget>
    77     <ErrorReport>prompt</ErrorReport>
    78     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    7912  </PropertyGroup>
    8013  <ItemGroup>
    81     <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.Collections\3.3\HeuristicLab.Collections-3.3.csproj" />
     19    <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-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\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.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj" />
     30  </ItemGroup>
     31  <ItemGroup>
     32    <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">
    8233      <SpecificVersion>False</SpecificVersion>
    8334      <HintPath>..\..\bin\ALGLIB-3.7.0.dll</HintPath>
    8435      <Private>False</Private>
    8536    </Reference>
    86     <Reference Include="System" />
    87     <Reference Include="System.Core" />
    88     <Reference Include="System.Drawing" />
    89     <Reference Include="System.Windows.Forms" />
    90     <Reference Include="System.Windows.Forms.DataVisualization" />
    91     <Reference Include="System.Xml.Linq" />
    92     <Reference Include="System.Data.DataSetExtensions" />
    93     <Reference Include="Microsoft.CSharp" />
    94     <Reference Include="System.Data" />
    95     <Reference Include="System.Xml" />
     37    <Reference Include="Microsoft.CSharp" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
    9638  </ItemGroup>
    97   <ItemGroup>
    98     <Compile Include="Analyzers\ScatterPlotAnalyzer.cs" />
    99     <Compile Include="Analyzers\CrowdingAnalyzer.cs" />
    100     <Compile Include="Analyzers\InvertedGenerationalDistanceAnalyzer.cs" />
    101     <Compile Include="Analyzers\HypervolumeAnalyzer.cs" />
    102     <Compile Include="Analyzers\MOTFAnalyzer.cs" />
    103     <Compile Include="Analyzers\GenerationalDistanceAnalyzer.cs" />
    104     <Compile Include="Analyzers\SpacingAnalyzer.cs" />
    105     <Compile Include="Instances\IHRInstanceProvider.cs" />
    106     <Compile Include="Interfaces\IConstrainedTestFunction.cs" />
    107     <Compile Include="Interfaces\IMultiObjectiveTestFunctionAnalyzer.cs" />
    108     <Compile Include="Calculators\Crowding.cs" />
    109     <Compile Include="Calculators\Spacing.cs" />
    110     <Compile Include="Calculators\HyperVolume.cs" />
    111     <Compile Include="Calculators\InvertedGenerationalDistance.cs" />
    112     <Compile Include="Calculators\GenerationalDistance.cs" />
    113     <Compile Include="ParetoFrontScatterPlot.cs" />
    114     <Compile Include="Utilities.cs" />
    115     <Compile Include="Instances\MISCInstanceProvider.cs" />
    116     <Compile Include="Instances\ZDTInstanceProvider.cs" />
    117     <Compile Include="Instances\MOTFData.cs" />
    118     <Compile Include="Instances\MOTFDataDescriptor.cs" />
    119     <Compile Include="Instances\DTLZInstanceProvider.cs" />
    120     <Compile Include="TestFunctions\Misc\CIGTAB.cs" />
    121     <Compile Include="TestFunctions\IHR\IHR.cs" />
    122     <Compile Include="TestFunctions\IHR\IHR1.cs" />
    123     <Compile Include="TestFunctions\IHR\IHR6.cs" />
    124     <Compile Include="TestFunctions\IHR\IHR4.cs" />
    125     <Compile Include="TestFunctions\IHR\IHR3.cs" />
    126     <Compile Include="TestFunctions\IHR\IHR2.cs" />
    127     <Compile Include="TestFunctions\Misc\ELLI1.cs" />
    128     <Compile Include="NonDominatedSelect.cs" />
    129     <Compile Include="Interfaces\IMultiObjectiveTestFunction.cs" />
    130     <Compile Include="MultiObjectiveTestFunctionProblem.cs" />
    131     <Compile Include="TestFunctions\ParetoFrontStore.cs" />
    132     <Compile Include="Plugin.cs" />
    133     <Compile Include="Properties\AssemblyInfo.cs" />
    134     <Compile Include="TestFunctions\DTLZ\DTLZ.cs" />
    135     <Compile Include="TestFunctions\DTLZ\DTLZ5.cs" />
    136     <Compile Include="TestFunctions\DTLZ\DTLZ8.cs" />
    137     <Compile Include="TestFunctions\DTLZ\DTLZ7.cs" />
    138     <Compile Include="TestFunctions\DTLZ\DTLZ6.cs" />
    139     <Compile Include="TestFunctions\DTLZ\DTLZ4.cs" />
    140     <Compile Include="TestFunctions\DTLZ\DTLZ3.cs" />
    141     <Compile Include="TestFunctions\DTLZ\DTLZ2.cs" />
    142     <Compile Include="TestFunctions\Misc\Kursawe.cs" />
    143     <Compile Include="TestFunctions\DTLZ\DTLZ1.cs" />
    144     <Compile Include="TestFunctions\ZDT\ZDT.cs" />
    145     <Compile Include="TestFunctions\ZDT\ZDT6.cs" />
    146     <Compile Include="TestFunctions\ZDT\ZDT4.cs" />
    147     <Compile Include="TestFunctions\ZDT\ZDT3.cs" />
    148     <Compile Include="TestFunctions\ZDT\ZDT2.cs" />
    149     <Compile Include="TestFunctions\ZDT\ZDT1.cs" />
    150     <Compile Include="TestFunctions\Misc\SchafferN2.cs" />
    151     <Compile Include="TestFunctions\Misc\SchafferN1.cs" />
    152     <Compile Include="TestFunctions\Misc\Fonseca.cs" />
    153     <Compile Include="TestFunctions\MultiObjectiveTestFunction.cs" />
    154   </ItemGroup>
    155   <ItemGroup>
    156     <EmbeddedResource Include="TestFunctions\ZDT\ParetoFronts\ZDT1.pf" />
    157     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ1.2D.pf" />
    158     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ2.2D.pf" />
    159     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ3.2D.pf" />
    160     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ4.2D.pf" />
    161     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ5.2D.pf" />
    162     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ6.2D.pf" />
    163     <EmbeddedResource Include="TestFunctions\DTLZ\ParetoFronts\DTLZ7.2D.pf" />
    164     <EmbeddedResource Include="TestFunctions\Misc\ParetoFronts\Fonseca.pf" />
    165     <EmbeddedResource Include="TestFunctions\Misc\ParetoFronts\Kursawe.pf" />
    166     <EmbeddedResource Include="TestFunctions\Misc\ParetoFronts\SchafferN1.pf" />
    167     <EmbeddedResource Include="TestFunctions\ZDT\ParetoFronts\ZDT2.pf" />
    168     <EmbeddedResource Include="TestFunctions\ZDT\ParetoFronts\ZDT3.pf" />
    169     <EmbeddedResource Include="TestFunctions\ZDT\ParetoFronts\ZDT4.pf" />
    170     <EmbeddedResource Include="TestFunctions\ZDT\ParetoFronts\ZDT6.pf" />
    171     <None Include="HeuristicLab.snk" />
    172     <None Include="Plugin.cs.frame" />
    173     <None Include="Properties\AssemblyInfo.cs.frame" />
    174   </ItemGroup>
    175   <ItemGroup>
    176     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    177       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    178       <Name>HeuristicLab.Collections-3.3</Name>
    179       <Private>False</Private>
    180     </ProjectReference>
    181     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    182       <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>
    183       <Name>HeuristicLab.Common.Resources-3.3</Name>
    184       <Private>False</Private>
    185     </ProjectReference>
    186     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    187       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    188       <Name>HeuristicLab.Common-3.3</Name>
    189       <Private>False</Private>
    190     </ProjectReference>
    191     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    192       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    193       <Name>HeuristicLab.Core-3.3</Name>
    194       <Private>False</Private>
    195     </ProjectReference>
    196     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    197       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    198       <Name>HeuristicLab.Data-3.3</Name>
    199       <Private>False</Private>
    200     </ProjectReference>
    201     <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj">
    202       <Project>{bb6d334a-4bb6-4674-9883-31a6ebb32cab}</Project>
    203       <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name>
    204       <Private>False</Private>
    205     </ProjectReference>
    206     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    207       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    208       <Name>HeuristicLab.Operators-3.3</Name>
    209       <Private>False</Private>
    210     </ProjectReference>
    211     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    212       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    213       <Name>HeuristicLab.Optimization-3.3</Name>
    214       <Private>False</Private>
    215     </ProjectReference>
    216     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    217       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    218       <Name>HeuristicLab.Parameters-3.3</Name>
    219       <Private>False</Private>
    220     </ProjectReference>
    221     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    222       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    223       <Name>HeuristicLab.Persistence-3.3</Name>
    224       <Private>False</Private>
    225     </ProjectReference>
    226     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    227       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    228       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    229       <Private>False</Private>
    230     </ProjectReference>
    231     <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
    232       <Project>{3540e29e-4793-49e7-8ee2-fea7f61c3994}</Project>
    233       <Name>HeuristicLab.Problems.Instances-3.3</Name>
    234       <Private>False</Private>
    235     </ProjectReference>
    236   </ItemGroup>
    237   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    238   <PropertyGroup>
    239     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    240 set ProjectDir=$(ProjectDir)
    241 set SolutionDir=$(SolutionDir)
    242 set Outdir=$(Outdir)
    243 
    244 call PreBuildEvent.cmd
    245 </PreBuildEvent>
    246     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    247   export ProjectDir=$(ProjectDir)
    248 export SolutionDir=$(SolutionDir)
    249 
    250 $SolutionDir/PreBuildEvent.sh
    251 </PreBuildEvent>
     39  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     40    <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" />
     41  </Target>
     42  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     43    <OutputPath>..\..\bin\</OutputPath>
     44    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    25245  </PropertyGroup>
    253   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    254        Other similar extension points exist, see Microsoft.Common.targets.
    255   <Target Name="BeforeBuild">
    256   </Target>
    257   <Target Name="AfterBuild">
    258   </Target>
    259   -->
    26046</Project>
Note: See TracChangeset for help on using the changeset viewer.