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

    r11623 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>{2BF1D639-1A74-44ED-AAAD-41ECD395AD93}</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.Scheduling</RootNamespace>
    12     <AssemblyName>HeuristicLab.Problems.Scheduling-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>$(SolutionDir)\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>$(SolutionDir)\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|x64'">
    43     <DebugSymbols>true</DebugSymbols>
    44     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    45     <DefineConstants>DEBUG;TRACE</DefineConstants>
    46     <DebugType>full</DebugType>
    47     <PlatformTarget>x64</PlatformTarget>
    48     <CodeAnalysisLogFile>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.Scheduling-3.3.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     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    55     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    56     <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    57     <Prefer32Bit>false</Prefer32Bit>
    58   </PropertyGroup>
    59   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    60     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    61     <DefineConstants>TRACE</DefineConstants>
    62     <Optimize>true</Optimize>
    63     <DebugType>pdbonly</DebugType>
    64     <PlatformTarget>x64</PlatformTarget>
    65     <CodeAnalysisLogFile>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.Scheduling-3.3.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     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    72     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    73     <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    74     <Prefer32Bit>false</Prefer32Bit>
    75   </PropertyGroup>
    76   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    77     <DebugSymbols>true</DebugSymbols>
    78     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    79     <DefineConstants>DEBUG;TRACE</DefineConstants>
    80     <DebugType>full</DebugType>
    81     <PlatformTarget>x86</PlatformTarget>
    82     <CodeAnalysisLogFile>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.Scheduling-3.3.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     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    89     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    90     <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    91     <Prefer32Bit>false</Prefer32Bit>
    92   </PropertyGroup>
    93   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    94     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    95     <DefineConstants>TRACE</DefineConstants>
    96     <Optimize>true</Optimize>
    97     <DebugType>pdbonly</DebugType>
    98     <PlatformTarget>x86</PlatformTarget>
    99     <CodeAnalysisLogFile>..\..\..\..\trunk\sources\bin\HeuristicLab.Problems.Scheduling-3.3.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     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    106     <Prefer32Bit>false</Prefer32Bit>
    10712  </PropertyGroup>
    10813  <ItemGroup>
    109     <Reference Include="System" />
    110     <Reference Include="System.Core" />
    111     <Reference Include="System.Drawing" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11216  </ItemGroup>
    11317  <ItemGroup>
    114     <Compile Include="Analyzers\BestSchedulingSolutionAnalyzer.cs" />
    115     <Compile Include="Analyzers\SchedulingAnalyzer.cs" />
    116     <Compile Include="Decoders\JSMForcingStrategy.cs" />
    117     <Compile Include="Decoders\JSMDecoder.cs" />
    118     <Compile Include="Decoders\JSMDecodingErrorPolicy.cs" />
    119     <Compile Include="Decoders\JSMDecodingErrorPolicyTypes.cs" />
    120     <Compile Include="Decoders\JSMForcingStrategyTypes.cs" />
    121     <Compile Include="Decoders\PRVDecoder.cs" />
    122     <Compile Include="Decoders\PWRDecoder.cs" />
    123     <Compile Include="Decoders\ScheduleDecoder.cs" />
    124     <Compile Include="Evaluators\MeanTardinessEvaluator.cs" />
    125     <Compile Include="Evaluators\MakespanEvaluator.cs" />
    126     <Compile Include="Evaluators\ScheduleEvaluator.cs" />
    127     <Compile Include="Interfaces\IJSSPOperator.cs" />
    128     <Compile Include="Interfaces\IScheduleDecoder.cs" />
    129     <Compile Include="Interfaces\ISchedulingEvaluator.cs" />
    130     <Compile Include="Interfaces\IScheduleEvaluator.cs" />
    131     <Compile Include="JobShopSchedulingProblem.cs" />
    132     <Compile Include="Evaluators\SchedulingEvaluator.cs" />
    133     <Compile Include="SchedulingProblem.cs" />
    134     <Compile Include="Plugin.cs" />
    135     <Compile Include="Properties\AssemblyInfo.cs" />
     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.IntegerVectorEncoding\3.3\HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Encodings.ScheduleEncoding\3.3\HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     27    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj" />
     28    <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     29    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     30    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     31    <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj" />
    13632  </ItemGroup>
    137   <ItemGroup>
    138     <None Include="HeuristicLab.snk" />
    139     <None Include="Plugin.cs.frame" />
    140     <None Include="Properties\AssemblyInfo.cs.frame" />
    141   </ItemGroup>
    142   <ItemGroup>
    143     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    144       <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>
    145       <Name>HeuristicLab.Collections-3.3</Name>
    146       <Private>False</Private>
    147     </ProjectReference>
    148     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    149       <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>
    150       <Name>HeuristicLab.Common.Resources-3.3</Name>
    151       <Private>False</Private>
    152     </ProjectReference>
    153     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    154       <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    155       <Name>HeuristicLab.Common-3.3</Name>
    156       <Private>False</Private>
    157     </ProjectReference>
    158     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    159       <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
    160       <Name>HeuristicLab.Core-3.3</Name>
    161       <Private>False</Private>
    162     </ProjectReference>
    163     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    164       <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>
    165       <Name>HeuristicLab.Data-3.3</Name>
    166       <Private>False</Private>
    167     </ProjectReference>
    168     <ProjectReference Include="..\..\HeuristicLab.Encodings.IntegerVectorEncoding\3.3\HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj">
    169       <Project>{DDFB14DD-2A85-493C-A52D-E69729BBAEB0}</Project>
    170       <Name>HeuristicLab.Encodings.IntegerVectorEncoding-3.3</Name>
    171       <Private>False</Private>
    172     </ProjectReference>
    173     <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj">
    174       <Project>{DBECB8B0-B166-4133-BAF1-ED67C3FD7FCA}</Project>
    175       <Name>HeuristicLab.Encodings.PermutationEncoding-3.3</Name>
    176       <Private>False</Private>
    177     </ProjectReference>
    178     <ProjectReference Include="..\..\HeuristicLab.Encodings.ScheduleEncoding\3.3\HeuristicLab.Encodings.ScheduleEncoding-3.3.csproj">
    179       <Project>{17F3EF80-B2C3-4B8D-A4D5-BE9CE3BA2606}</Project>
    180       <Name>HeuristicLab.Encodings.ScheduleEncoding-3.3</Name>
    181       <Private>False</Private>
    182     </ProjectReference>
    183     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    184       <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>
    185       <Name>HeuristicLab.Operators-3.3</Name>
    186       <Private>False</Private>
    187     </ProjectReference>
    188     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    189       <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
    190       <Name>HeuristicLab.Optimization-3.3</Name>
    191       <Private>False</Private>
    192     </ProjectReference>
    193     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    194       <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>
    195       <Name>HeuristicLab.Parameters-3.3</Name>
    196       <Private>False</Private>
    197     </ProjectReference>
    198     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    199       <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    200       <Name>HeuristicLab.Persistence-3.3</Name>
    201       <Private>False</Private>
    202     </ProjectReference>
    203     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    204       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    205       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    206       <Private>False</Private>
    207     </ProjectReference>
    208     <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
    209       <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>
    210       <Name>HeuristicLab.Problems.Instances-3.3</Name>
    211       <Private>False</Private>
    212     </ProjectReference>
    213   </ItemGroup>
    214   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    215   <PropertyGroup>
    216     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    217 set ProjectDir=$(ProjectDir)
    218 set SolutionDir=$(SolutionDir)
    219 set Outdir=$(Outdir)
    220 
    221 call PreBuildEvent.cmd
    222 </PreBuildEvent>
    223     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    224 export ProjectDir=$(ProjectDir)
    225 export SolutionDir=$(SolutionDir)
    226 
    227 $SolutionDir/PreBuildEvent.sh
    228 </PreBuildEvent>
     33  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     34    <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" />
     35  </Target>
     36  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     37    <OutputPath>..\..\bin\</OutputPath>
     38    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    22939  </PropertyGroup>
    230   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    231        Other similar extension points exist, see Microsoft.Common.targets.
    232   <Target Name="BeforeBuild">
    233   </Target>
    234   <Target Name="AfterBuild">
    235   </Target>
    236   -->
    23740</Project>
Note: See TracChangeset for help on using the changeset viewer.