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.Encodings.RealVectorEncoding/3.3/HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj

    r15973 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>9.0.30729</ProductVersion>
    7     <SchemaVersion>2.0</SchemaVersion>
    8     <ProjectGuid>{BB6D334A-4BB6-4674-9883-31A6EBB32CAB}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Encodings.RealVectorEncoding</RootNamespace>
    12     <AssemblyName>HeuristicLab.Encodings.RealVectorEncoding-3.3</AssemblyName>
    13     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    14     <TargetFrameworkProfile>
    15     </TargetFrameworkProfile>
    16     <FileAlignment>512</FileAlignment>
     4    <TargetFramework>netstandard2.0</TargetFramework>
     5    <Copyright>(c) 2002-2018 HEAL</Copyright>
     6    <Product>HeuristicLab</Product>
    177    <SignAssembly>true</SignAssembly>
    188    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    19     <FileUpgradeFlags>
    20     </FileUpgradeFlags>
    21     <OldToolsVersion>3.5</OldToolsVersion>
    22     <UpgradeBackupLocation />
    23     <PublishUrl>publish\</PublishUrl>
    24     <Install>true</Install>
    25     <InstallFrom>Disk</InstallFrom>
    26     <UpdateEnabled>false</UpdateEnabled>
    27     <UpdateMode>Foreground</UpdateMode>
    28     <UpdateInterval>7</UpdateInterval>
    29     <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    30     <UpdatePeriodically>false</UpdatePeriodically>
    31     <UpdateRequired>false</UpdateRequired>
    32     <MapFileExtensions>true</MapFileExtensions>
    33     <ApplicationRevision>0</ApplicationRevision>
    34     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    35     <IsWebBootstrapper>false</IsWebBootstrapper>
    36     <UseApplicationTrust>false</UseApplicationTrust>
    37     <BootstrapperEnabled>true</BootstrapperEnabled>
    38   </PropertyGroup>
    39   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    40     <DebugSymbols>true</DebugSymbols>
    41     <DebugType>full</DebugType>
    42     <Optimize>false</Optimize>
    43     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    44     <DefineConstants>DEBUG;TRACE</DefineConstants>
    45     <ErrorReport>prompt</ErrorReport>
    46     <WarningLevel>4</WarningLevel>
    47     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    48     <Prefer32Bit>false</Prefer32Bit>
    49   </PropertyGroup>
    50   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    51     <DebugType>pdbonly</DebugType>
    52     <Optimize>true</Optimize>
    53     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    54     <DefineConstants>TRACE</DefineConstants>
    55     <ErrorReport>prompt</ErrorReport>
    56     <WarningLevel>4</WarningLevel>
    57     <DocumentationFile>
    58     </DocumentationFile>
    59     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    60     <Prefer32Bit>false</Prefer32Bit>
    61   </PropertyGroup>
    62   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    63     <DebugSymbols>true</DebugSymbols>
    64     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    65     <DefineConstants>DEBUG;TRACE</DefineConstants>
    66     <DebugType>full</DebugType>
    67     <PlatformTarget>x86</PlatformTarget>
    68     <ErrorReport>prompt</ErrorReport>
    69     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    70     <Prefer32Bit>false</Prefer32Bit>
    71   </PropertyGroup>
    72   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    73     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    74     <DefineConstants>TRACE</DefineConstants>
    75     <DocumentationFile>
    76     </DocumentationFile>
    77     <Optimize>true</Optimize>
    78     <DebugType>pdbonly</DebugType>
    79     <PlatformTarget>x86</PlatformTarget>
    80     <ErrorReport>prompt</ErrorReport>
    81     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    82     <Prefer32Bit>false</Prefer32Bit>
    83   </PropertyGroup>
    84   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    85     <DebugSymbols>true</DebugSymbols>
    86     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    87     <DefineConstants>DEBUG;TRACE</DefineConstants>
    88     <DebugType>full</DebugType>
    89     <PlatformTarget>x64</PlatformTarget>
    90     <ErrorReport>prompt</ErrorReport>
    91     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    92     <Prefer32Bit>false</Prefer32Bit>
    93   </PropertyGroup>
    94   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    95     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    96     <DefineConstants>TRACE</DefineConstants>
    97     <DocumentationFile>
    98     </DocumentationFile>
    99     <Optimize>true</Optimize>
    100     <DebugType>pdbonly</DebugType>
    101     <PlatformTarget>x64</PlatformTarget>
    102     <ErrorReport>prompt</ErrorReport>
    103     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    104     <Prefer32Bit>false</Prefer32Bit>
     9    <AssemblyVersion>3.3.0.0</AssemblyVersion>
     10    <AssemblyFileVersion>3.3.15.0</AssemblyFileVersion>
     11    <RootNamespace>HeuristicLab.Encodings.RealVectorEncoding</RootNamespace>
    10512  </PropertyGroup>
    10613  <ItemGroup>
    107     <Reference Include="System" />
    108     <Reference Include="System.Core">
    109       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    110     </Reference>
    111     <Reference Include="System.Data" />
    112     <Reference Include="System.Drawing" />
    113     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11416  </ItemGroup>
    11517  <ItemGroup>
    116     <Compile Include="Creators\NormalDistributedRealVectorCreator.cs" />
    117     <Compile Include="Interfaces\IRealVectorMultiNeighborhoodShakingOperator.cs" />
    118     <Compile Include="ParticleOperators\RealVectorNeighborhoodParticleUpdater.cs" />
    119     <Compile Include="ParticleOperators\RealVectorParticleCreator.cs" />
    120     <Compile Include="ParticleOperators\RealVectorParticleUpdater.cs" />
    121     <Compile Include="ParticleOperators\RealVectorSwarmUpdater.cs" />
    122     <Compile Include="ParticleOperators\RealVectorTotallyConnectedParticleUpdater.cs" />
    123     <Compile Include="ParticleOperators\SPSO2007VelocityInitializer.cs" />
    124     <Compile Include="ParticleOperators\SPSOVelocityInitializer.cs" />
    125     <Compile Include="ParticleOperators\SPSO2011ParticleUpdater.cs" />
    126     <Compile Include="ParticleOperators\SPSO2007ParticleUpdater.cs" />
    127     <Compile Include="ParticleOperators\SPSOParticleCreator.cs" />
    128     <Compile Include="Crossovers\BlendAlphaBetaCrossover.cs" />
    129     <Compile Include="Interfaces\IRealVectorManipulator.cs" />
    130     <Compile Include="Interfaces\IRealVectorOperator.cs" />
    131     <Compile Include="Interfaces\IRealVectorCrossover.cs" />
    132     <Compile Include="Interfaces\IRealVectorCreator.cs" />
    133     <Compile Include="BoundsChecker.cs" />
    134     <Compile Include="Creators\UniformRandomRealVectorCreator.cs" />
    135     <Compile Include="Interfaces\IRealVectorParticleCreator.cs" />
    136     <Compile Include="Interfaces\IRealVectorParticleUpdater.cs" />
    137     <Compile Include="Interfaces\IRealVectorSwarmUpdater.cs" />
    138     <Compile Include="Manipulators\SelfAdaptiveNormalAllPositionsManipulator.cs" />
    139     <Compile Include="ParticleOperators\SPSOParticleUpdater.cs" />
    140     <Compile Include="ParticleOperators\SPSO2011VelocityInitializer.cs" />
    141     <Compile Include="ParticleOperators\SPSOSwarmUpdater.cs" />
    142     <Compile Include="Plugin.cs" />
    143     <Compile Include="RealVectorCreator.cs" />
    144     <Compile Include="RealVectorCrossover.cs" />
    145     <Compile Include="Properties\AssemblyInfo.cs" />
    146     <Compile Include="RealVectorEncoding.cs" />
    147     <Compile Include="RealVectorEqualityComparer.cs" />
    148     <Compile Include="RealVectorManipulator.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.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     23    <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.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.Random\3.3\HeuristicLab.Random-3.3.csproj" />
    14929  </ItemGroup>
    150   <ItemGroup>
    151     <Compile Include="Crossovers\AverageCrossover.cs" />
    152     <Compile Include="Crossovers\BlendAlphaCrossover.cs" />
    153     <Compile Include="Crossovers\DiscreteCrossover.cs" />
    154     <Compile Include="Crossovers\HeuristicCrossover.cs" />
    155     <Compile Include="Crossovers\LocalCrossover.cs" />
    156     <Compile Include="Crossovers\MultiRealVectorCrossover.cs" />
    157     <Compile Include="Crossovers\RandomConvexCrossover.cs" />
    158     <Compile Include="Crossovers\SimulatedBinaryCrossover.cs" />
    159     <Compile Include="Crossovers\SinglePointCrossover.cs">
    160       <SubType>Code</SubType>
    161     </Compile>
    162     <Compile Include="Crossovers\UniformAllPositionsArithmeticCrossover.cs" />
    163     <Compile Include="Crossovers\UniformSomePositionsArithmeticCrossover.cs" />
    164     <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterCreator.cs" />
    165     <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterCrossover.cs" />
    166     <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterManipulator.cs" />
    167     <Compile Include="Interfaces\IRealVectorStdDevStrategyParameterOperator.cs" />
    168     <Compile Include="Interfaces\IAdditiveRealVectorMoveOperator.cs" />
    169     <Compile Include="Interfaces\IRealVectorBoundsChecker.cs" />
    170     <Compile Include="Interfaces\IRealVectorMoveGenerator.cs" />
    171     <Compile Include="Interfaces\IRealVectorMoveOperator.cs" />
    172     <Compile Include="Manipulators\MultiRealVectorManipulator.cs" />
    173     <Compile Include="Manipulators\FixedNormalAllPositionsManipulator.cs" />
    174     <Compile Include="Moves\AdditiveMoveTabuChecker.cs" />
    175     <Compile Include="Moves\AdditiveMoveTabuMaker.cs" />
    176     <Compile Include="Moves\AdditiveMoveTabuAttribute.cs" />
    177     <Compile Include="Moves\AdditiveMoveMaker.cs" />
    178     <Compile Include="Moves\AdditiveMove.cs" />
    179     <Compile Include="Moves\AdditiveMoveGenerator.cs" />
    180     <Compile Include="Moves\StochasticNormalMultiMoveGenerator.cs" />
    181     <Compile Include="Moves\StochasticPolynomialMultiMoveGenerator.cs" />
    182     <Compile Include="RealVector.cs" />
    183     <Compile Include="Manipulators\BreederGeneticAlgorithmManipulator.cs" />
    184     <Compile Include="Manipulators\PolynomialAllPositionManipulator.cs" />
    185     <Compile Include="Manipulators\MichalewiczNonUniformAllPositionsManipulator.cs">
    186       <SubType>Code</SubType>
    187     </Compile>
    188     <Compile Include="Manipulators\MichalewiczNonUniformOnePositionManipulator.cs" />
    189     <Compile Include="Manipulators\PolynomialOnePositionManipulator.cs" />
    190     <Compile Include="Manipulators\UniformOnePositionManipulator.cs" />
    191     <Compile Include="ReflectiveBoundsChecker.cs" />
    192     <Compile Include="ShakingOperators\RealVectorShakingOperator.cs" />
    193     <Compile Include="SimilarityCalculators\EuclideanSimilarityCalculator.cs" />
    194     <Compile Include="SimilarityCalculators\HammingSimilarityCalculator.cs" />
    195     <Compile Include="StrategyParameters\StdDevStrategyVectorCreator.cs" />
    196     <Compile Include="StrategyParameters\StdDevStrategyVectorCrossover.cs" />
    197     <Compile Include="StrategyParameters\StdDevStrategyVectorManipulator.cs" />
    198     <None Include="HeuristicLab.snk" />
    199     <None Include="Plugin.cs.frame" />
    200     <None Include="Properties\AssemblyInfo.cs.frame" />
    201   </ItemGroup>
    202   <ItemGroup>
    203     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    204       <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>
    205       <Name>HeuristicLab.Collections-3.3</Name>
    206       <Private>False</Private>
    207     </ProjectReference>
    208     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    209       <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    210       <Name>HeuristicLab.Common-3.3</Name>
    211       <Private>False</Private>
    212     </ProjectReference>
    213     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    214       <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
    215       <Name>HeuristicLab.Core-3.3</Name>
    216       <Private>False</Private>
    217     </ProjectReference>
    218     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    219       <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>
    220       <Name>HeuristicLab.Data-3.3</Name>
    221       <Private>False</Private>
    222     </ProjectReference>
    223     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    224       <Project>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</Project>
    225       <Name>HeuristicLab.Operators-3.3</Name>
    226       <Private>False</Private>
    227     </ProjectReference>
    228     <ProjectReference Include="..\..\HeuristicLab.Optimization.Operators\3.3\HeuristicLab.Optimization.Operators-3.3.csproj">
    229       <Project>{25087811-F74C-4128-BC86-8324271DA13E}</Project>
    230       <Name>HeuristicLab.Optimization.Operators-3.3</Name>
    231       <Private>False</Private>
    232     </ProjectReference>
    233     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    234       <Project>{14AB8D24-25BC-400C-A846-4627AA945192}</Project>
    235       <Name>HeuristicLab.Optimization-3.3</Name>
    236       <Private>False</Private>
    237     </ProjectReference>
    238     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    239       <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>
    240       <Name>HeuristicLab.Parameters-3.3</Name>
    241       <Private>False</Private>
    242     </ProjectReference>
    243     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    244       <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    245       <Name>HeuristicLab.Persistence-3.3</Name>
    246       <Private>False</Private>
    247     </ProjectReference>
    248     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    249       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    250       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    251       <Private>False</Private>
    252     </ProjectReference>
    253     <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj">
    254       <Project>{F4539FB6-4708-40C9-BE64-0A1390AEA197}</Project>
    255       <Name>HeuristicLab.Random-3.3</Name>
    256       <Private>False</Private>
    257     </ProjectReference>
    258   </ItemGroup>
    259   <ItemGroup>
    260     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    261       <Visible>False</Visible>
    262       <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    263       <Install>false</Install>
    264     </BootstrapperPackage>
    265     <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    266       <Visible>False</Visible>
    267       <ProductName>.NET Framework 3.5 SP1</ProductName>
    268       <Install>true</Install>
    269     </BootstrapperPackage>
    270     <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    271       <Visible>False</Visible>
    272       <ProductName>Windows Installer 3.1</ProductName>
    273       <Install>true</Install>
    274     </BootstrapperPackage>
    275   </ItemGroup>
    276   <ItemGroup />
    277   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    278   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    279        Other similar extension points exist, see Microsoft.Common.targets.
    280   <Target Name="BeforeBuild">
     30  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     31    <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" />
    28132  </Target>
    282   <Target Name="AfterBuild">
    283   </Target>
    284   -->
    285   <PropertyGroup>
    286     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    287 set ProjectDir=$(ProjectDir)
    288 set SolutionDir=$(SolutionDir)
    289 set Outdir=$(Outdir)
    290 
    291 call PreBuildEvent.cmd
    292 </PreBuildEvent>
    293     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    294 export ProjectDir=$(ProjectDir)
    295 export SolutionDir=$(SolutionDir)
    296 
    297 $SolutionDir/PreBuildEvent.sh
    298 </PreBuildEvent>
     33  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     34    <OutputPath>..\..\bin\</OutputPath>
     35    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    29936  </PropertyGroup>
    30037</Project>
Note: See TracChangeset for help on using the changeset viewer.