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.Binary/3.3/HeuristicLab.Problems.Binary-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>{FC627BE5-0F93-47D8-BD2E-530EA2B8AA5F}</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.Binary</RootNamespace>
    11     <AssemblyName>HeuristicLab.Problems.Binary-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>$(SolutionDir)\bin\</OutputPath>
    20     <DefineConstants>DEBUG;TRACE</DefineConstants>
    21     <ErrorReport>prompt</ErrorReport>
    22     <WarningLevel>4</WarningLevel>
    23   </PropertyGroup>
    24   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    25     <DebugType>pdbonly</DebugType>
    26     <Optimize>true</Optimize>
    27     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    28     <DefineConstants>TRACE</DefineConstants>
    29     <ErrorReport>prompt</ErrorReport>
    30     <WarningLevel>4</WarningLevel>
    31   </PropertyGroup>
    32   <PropertyGroup>
    33     <SignAssembly>true</SignAssembly>
    34   </PropertyGroup>
    35   <PropertyGroup>
    36     <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    37   </PropertyGroup>
    38   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    39     <DebugSymbols>true</DebugSymbols>
    40     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    41     <DefineConstants>DEBUG;TRACE</DefineConstants>
    42     <DebugType>full</DebugType>
    43     <PlatformTarget>x64</PlatformTarget>
    44     <ErrorReport>prompt</ErrorReport>
    45     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    46   </PropertyGroup>
    47   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    48     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    49     <DefineConstants>TRACE</DefineConstants>
    50     <Optimize>true</Optimize>
    51     <DebugType>pdbonly</DebugType>
    52     <PlatformTarget>x64</PlatformTarget>
    53     <ErrorReport>prompt</ErrorReport>
    54     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    55   </PropertyGroup>
    56   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    57     <DebugSymbols>true</DebugSymbols>
    58     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    59     <DefineConstants>DEBUG;TRACE</DefineConstants>
    60     <DebugType>full</DebugType>
    61     <PlatformTarget>x86</PlatformTarget>
    62     <ErrorReport>prompt</ErrorReport>
    63     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    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>
    7312  </PropertyGroup>
    7413  <ItemGroup>
    75     <Reference Include="System" />
    76     <Reference Include="System.Core" />
    77     <Reference Include="System.Xml.Linq" />
    78     <Reference Include="System.Data.DataSetExtensions" />
    79     <Reference Include="Microsoft.CSharp" />
    80     <Reference Include="System.Data" />
    81     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    8216  </ItemGroup>
    8317  <ItemGroup>
    84     <Compile Include="BinaryProblem.cs" />
    85     <Compile Include="DeceptiveStepTrapProblem.cs" />
    86     <Compile Include="DeceptiveTrapProblem.cs" />
    87     <Compile Include="HIFFProblem.cs" />
    88     <Compile Include="OneMaxProblem.cs" />
    89     <Compile Include="Plugin.cs" />
    90     <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.Encodings.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-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" />
    9130  </ItemGroup>
    9231  <ItemGroup>
    93     <None Include="HeuristicLab.snk" />
    94     <None Include="Plugin.cs.frame" />
    95     <None Include="Properties\AssemblyInfo.cs.frame" />
     32    <Reference Include="Microsoft.CSharp" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
    9633  </ItemGroup>
    97   <ItemGroup>
    98     <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">
    99       <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project>
    100       <Name>HeuristicLab.Analysis-3.3</Name>
    101       <Private>False</Private>
    102     </ProjectReference>
    103     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    104       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    105       <Name>HeuristicLab.Collections-3.3</Name>
    106       <Private>False</Private>
    107     </ProjectReference>
    108     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    109       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    110       <Name>HeuristicLab.Common-3.3</Name>
    111       <Private>False</Private>
    112     </ProjectReference>
    113     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    114       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    115       <Name>HeuristicLab.Core-3.3</Name>
    116       <Private>False</Private>
    117     </ProjectReference>
    118     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    119       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    120       <Name>HeuristicLab.Data-3.3</Name>
    121       <Private>False</Private>
    122     </ProjectReference>
    123     <ProjectReference Include="..\..\HeuristicLab.Encodings.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj">
    124       <Project>{66d249c3-a01d-42a8-82a2-919bc8ec3d83}</Project>
    125       <Name>HeuristicLab.Encodings.BinaryVectorEncoding-3.3</Name>
    126       <Private>False</Private>
    127     </ProjectReference>
    128     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    129       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    130       <Name>HeuristicLab.Operators-3.3</Name>
    131       <Private>False</Private>
    132     </ProjectReference>
    133     <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
    134       <Project>{25087811-f74c-4128-bc86-8324271da13e}</Project>
    135       <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    136       <Private>False</Private>
    137     </ProjectReference>
    138     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    139       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    140       <Name>HeuristicLab.Optimization-3.3</Name>
    141       <Private>False</Private>
    142     </ProjectReference>
    143     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    144       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    145       <Name>HeuristicLab.Parameters-3.3</Name>
    146       <Private>False</Private>
    147     </ProjectReference>
    148     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    149       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    150       <Name>HeuristicLab.Persistence-3.3</Name>
    151       <Private>False</Private>
    152     </ProjectReference>
    153     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    154       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    155       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    156       <Private>False</Private>
    157     </ProjectReference>
    158   </ItemGroup>
    159   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    160   <PropertyGroup>
    161     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
    162       set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    163       set ProjectDir=$(ProjectDir)
    164       set SolutionDir=$(SolutionDir)
    165       set Outdir=$(Outdir)
    166 
    167       call PreBuildEvent.cmd
    168     </PreBuildEvent>
    169     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    170       export ProjectDir=$(ProjectDir)
    171       export SolutionDir=$(SolutionDir)
    172 
    173       $SolutionDir/PreBuildEvent.sh
    174     </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>
    17540  </PropertyGroup>
    176   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    177        Other similar extension points exist, see Microsoft.Common.targets.
    178   <Target Name="BeforeBuild">
    179   </Target>
    180   <Target Name="AfterBuild">
    181   </Target>
    182   -->
    18341</Project>
Note: See TracChangeset for help on using the changeset viewer.