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

    r11650 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>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Persistence</RootNamespace>
    12     <AssemblyName>HeuristicLab.Persistence-3.3</AssemblyName>
    13     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    14     <TargetFrameworkProfile>
    15     </TargetFrameworkProfile>
    16     <FileAlignment>512</FileAlignment>
    17     <StartupObject>
    18     </StartupObject>
     4    <TargetFramework>netstandard2.0</TargetFramework>
     5    <Copyright>(c) 2002-2018 HEAL</Copyright>
     6    <Product>HeuristicLab</Product>
    197    <SignAssembly>true</SignAssembly>
    208    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    21     <FileUpgradeFlags>
    22     </FileUpgradeFlags>
    23     <OldToolsVersion>3.5</OldToolsVersion>
    24     <UpgradeBackupLocation />
    25     <PublishUrl>publish\</PublishUrl>
    26     <Install>true</Install>
    27     <InstallFrom>Disk</InstallFrom>
    28     <UpdateEnabled>false</UpdateEnabled>
    29     <UpdateMode>Foreground</UpdateMode>
    30     <UpdateInterval>7</UpdateInterval>
    31     <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    32     <UpdatePeriodically>false</UpdatePeriodically>
    33     <UpdateRequired>false</UpdateRequired>
    34     <MapFileExtensions>true</MapFileExtensions>
    35     <ApplicationRevision>0</ApplicationRevision>
    36     <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    37     <IsWebBootstrapper>false</IsWebBootstrapper>
    38     <UseApplicationTrust>false</UseApplicationTrust>
    39     <BootstrapperEnabled>true</BootstrapperEnabled>
     9    <AssemblyVersion>3.3.0.0</AssemblyVersion>
     10    <AssemblyFileVersion>3.3.15.0</AssemblyFileVersion>
     11    <RootNamespace>HeuristicLab.Persistence</RootNamespace>
    4012  </PropertyGroup>
    41   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    42     <DebugSymbols>true</DebugSymbols>
    43     <DebugType>full</DebugType>
    44     <Optimize>false</Optimize>
    45     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    46     <DefineConstants>TRACE;DEBUG</DefineConstants>
    47     <ErrorReport>prompt</ErrorReport>
    48     <WarningLevel>4</WarningLevel>
    49     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    50     <Prefer32Bit>false</Prefer32Bit>
    51   </PropertyGroup>
    52   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    53     <DebugType>pdbonly</DebugType>
    54     <Optimize>true</Optimize>
    55     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    56     <DefineConstants>TRACE</DefineConstants>
    57     <ErrorReport>prompt</ErrorReport>
    58     <WarningLevel>4</WarningLevel>
    59     <DocumentationFile>
    60     </DocumentationFile>
    61     <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    62     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    63     <Prefer32Bit>false</Prefer32Bit>
    64   </PropertyGroup>
    65   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    66     <DebugSymbols>true</DebugSymbols>
    67     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    68     <DefineConstants>TRACE;DEBUG</DefineConstants>
    69     <DebugType>full</DebugType>
    70     <PlatformTarget>x64</PlatformTarget>
    71     <ErrorReport>prompt</ErrorReport>
    72     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    73     <Prefer32Bit>false</Prefer32Bit>
    74   </PropertyGroup>
    75   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    76     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    77     <DefineConstants>TRACE</DefineConstants>
    78     <Optimize>true</Optimize>
    79     <DebugType>pdbonly</DebugType>
    80     <PlatformTarget>x64</PlatformTarget>
    81     <ErrorReport>prompt</ErrorReport>
    82     <DocumentationFile>
    83     </DocumentationFile>
    84     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    85     <Prefer32Bit>false</Prefer32Bit>
    86   </PropertyGroup>
    87   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    88     <DebugSymbols>true</DebugSymbols>
    89     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    90     <DefineConstants>TRACE;DEBUG</DefineConstants>
    91     <DebugType>full</DebugType>
    92     <PlatformTarget>x86</PlatformTarget>
    93     <ErrorReport>prompt</ErrorReport>
    94     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    95     <Prefer32Bit>false</Prefer32Bit>
    96   </PropertyGroup>
    97   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    98     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    99     <DefineConstants>TRACE</DefineConstants>
    100     <Optimize>true</Optimize>
    101     <DebugType>pdbonly</DebugType>
    102     <PlatformTarget>x86</PlatformTarget>
    103     <ErrorReport>prompt</ErrorReport>
    104     <DocumentationFile>
    105     </DocumentationFile>
    106     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    107     <Prefer32Bit>false</Prefer32Bit>
    108   </PropertyGroup>
    109   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    110   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    111        Other similar extension points exist, see Microsoft.Common.targets.
    112   <Target Name="BeforeBuild">
    113   </Target>
    114   <Target Name="AfterBuild">
    115   </Target>
    116   -->
    11713  <ItemGroup>
    118     <Reference Include="System" />
    119     <Reference Include="System.configuration" />
    120     <Reference Include="System.Core">
    121       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    122     </Reference>
    123     <Reference Include="System.Data" />
    124     <Reference Include="System.Drawing" />
    125     <Reference Include="System.IO.Compression" />
    126     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.3.0" />
     16    <PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.3.0" />
    12717  </ItemGroup>
    12818  <ItemGroup>
    129     <Compile Include="Auxiliary\ObjectEqualityComparer.cs" />
    130     <Compile Include="Auxiliary\StringExtensions.cs" />
    131     <Compile Include="Auxiliary\TypeLoader.cs" />
    132     <Compile Include="Auxiliary\TypeNameParser.cs" />
    133     <Compile Include="Auxiliary\ReflectionTools.cs" />
    134     <None Include="Plugin.cs.frame" />
    135     <Compile Include="Core\Configuration.cs" />
    136     <Compile Include="Core\PersistenceException.cs" />
    137     <Compile Include="Core\PrimitiveSerializerBase.cs" />
    138     <Compile Include="Core\FormatBase.cs" />
    139     <Compile Include="Auxiliary\TypeExtensions.cs" />
    140     <Compile Include="Core\Tokens\TypeToken.cs" />
    141     <Compile Include="Core\TypeMapping.cs" />
    142     <Compile Include="Auxiliary\TypeName.cs" />
    143     <Compile Include="Core\GeneratorBase.cs" />
    144     <Compile Include="Default\CompositeSerializers\ArraySerializer.cs" />
    145     <Compile Include="Default\CompositeSerializers\CompactNumberArray2StringSerializer.cs" />
    146     <Compile Include="Default\CompositeSerializers\ConcreteDictionarySerializer.cs" />
    147     <Compile Include="Default\CompositeSerializers\QueueSerializer.cs" />
    148     <Compile Include="Default\CompositeSerializers\TupleSerializer.cs" />
    149     <Compile Include="Default\CompositeSerializers\HashSetSerializer.cs" />
    150     <Compile Include="Default\CompositeSerializers\DictionarySerializer.cs" />
    151     <Compile Include="Default\CompositeSerializers\EnumerableSerializer.cs" />
    152     <Compile Include="Default\CompositeSerializers\EnumSerializer.cs" />
    153     <Compile Include="Default\CompositeSerializers\KeyValuePairSerializer.cs" />
    154     <Compile Include="Default\CompositeSerializers\Number2StringSerializer.cs" />
    155     <Compile Include="Default\CompositeSerializers\NumberEnumerable2StringSerializer.cs" />
    156     <Compile Include="Default\CompositeSerializers\StackSerializer.cs" />
    157     <Compile Include="Default\CompositeSerializers\Storable\StorableReflection.cs" />
    158     <Compile Include="Default\CompositeSerializers\Storable\StorableMemberInfo.cs" />
    159     <Compile Include="Default\CompositeSerializers\Storable\StorableClassType.cs" />
    160     <Compile Include="Core\DataMemberAccessor.cs" />
    161     <Compile Include="Default\CompositeSerializers\Storable\StorableClassAttribute.cs" />
    162     <Compile Include="Default\CompositeSerializers\Storable\StorableAttribute.cs" />
    163     <Compile Include="Default\CompositeSerializers\Storable\StorableConstructorAttribute.cs" />
    164     <Compile Include="Default\CompositeSerializers\Storable\StorableHookAttribute.cs" />
    165     <Compile Include="Default\CompositeSerializers\Storable\StorableSerializer.cs" />
    166     <Compile Include="Default\CompositeSerializers\StructSerializer.cs" />
    167     <Compile Include="Default\CompositeSerializers\TypeSerializer.cs" />
    168     <Compile Include="Default\DebugString\DebugString.cs" />
    169     <Compile Include="Default\DebugString\DebugStringFormat.cs" />
    170     <Compile Include="Default\DebugString\DebugStringGenerator.cs" />
    171     <Compile Include="Default\DebugString\PrimitiveSerializers\Bool2DebugStringSerializer.cs" />
    172     <Compile Include="Default\DebugString\PrimitiveSerializers\Byte2DebugStringSerializer.cs" />
    173     <Compile Include="Default\DebugString\PrimitiveSerializers\Char2DebugStringSerializer.cs" />
    174     <Compile Include="Default\DebugString\PrimitiveSerializers\DateTime2DebugStringSerializer.cs" />
    175     <Compile Include="Default\DebugString\PrimitiveSerializers\Double2DebugStringSerializer.cs" />
    176     <Compile Include="Default\DebugString\PrimitiveSerializers\Float2DebugStringSerializer.cs" />
    177     <Compile Include="Default\DebugString\PrimitiveSerializers\Int2DebugStringSerializer.cs" />
    178     <Compile Include="Default\DebugString\PrimitiveSerializers\Long2DebugStringSerializer.cs" />
    179     <Compile Include="Default\DebugString\PrimitiveSerializers\SByte2DebugStringSerializer.cs" />
    180     <Compile Include="Default\DebugString\PrimitiveSerializers\Short2DebugStringSerializer.cs" />
    181     <Compile Include="Default\DebugString\PrimitiveSerializers\String2DebugStringSerializer.cs" />
    182     <Compile Include="Default\DebugString\PrimitiveSerializers\Type2DebugStringSerializer.cs" />
    183     <Compile Include="Default\DebugString\PrimitiveSerializers\UInt2DebugStringSerializer.cs" />
    184     <Compile Include="Default\DebugString\PrimitiveSerializers\ULong2DebugStringSerializer.cs" />
    185     <Compile Include="Default\DebugString\PrimitiveSerializers\UShort2DebugStringSerializer.cs" />
    186     <Compile Include="Default\DebugString\PrimitiveSerializers\ValueType2DebugStringSerializerBase.cs" />
    187     <Compile Include="Default\Xml\Compact\ByteArray2XmlSerializer.cs" />
    188     <Compile Include="Default\Xml\Compact\CompactXmlSerializerBase.cs" />
    189     <Compile Include="Default\Xml\Compact\DoubleArray2XmlSerializer.cs" />
    190     <Compile Include="Default\Xml\Compact\DoubleList2XmlSerializer.cs" />
    191     <Compile Include="Default\Xml\Compact\IntArray2XmlSerializer.cs" />
    192     <Compile Include="Default\Xml\Compact\IntList2XmlSerializer.cs" />
    193     <Compile Include="Default\Xml\Compact\NumberArray2XmlSerializerBase.cs" />
    194     <Compile Include="Default\Xml\Compact\NumberEnumeration2XmlSerializerBase.cs" />
    195     <Compile Include="Default\Xml\EasyXmlGenerator.cs" />
    196     <Compile Include="Default\Xml\Primitive\System.Drawing\Bitmap2XmlSerializer.cs" />
    197     <Compile Include="Default\Xml\Primitive\Bool2XmlSerializer.cs" />
    198     <Compile Include="Default\Xml\Primitive\Byte2XmlSerializer.cs" />
    199     <Compile Include="Default\Xml\Primitive\Char2XmlFormatter.cs">
    200       <SubType>Code</SubType>
    201     </Compile>
    202     <Compile Include="Default\Xml\Primitive\DateTime2XmlSerializer.cs" />
    203     <Compile Include="Default\Xml\Primitive\Decimal2XmlSerializer.cs" />
    204     <Compile Include="Default\Xml\Primitive\Double2XmlSerializer.cs" />
    205     <Compile Include="Default\Xml\Primitive\Float2XmlSerializer.cs" />
    206     <Compile Include="Default\Xml\Primitive\Guid2XmlSerializer.cs" />
    207     <Compile Include="Default\Xml\Primitive\Int2XmlSerializer.cs" />
    208     <Compile Include="Default\Xml\Primitive\Long2XmlSerializer.cs" />
    209     <Compile Include="Default\Xml\Primitive\PrimitiveXmlSerializerBase.cs" />
    210     <Compile Include="Default\Xml\Primitive\SByte2XmlSerializer.cs" />
    211     <Compile Include="Default\Xml\Primitive\Short2XmlSerializer.cs" />
    212     <Compile Include="Default\Xml\Primitive\SimpleNumber2XmlSerializerBase.cs" />
    213     <Compile Include="Default\Xml\Primitive\String2XmlSerializer.cs" />
    214     <Compile Include="Default\Xml\Primitive\System.Drawing\Font2XmlSerializer.cs" />
    215     <Compile Include="Default\Xml\Primitive\TimeSpan2XmlSerializer.cs" />
    216     <Compile Include="Default\Xml\Primitive\UInt2XmlSerializer.cs" />
    217     <Compile Include="Default\Xml\Primitive\ULong2XmlSerializer.cs" />
    218     <Compile Include="Default\Xml\Primitive\UShort2XmlSerializer.cs" />
    219     <Compile Include="Default\Xml\XmlSerializerBase.cs" />
    220     <Compile Include="Default\Xml\XmlStringConstants.cs" />
    221     <Compile Include="Default\Xml\XmlString.cs" />
    222     <Compile Include="Default\Xml\XmlFormat.cs" />
    223     <Compile Include="Core\Deserializer.cs" />
    224     <Compile Include="Core\Tag.cs" />
    225     <Compile Include="Interfaces\ICompositeSerializer.cs" />
    226     <Compile Include="Interfaces\IPrimitiveSerializer.cs" />
    227     <Compile Include="Interfaces\ISerialData.cs" />
    228     <Compile Include="Interfaces\IFormat.cs" />
    229     <Compile Include="Core\ConfigurationService.cs" />
    230     <Compile Include="Core\Tokens\MetaInfoBeginToken.cs" />
    231     <Compile Include="Core\Tokens\MetaInfoEndToken.cs" />
    232     <Compile Include="Interfaces\ISerializationToken.cs" />
    233     <Compile Include="Core\Tokens\SerializationTokenBase.cs" />
    234     <Compile Include="Core\Tokens\CompositeTokenBase.cs" />
    235     <Compile Include="Core\Tokens\BeginToken.cs" />
    236     <Compile Include="Core\Tokens\EndToken.cs" />
    237     <Compile Include="Core\Tokens\PrimitiveToken.cs" />
    238     <Compile Include="Core\Tokens\ReferenceToken.cs" />
    239     <Compile Include="Core\Tokens\NullReferenceToken.cs" />
    240     <Compile Include="Plugin.cs" />
    241     <Compile Include="Properties\AssemblyInfo.cs" />
    242     <Compile Include="Core\Serializer.cs" />
    243     <Compile Include="Properties\Settings.Designer.cs">
    244       <AutoGen>True</AutoGen>
    245       <DesignTimeSharedInput>True</DesignTimeSharedInput>
    246       <DependentUpon>Settings.settings</DependentUpon>
    247     </Compile>
    248     <Compile Include="Default\Xml\XmlGenerator.cs" />
    249     <Compile Include="Default\Xml\XmlParser.cs" />
     19    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     20    <ProjectReference Include="..\..\HeuristicLab.Tracing\3.3\HeuristicLab.Tracing-3.3.csproj" />
    25021  </ItemGroup>
    251   <PropertyGroup>
    252     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    253 set ProjectDir=$(ProjectDir)
    254 set SolutionDir=$(SolutionDir)
    255 set Outdir=$(Outdir)
    256 
    257 call PreBuildEvent.cmd
    258 </PreBuildEvent>
    259     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    260 export ProjectDir=$(ProjectDir)
    261 export SolutionDir=$(SolutionDir)
    262 
    263 $SolutionDir/PreBuildEvent.sh
    264 </PreBuildEvent>
    265     <PostBuildEvent>
    266     </PostBuildEvent>
     22  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     23    <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" />
     24  </Target>
     25  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     26    <OutputPath>..\..\bin\</OutputPath>
     27    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    26728  </PropertyGroup>
    268   <ItemGroup>
    269     <None Include="app.config" />
    270     <None Include="HeuristicLab.snk" />
    271     <None Include="Properties\AssemblyInfo.cs.frame" />
    272     <None Include="Properties\Settings.settings">
    273       <Generator>SettingsSingleFileGenerator</Generator>
    274       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
    275     </None>
    276   </ItemGroup>
    277   <ItemGroup>
    278     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    279       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    280       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    281       <Private>False</Private>
    282     </ProjectReference>
    283     <ProjectReference Include="..\..\HeuristicLab.Tracing\3.3\HeuristicLab.Tracing-3.3.csproj">
    284       <Project>{EE2034D9-6E27-48A1-B855-42D45F69A4FC}</Project>
    285       <Name>HeuristicLab.Tracing-3.3</Name>
    286       <Private>False</Private>
    287     </ProjectReference>
    288   </ItemGroup>
    289   <ItemGroup>
    290     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    291       <Visible>False</Visible>
    292       <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    293       <Install>false</Install>
    294     </BootstrapperPackage>
    295     <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    296       <Visible>False</Visible>
    297       <ProductName>.NET Framework 3.5 SP1</ProductName>
    298       <Install>true</Install>
    299     </BootstrapperPackage>
    300     <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    301       <Visible>False</Visible>
    302       <ProductName>Windows Installer 3.1</ProductName>
    303       <Install>true</Install>
    304     </BootstrapperPackage>
    305   </ItemGroup>
    30629</Project>
Note: See TracChangeset for help on using the changeset viewer.