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.QuadraticAssignment/3.3/HeuristicLab.Problems.QuadraticAssignment-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>{79271BC8-4446-40E2-BB89-9BE4E17174FE}</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.QuadraticAssignment</RootNamespace>
    12     <AssemblyName>HeuristicLab.Problems.QuadraticAssignment-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|x86'">
    43     <DebugSymbols>true</DebugSymbols>
    44     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    45     <DefineConstants>DEBUG;TRACE</DefineConstants>
    46     <DebugType>full</DebugType>
    47     <PlatformTarget>x86</PlatformTarget>
    48     <CodeAnalysisLogFile>bin\Debug\Plugin.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>$(SolutionDir)\bin\</OutputPath>
    61     <DefineConstants>TRACE</DefineConstants>
    62     <Optimize>true</Optimize>
    63     <DebugType>pdbonly</DebugType>
    64     <PlatformTarget>x86</PlatformTarget>
    65     <CodeAnalysisLogFile>$(SolutionDir)\bin\Plugin.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>true</CodeAnalysisIgnoreBuiltInRules>
    73     <Prefer32Bit>false</Prefer32Bit>
    74   </PropertyGroup>
    75   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    76     <DebugSymbols>true</DebugSymbols>
    77     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    78     <DefineConstants>DEBUG;TRACE</DefineConstants>
    79     <DebugType>full</DebugType>
    80     <PlatformTarget>x64</PlatformTarget>
    81     <CodeAnalysisLogFile>bin\Debug\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    82     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    83     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    84     <ErrorReport>prompt</ErrorReport>
    85     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    86     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    87     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    88     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    89     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    90     <Prefer32Bit>false</Prefer32Bit>
    91   </PropertyGroup>
    92   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    93     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    94     <DefineConstants>TRACE</DefineConstants>
    95     <Optimize>true</Optimize>
    96     <DebugType>pdbonly</DebugType>
    97     <PlatformTarget>x64</PlatformTarget>
    98     <CodeAnalysisLogFile>$(SolutionDir)\bin\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    99     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    100     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    101     <ErrorReport>prompt</ErrorReport>
    102     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    103     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    104     <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
    105     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    106     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    107     <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    108     <Prefer32Bit>false</Prefer32Bit>
    10912  </PropertyGroup>
    11013  <ItemGroup>
    111     <Reference Include="System" />
    112     <Reference Include="System.Core" />
    113     <Reference Include="System.Data" />
    114     <Reference Include="System.Drawing" />
    115     <Reference Include="System.Runtime.Serialization" />
    116     <Reference Include="System.ServiceModel" />
    117     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11816  </ItemGroup>
    11917  <ItemGroup>
    120     <Compile Include="Analyzers\BestQAPSolutionAnalyzer.cs" />
    121     <Compile Include="Analyzers\QAPAlleleFrequencyAnalyzer.cs" />
    122     <Compile Include="Analyzers\QAPPopulationDiversityAnalyzer.cs" />
    123     <Compile Include="BoundsCalculators\GilmoreLawlerBoundCalculator.cs" />
    124     <Compile Include="Evaluators\QAPScrambleMoveEvaluator.cs" />
    125     <Compile Include="Evaluators\QAPSwap2MoveEvaluator.cs" />
    126     <Compile Include="Evaluators\QAPEvaluator.cs" />
    127     <Compile Include="Evaluators\QAPInversionMoveEvaluator.cs" />
    128     <Compile Include="Evaluators\QAPMoveEvaluator.cs" />
    129     <Compile Include="Evaluators\QAPTranslocationMoveEvaluator.cs">
    130       <SubType>Code</SubType>
    131     </Compile>
    132     <Compile Include="Interfaces\IQAPEvaluator.cs" />
    133     <Compile Include="Interfaces\IQAPMoveEvaluator.cs" />
    134     <Compile Include="LocalImprovement\QAPExhaustiveInsertionLocalImprovement.cs" />
    135     <Compile Include="LocalImprovement\QAPStochasticScrambleLocalImprovement.cs" />
    136     <Compile Include="LocalImprovement\QAPExhaustiveSwap2LocalImprovement.cs" />
    137     <Compile Include="LocalImprovement\QAPExhaustiveInversionLocalImprovement.cs" />
    138     <Compile Include="QAPAssignment.cs" />
    139     <Compile Include="QAPPermutationProximityCalculator.cs" />
    140     <Compile Include="QuadraticAssignmentProblem.cs" />
    141     <Compile Include="QAPSimilarityCalculator.cs" />
    142     <None Include="Plugin.cs.frame" />
    143     <Compile Include="Plugin.cs" />
    144     <Compile Include="Properties\AssemblyInfo.cs" />
    145     <None Include="Properties\AssemblyInfo.cs.frame" />
     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.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj" />
     21    <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj" />
     22    <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj" />
     23    <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.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" />
     32    <ProjectReference Include="..\..\HeuristicLab.Problems.LinearAssignment\3.3\HeuristicLab.Problems.LinearAssignment-3.3.csproj" />
    14633  </ItemGroup>
    147   <ItemGroup>
    148     <None Include="HeuristicLab.snk" />
    149   </ItemGroup>
    150   <ItemGroup>
    151     <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">
    152       <Project>{887425B4-4348-49ED-A457-B7D2C26DDBF9}</Project>
    153       <Name>HeuristicLab.Analysis-3.3</Name>
    154       <Private>False</Private>
    155     </ProjectReference>
    156     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    157       <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>
    158       <Name>HeuristicLab.Collections-3.3</Name>
    159       <Private>False</Private>
    160     </ProjectReference>
    161     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    162       <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>
    163       <Name>HeuristicLab.Common.Resources-3.3</Name>
    164       <Private>False</Private>
    165     </ProjectReference>
    166     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    167       <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    168       <Name>HeuristicLab.Common-3.3</Name>
    169       <Private>False</Private>
    170     </ProjectReference>
    171     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    172       <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
    173       <Name>HeuristicLab.Core-3.3</Name>
    174       <Private>False</Private>
    175     </ProjectReference>
    176     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    177       <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>
    178       <Name>HeuristicLab.Data-3.3</Name>
    179       <Private>False</Private>
    180     </ProjectReference>
    181     <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj">
    182       <Project>{DBECB8B0-B166-4133-BAF1-ED67C3FD7FCA}</Project>
    183       <Name>HeuristicLab.Encodings.PermutationEncoding-3.3</Name>
    184       <Private>False</Private>
    185     </ProjectReference>
    186     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    187       <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>
    188       <Name>HeuristicLab.Operators-3.3</Name>
    189       <Private>False</Private>
    190     </ProjectReference>
    191     <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
    192       <Project>{25087811-f74c-4128-bc86-8324271da13e}</Project>
    193       <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    194       <Private>False</Private>
    195     </ProjectReference>
    196     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    197       <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
    198       <Name>HeuristicLab.Optimization-3.3</Name>
    199       <Private>False</Private>
    200     </ProjectReference>
    201     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    202       <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>
    203       <Name>HeuristicLab.Parameters-3.3</Name>
    204       <Private>False</Private>
    205     </ProjectReference>
    206     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    207       <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    208       <Name>HeuristicLab.Persistence-3.3</Name>
    209       <Private>False</Private>
    210     </ProjectReference>
    211     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    212       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    213       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    214       <Private>False</Private>
    215     </ProjectReference>
    216     <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
    217       <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project>
    218       <Name>HeuristicLab.Problems.Instances-3.3</Name>
    219       <Private>False</Private>
    220     </ProjectReference>
    221     <ProjectReference Include="..\..\HeuristicLab.Problems.LinearAssignment\3.3\HeuristicLab.Problems.LinearAssignment-3.3.csproj">
    222       <Project>{7250653F-DE83-4069-8D34-8050E8E45EA1}</Project>
    223       <Name>HeuristicLab.Problems.LinearAssignment-3.3</Name>
    224     </ProjectReference>
    225   </ItemGroup>
    226   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    227   <PropertyGroup>
    228     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    229 set ProjectDir=$(ProjectDir)
    230 set SolutionDir=$(SolutionDir)
    231 set Outdir=$(Outdir)
    232 
    233 call PreBuildEvent.cmd</PreBuildEvent>
    234     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    235 export ProjectDir=$(ProjectDir)
    236 export SolutionDir=$(SolutionDir)
    237 
    238 $SolutionDir/PreBuildEvent.sh
    239 </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>
    24040  </PropertyGroup>
    241   <PropertyGroup>
    242     <PostBuildEvent>
    243     </PostBuildEvent>
    244   </PropertyGroup>
    245   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    246        Other similar extension points exist, see Microsoft.Common.targets.
    247   <Target Name="BeforeBuild">
    248   </Target>
    249   <Target Name="AfterBuild">
    250   </Target>
    251   -->
    25241</Project>
Note: See TracChangeset for help on using the changeset viewer.