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

    r11623 r16143  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
     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>{23DA7FF4-D5B8-41B6-AA96-F0561D24F3EE}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Operators</RootNamespace>
    12     <AssemblyName>HeuristicLab.Operators-3.3</AssemblyName>
     4    <TargetFramework>netstandard2.0</TargetFramework>
     5    <Copyright>(c) 2002-2018 HEAL</Copyright>
     6    <Product>HeuristicLab</Product>
    137    <SignAssembly>true</SignAssembly>
    148    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    15     <FileUpgradeFlags>
    16     </FileUpgradeFlags>
    17     <OldToolsVersion>3.5</OldToolsVersion>
    18     <UpgradeBackupLocation>
    19     </UpgradeBackupLocation>
    20     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    21     <TargetFrameworkProfile>
    22     </TargetFrameworkProfile>
    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     <DocumentationFile>
    48     </DocumentationFile>
    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|x86' ">
    66     <DebugSymbols>true</DebugSymbols>
    67     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    68     <DefineConstants>DEBUG;TRACE</DefineConstants>
    69     <DebugType>full</DebugType>
    70     <PlatformTarget>x86</PlatformTarget>
    71     <ErrorReport>prompt</ErrorReport>
    72     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    73     <Prefer32Bit>false</Prefer32Bit>
    74   </PropertyGroup>
    75   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    76     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    77     <DefineConstants>TRACE</DefineConstants>
    78     <DocumentationFile>
    79     </DocumentationFile>
    80     <Optimize>true</Optimize>
    81     <DebugType>pdbonly</DebugType>
    82     <PlatformTarget>x86</PlatformTarget>
    83     <ErrorReport>prompt</ErrorReport>
    84     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    85     <Prefer32Bit>false</Prefer32Bit>
    86   </PropertyGroup>
    87   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    88     <DebugSymbols>true</DebugSymbols>
    89     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    90     <DefineConstants>DEBUG;TRACE</DefineConstants>
    91     <DebugType>full</DebugType>
    92     <PlatformTarget>x64</PlatformTarget>
    93     <ErrorReport>prompt</ErrorReport>
    94     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    95     <Prefer32Bit>false</Prefer32Bit>
    96   </PropertyGroup>
    97   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    98     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    99     <DefineConstants>TRACE</DefineConstants>
    100     <DocumentationFile>
    101     </DocumentationFile>
    102     <Optimize>true</Optimize>
    103     <DebugType>pdbonly</DebugType>
    104     <PlatformTarget>x64</PlatformTarget>
    105     <ErrorReport>prompt</ErrorReport>
    106     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    107     <Prefer32Bit>false</Prefer32Bit>
     9    <AssemblyVersion>3.3.0.0</AssemblyVersion>
     10    <AssemblyFileVersion>3.3.15.0</AssemblyFileVersion>
     11    <RootNamespace>HeuristicLab.Operators</RootNamespace>
    10812  </PropertyGroup>
    10913  <ItemGroup>
    110     <Reference Include="System" />
    111     <Reference Include="System.Core">
    112       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    113     </Reference>
    114     <Reference Include="System.Data" />
    115     <Reference Include="System.Drawing" />
    116     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11716  </ItemGroup>
    11817  <ItemGroup>
    119     <Compile Include="CheckedMultiOperator.cs" />
    120     <Compile Include="CombinedOperator.cs" />
    121     <Compile Include="Operator.InstrumentedOperatorWrapper.cs" />
    122     <None Include="Plugin.cs.frame" />
    123     <Compile Include="ConditionalBranch.cs" />
    124     <Compile Include="Comparator.cs" />
    125     <Compile Include="Assigner.cs" />
    126     <Compile Include="AlgorithmOperator.cs" />
    127     <Compile Include="DataReducer.cs" />
    128     <Compile Include="InstrumentedOperator.cs" />
    129     <Compile Include="LocalRandomCreator.cs" />
    130     <Compile Include="MultiOperator.cs" />
    131     <Compile Include="Operator.cs" />
    132     <Compile Include="Placeholder.cs" />
    133     <Compile Include="IntCounter.cs" />
    134     <Compile Include="Plugin.cs" />
    135     <Compile Include="ReductionOperation.cs" />
    136     <Compile Include="ScopeCleaner.cs" />
    137     <Compile Include="StochasticBranch.cs" />
    138     <Compile Include="StochasticMultiBranch.cs">
    139       <SubType>Code</SubType>
    140     </Compile>
    141     <Compile Include="SubScopesCloner.cs" />
    142     <Compile Include="SubScopesCounter.cs" />
    143     <Compile Include="SubScopesCreator.cs" />
    144     <Compile Include="SubScopesMixer.cs" />
    145     <Compile Include="SubScopesProcessor.cs" />
    146     <Compile Include="SubScopesRemover.cs" />
    147     <Compile Include="SubScopesSorter.cs" />
    148     <Compile Include="DoubleCounter.cs" />
    149     <Compile Include="EmptyOperator.cs">
    150       <SubType>Code</SubType>
    151     </Compile>
    152     <Compile Include="Properties\AssemblyInfo.cs" />
    153     <Compile Include="SingleSuccessorOperator.cs" />
    154     <Compile Include="UniformSubScopesProcessor.cs" />
    155     <Compile Include="ValuesCollector.cs" />
    156     <Compile Include="VariableCreator.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.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     24    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
    15726  </ItemGroup>
    158   <ItemGroup>
    159     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    160       <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>
    161       <Name>HeuristicLab.Collections-3.3</Name>
    162       <Private>False</Private>
    163     </ProjectReference>
    164     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    165       <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>
    166       <Name>HeuristicLab.Common.Resources-3.3</Name>
    167       <Private>False</Private>
    168     </ProjectReference>
    169     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    170       <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    171       <Name>HeuristicLab.Common-3.3</Name>
    172       <Private>False</Private>
    173     </ProjectReference>
    174     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    175       <Project>{C36BD924-A541-4A00-AFA8-41701378DDC5}</Project>
    176       <Name>HeuristicLab.Core-3.3</Name>
    177       <Private>False</Private>
    178     </ProjectReference>
    179     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    180       <Project>{BBAB9DF5-5EF3-4BA8-ADE9-B36E82114937}</Project>
    181       <Name>HeuristicLab.Data-3.3</Name>
    182       <Private>False</Private>
    183     </ProjectReference>
    184     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    185       <Project>{56F9106A-079F-4C61-92F6-86A84C2D84B7}</Project>
    186       <Name>HeuristicLab.Parameters-3.3</Name>
    187       <Private>False</Private>
    188     </ProjectReference>
    189     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    190       <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    191       <Name>HeuristicLab.Persistence-3.3</Name>
    192       <Private>False</Private>
    193     </ProjectReference>
    194     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    195       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    196       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    197       <Private>False</Private>
    198     </ProjectReference>
    199   </ItemGroup>
    200   <ItemGroup>
    201     <None Include="HeuristicLab.snk" />
    202     <None Include="Properties\AssemblyInfo.cs.frame" />
    203   </ItemGroup>
    204   <ItemGroup>
    205     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    206       <Visible>False</Visible>
    207       <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    208       <Install>false</Install>
    209     </BootstrapperPackage>
    210     <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    211       <Visible>False</Visible>
    212       <ProductName>.NET Framework 3.5 SP1</ProductName>
    213       <Install>true</Install>
    214     </BootstrapperPackage>
    215     <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    216       <Visible>False</Visible>
    217       <ProductName>Windows Installer 3.1</ProductName>
    218       <Install>true</Install>
    219     </BootstrapperPackage>
    220   </ItemGroup>
    221   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    222   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    223        Other similar extension points exist, see Microsoft.Common.targets.
    224   <Target Name="BeforeBuild">
     27  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     28    <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" />
    22529  </Target>
    226   <Target Name="AfterBuild">
    227   </Target>
    228   -->
    229   <PropertyGroup>
    230     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    231 set ProjectDir=$(ProjectDir)
    232 set SolutionDir=$(SolutionDir)
    233 set Outdir=$(Outdir)
    234 
    235 call PreBuildEvent.cmd
    236 </PreBuildEvent>
    237     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    238 export ProjectDir=$(ProjectDir)
    239 export SolutionDir=$(SolutionDir)
    240 
    241 $SolutionDir/PreBuildEvent.sh
    242 </PreBuildEvent>
     30  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     31    <OutputPath>..\..\bin\</OutputPath>
     32    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    24333  </PropertyGroup>
    24434</Project>
Note: See TracChangeset for help on using the changeset viewer.