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

    r12846 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>8.0.30703</ProductVersion>
    7     <SchemaVersion>2.0</SchemaVersion>
    8     <ProjectGuid>{C3AD50E6-E717-490E-ABC7-32EF7FB03C97}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <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>
    1111    <RootNamespace>HeuristicLab.Problems.NK</RootNamespace>
    12     <AssemblyName>HeuristicLab.Problems.NK-3.3</AssemblyName>
    13     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    14     <FileAlignment>512</FileAlignment>
    15     <TargetFrameworkProfile />
    16   </PropertyGroup>
    17   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    18     <DebugSymbols>true</DebugSymbols>
    19     <DebugType>full</DebugType>
    20     <Optimize>false</Optimize>
    21     <OutputPath>..\..\bin\</OutputPath>
    22     <DefineConstants>DEBUG;TRACE</DefineConstants>
    23     <ErrorReport>prompt</ErrorReport>
    24     <WarningLevel>4</WarningLevel>
    25     <Prefer32Bit>false</Prefer32Bit>
    26   </PropertyGroup>
    27   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    28     <DebugType>pdbonly</DebugType>
    29     <Optimize>true</Optimize>
    30     <OutputPath>..\..\bin\</OutputPath>
    31     <DefineConstants>TRACE</DefineConstants>
    32     <ErrorReport>prompt</ErrorReport>
    33     <WarningLevel>4</WarningLevel>
    34     <Prefer32Bit>false</Prefer32Bit>
    35   </PropertyGroup>
    36   <PropertyGroup>
    37     <SignAssembly>true</SignAssembly>
    38   </PropertyGroup>
    39   <PropertyGroup>
    40     <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    41   </PropertyGroup>
    42   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    43     <DebugSymbols>true</DebugSymbols>
    44     <OutputPath>..\..\bin\</OutputPath>
    45     <DefineConstants>DEBUG;TRACE</DefineConstants>
    46     <DebugType>full</DebugType>
    47     <PlatformTarget>x86</PlatformTarget>
    48     <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Problems.NK.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    49     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    50     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    51     <ErrorReport>prompt</ErrorReport>
    52     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    53     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    54     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    55     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    56     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    57     <Prefer32Bit>false</Prefer32Bit>
    58   </PropertyGroup>
    59   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    60     <OutputPath>..\..\bin\</OutputPath>
    61     <DefineConstants>TRACE</DefineConstants>
    62     <Optimize>true</Optimize>
    63     <DebugType>pdbonly</DebugType>
    64     <PlatformTarget>x86</PlatformTarget>
    65     <CodeAnalysisLogFile>bin\Release\HeuristicLab.Problems.NK.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    66     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    67     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    68     <ErrorReport>prompt</ErrorReport>
    69     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    70     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    71     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    72     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    73     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    74     <Prefer32Bit>false</Prefer32Bit>
    75   </PropertyGroup>
    76   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    77     <DebugSymbols>true</DebugSymbols>
    78     <OutputPath>..\..\bin\</OutputPath>
    79     <DefineConstants>DEBUG;TRACE</DefineConstants>
    80     <DebugType>full</DebugType>
    81     <PlatformTarget>x64</PlatformTarget>
    82     <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Problems.NK.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    83     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    84     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    85     <ErrorReport>prompt</ErrorReport>
    86     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    87     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    88     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    89     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    90     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    91     <Prefer32Bit>false</Prefer32Bit>
    92   </PropertyGroup>
    93   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    94     <OutputPath>..\..\bin\</OutputPath>
    95     <DefineConstants>TRACE</DefineConstants>
    96     <Optimize>true</Optimize>
    97     <DebugType>pdbonly</DebugType>
    98     <PlatformTarget>x64</PlatformTarget>
    99     <CodeAnalysisLogFile>bin\Release\HeuristicLab.Problems.NK.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    100     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    101     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    102     <ErrorReport>prompt</ErrorReport>
    103     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    104     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    105     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    106     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    107     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    108     <Prefer32Bit>false</Prefer32Bit>
    10912  </PropertyGroup>
    11013  <ItemGroup>
    111     <Reference Include="System" />
    112     <Reference Include="System.Core" />
    113     <Reference Include="System.Drawing" />
    114     <Reference Include="System.Xml.Linq" />
    115     <Reference Include="System.Data.DataSetExtensions" />
    116     <Reference Include="Microsoft.CSharp" />
    117     <Reference Include="System.Data" />
    118     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11916  </ItemGroup>
    12017  <ItemGroup>
    121     <Compile Include="BinaryVectorComparers\IBinaryVectorComparer.cs" />
    122     <Compile Include="BinaryVectorComparers\LexicographicBinaryVectorComparer.cs" />
    123     <Compile Include="BinaryVectorComparers\AverageBitBinaryVectorComparer.cs" />
    124     <Compile Include="BinaryVectorComparers\MedianBitBinaryVectorComparer.cs" />
    125     <Compile Include="InteractionInitializers\LimitedRandomInteractionsInitializer.cs" />
    126     <Compile Include="InteractionInitializers\IncreasingBlockSizeInteractionsInitializer.cs" />
    127     <Compile Include="InteractionInitializers\SortedRandomInteractionsInitializer.cs" />
    128     <Compile Include="InteractionInitializers\IInteractionInitializer.cs" />
    129     <Compile Include="INKMoveEvaluator.cs" />
    130     <Compile Include="NKLandscape.cs" />
    131     <Compile Include="Plugin.cs" />
    132     <Compile Include="WeightInitializers\ExponentialDistributionWeightsInitializer.cs" />
    133     <Compile Include="WeightInitializers\ReverseLinearWeightsInitializer.cs" />
    134     <Compile Include="WeightInitializers\LinearWeightsInitializer.cs" />
    135     <Compile Include="WeightInitializers\ReverseExponentialWeightsInitializer.cs" />
    136     <Compile Include="WeightInitializers\ExponentialWeightsInitializer.cs" />
    137     <Compile Include="WeightInitializers\IWeightsInitializer.cs" />
    138     <Compile Include="NKBitFlipMoveEvaluator.cs" />
    139     <Compile Include="NKMoveEvaluator.cs" />
    140     <Compile Include="Properties\AssemblyInfo.cs" />
    141     <Compile Include="InteractionInitializers\RandomInteractionsInitializer.cs" />
    142     <Compile Include="WeightInitializers\EqualWeightsInitializer.cs" />
     18    <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj" />
     19    <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj" />
     20    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj" />
     21    <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj" />
     22    <ProjectReference Include="..\..\HeuristicLab.Encodings.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj" />
     23    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     27    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     28    <ProjectReference Include="..\..\HeuristicLab.Problems.Binary\3.3\HeuristicLab.Problems.Binary-3.3.csproj" />
     29    <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj" />
    14330  </ItemGroup>
    14431  <ItemGroup>
    145     <None Include="HeuristicLab.snk" />
    146     <None Include="Plugin.cs.frame" />
    147     <None Include="Properties\AssemblyInfo.cs.frame" />
     32    <Reference Include="Microsoft.CSharp" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
    14833  </ItemGroup>
    149   <ItemGroup>
    150     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    151       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    152       <Name>HeuristicLab.Collections-3.3</Name>
    153       <Private>False</Private>
    154     </ProjectReference>
    155     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    156       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    157       <Name>HeuristicLab.Common-3.3</Name>
    158       <Private>False</Private>
    159     </ProjectReference>
    160     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    161       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    162       <Name>HeuristicLab.Core-3.3</Name>
    163       <Private>False</Private>
    164     </ProjectReference>
    165     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    166       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    167       <Name>HeuristicLab.Data-3.3</Name>
    168       <Private>False</Private>
    169     </ProjectReference>
    170     <ProjectReference Include="..\..\HeuristicLab.Encodings.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj">
    171       <Project>{66d249c3-a01d-42a8-82a2-919bc8ec3d83}</Project>
    172       <Name>HeuristicLab.Encodings.BinaryVectorEncoding-3.3</Name>
    173       <Private>False</Private>
    174     </ProjectReference>
    175     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    176       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    177       <Name>HeuristicLab.Operators-3.3</Name>
    178       <Private>False</Private>
    179     </ProjectReference>
    180     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    181       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    182       <Name>HeuristicLab.Optimization-3.3</Name>
    183       <Private>False</Private>
    184     </ProjectReference>
    185     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    186       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    187       <Name>HeuristicLab.Parameters-3.3</Name>
    188       <Private>False</Private>
    189     </ProjectReference>
    190     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    191       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    192       <Name>HeuristicLab.Persistence-3.3</Name>
    193       <Private>False</Private>
    194     </ProjectReference>
    195     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    196       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    197       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    198       <Private>False</Private>
    199     </ProjectReference>
    200     <ProjectReference Include="..\..\HeuristicLab.Problems.Binary\3.3\HeuristicLab.Problems.Binary-3.3.csproj">
    201       <Project>{fc627be5-0f93-47d8-bd2e-530ea2b8aa5f}</Project>
    202       <Name>HeuristicLab.Problems.Binary-3.3</Name>
    203       <Private>False</Private>
    204     </ProjectReference>
    205     <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj">
    206       <Project>{f4539fb6-4708-40c9-be64-0a1390aea197}</Project>
    207       <Name>HeuristicLab.Random-3.3</Name>
    208       <Private>False</Private>
    209     </ProjectReference>
    210   </ItemGroup>
    211   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    212   <PropertyGroup>
    213     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
    214       set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    215       set ProjectDir=$(ProjectDir)
    216       set SolutionDir=$(SolutionDir)
    217       set Outdir=$(Outdir)
    218 
    219       call PreBuildEvent.cmd
    220     </PreBuildEvent>
    221     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    222       export ProjectDir=$(ProjectDir)
    223       export SolutionDir=$(SolutionDir)
    224 
    225       $SolutionDir/PreBuildEvent.sh
    226     </PreBuildEvent>
     34  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     35    <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" />
     36  </Target>
     37  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     38    <OutputPath>..\..\bin\</OutputPath>
     39    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    22740  </PropertyGroup>
    228   <PropertyGroup>
    229     <PostBuildEvent>
    230     </PostBuildEvent>
    231   </PropertyGroup>
    232   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    233        Other similar extension points exist, see Microsoft.Common.targets.
    234   <Target Name="BeforeBuild">
    235   </Target>
    236   <Target Name="AfterBuild">
    237   </Target>
    238   -->
    23941</Project>
Note: See TracChangeset for help on using the changeset viewer.