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
Location:
branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Programmable/3.3
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2522_RefactorPluginInfrastructure/HeuristicLab.Problems.Programmable/3.3/HeuristicLab.Problems.Programmable-3.3.csproj

    r15973 r16143  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    3   <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
     2<Project Sdk="Microsoft.NET.Sdk">
    43  <PropertyGroup>
    5     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    6     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    7     <ProjectGuid>{EE07BFF8-B23D-41F5-8AD7-AC9598D7A2C9}</ProjectGuid>
    8     <OutputType>Library</OutputType>
    9     <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>
    1011    <RootNamespace>HeuristicLab.Problems.Programmable</RootNamespace>
    11     <AssemblyName>HeuristicLab.Problems.Programmable-3.3</AssemblyName>
    12     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    13     <FileAlignment>512</FileAlignment>
    14     <TargetFrameworkProfile />
    15   </PropertyGroup>
    16   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    17     <DebugSymbols>true</DebugSymbols>
    18     <DebugType>full</DebugType>
    19     <Optimize>false</Optimize>
    20     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    21     <DefineConstants>DEBUG;TRACE</DefineConstants>
    22     <ErrorReport>prompt</ErrorReport>
    23     <WarningLevel>4</WarningLevel>
    24     <Prefer32Bit>false</Prefer32Bit>
    25   </PropertyGroup>
    26   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    27     <DebugType>pdbonly</DebugType>
    28     <Optimize>true</Optimize>
    29     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    30     <DefineConstants>TRACE</DefineConstants>
    31     <ErrorReport>prompt</ErrorReport>
    32     <WarningLevel>4</WarningLevel>
    33     <Prefer32Bit>false</Prefer32Bit>
    34   </PropertyGroup>
    35   <PropertyGroup>
    36     <SignAssembly>true</SignAssembly>
    37   </PropertyGroup>
    38   <PropertyGroup>
    39     <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    40   </PropertyGroup>
    41   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    42     <DebugSymbols>true</DebugSymbols>
    43     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    44     <DefineConstants>DEBUG;TRACE</DefineConstants>
    45     <DebugType>full</DebugType>
    46     <PlatformTarget>x64</PlatformTarget>
    47     <ErrorReport>prompt</ErrorReport>
    48     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    49   </PropertyGroup>
    50   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    51     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    52     <DefineConstants>TRACE</DefineConstants>
    53     <Optimize>true</Optimize>
    54     <DebugType>pdbonly</DebugType>
    55     <PlatformTarget>x64</PlatformTarget>
    56     <ErrorReport>prompt</ErrorReport>
    57     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    58   </PropertyGroup>
    59   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    60     <DebugSymbols>true</DebugSymbols>
    61     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    62     <DefineConstants>DEBUG;TRACE</DefineConstants>
    63     <DebugType>full</DebugType>
    64     <PlatformTarget>x86</PlatformTarget>
    65     <ErrorReport>prompt</ErrorReport>
    66     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    67   </PropertyGroup>
    68   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    69     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    70     <DefineConstants>TRACE</DefineConstants>
    71     <Optimize>true</Optimize>
    72     <DebugType>pdbonly</DebugType>
    73     <PlatformTarget>x86</PlatformTarget>
    74     <ErrorReport>prompt</ErrorReport>
    75     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    7612  </PropertyGroup>
    7713  <ItemGroup>
    78     <Reference Include="System" />
    79     <Reference Include="System.Core" />
    80     <Reference Include="System.Drawing" />
    81     <Reference Include="System.Xml.Linq" />
    82     <Reference Include="System.Data.DataSetExtensions" />
    83     <Reference Include="Microsoft.CSharp" />
    84     <Reference Include="System.Data" />
    85     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    8616  </ItemGroup>
    8717  <ItemGroup>
    88     <Compile Include="MultiObjectiveProgrammableProblem.cs" />
    89     <Compile Include="ProblemDefinitionScriptException.cs" />
    90     <Compile Include="Templates\CompiledMultiObjectiveProblemDefinition.cs" />
    91     <Compile Include="Templates\CompiledSingleObjectiveProblemDefinition.cs" />
    92     <Compile Include="Templates\ScriptTemplates.Designer.cs">
    93       <AutoGen>True</AutoGen>
    94       <DesignTime>True</DesignTime>
    95       <DependentUpon>ScriptTemplates.resx</DependentUpon>
    96     </Compile>
    97     <Compile Include="CompiledProblemDefinition.cs" />
    98     <Compile Include="ProblemDefinitionScript.cs" />
    99     <Compile Include="SingleObjectiveProgrammableProblem.cs" />
    100     <Compile Include="MultiObjectiveProblemDefinitionScript.cs" />
    101     <Compile Include="SingleObjectiveProblemDefinitionScript.cs" />
    102     <EmbeddedResource Include="Templates\ScriptTemplates.resx">
    103       <Generator>ResXFileCodeGenerator</Generator>
    104       <LastGenOutput>ScriptTemplates.Designer.cs</LastGenOutput>
    105     </EmbeddedResource>
    106     <None Include="HeuristicLab.snk" />
    107     <None Include="Plugin.cs.frame" />
    108     <Compile Include="Plugin.cs" />
    109     <None Include="Properties\AssemblyInfo.cs.frame" />
    110     <Compile Include="Properties\AssemblyInfo.cs" />
     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.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj" />
     25    <ProjectReference Include="..\..\HeuristicLab.Encodings.IntegerVectorEncoding\3.3\HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj" />
     26    <ProjectReference Include="..\..\HeuristicLab.Encodings.LinearLinkageEncoding\3.4\HeuristicLab.Encodings.LinearLinkageEncoding-3.4.csproj" />
     27    <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj" />
     28    <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj" />
     29    <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj" />
     30    <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj" />
     31    <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj" />
     32    <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj" />
     33    <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj" />
     34    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
     35    <ProjectReference Include="..\..\HeuristicLab.Scripting\3.3\HeuristicLab.Scripting-3.3.csproj" />
    11136  </ItemGroup>
    11237  <ItemGroup>
    113     <ProjectReference Include="..\..\HeuristicLab.Analysis\3.3\HeuristicLab.Analysis-3.3.csproj">
    114       <Project>{887425b4-4348-49ed-a457-b7d2c26ddbf9}</Project>
    115       <Name>HeuristicLab.Analysis-3.3</Name>
    116       <Private>False</Private>
    117     </ProjectReference>
    118     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    119       <Project>{958b43bc-cc5c-4fa2-8628-2b3b01d890b6}</Project>
    120       <Name>HeuristicLab.Collections-3.3</Name>
    121       <Private>False</Private>
    122     </ProjectReference>
    123     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    124       <Project>{0e27a536-1c4a-4624-a65e-dc4f4f23e3e1}</Project>
    125       <Name>HeuristicLab.Common.Resources-3.3</Name>
    126       <Private>False</Private>
    127     </ProjectReference>
    128     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    129       <Project>{a9ad58b9-3ef9-4cc1-97e5-8d909039ff5c}</Project>
    130       <Name>HeuristicLab.Common-3.3</Name>
    131       <Private>False</Private>
    132     </ProjectReference>
    133     <ProjectReference Include="..\..\HeuristicLab.Core\3.3\HeuristicLab.Core-3.3.csproj">
    134       <Project>{c36bd924-a541-4a00-afa8-41701378ddc5}</Project>
    135       <Name>HeuristicLab.Core-3.3</Name>
    136       <Private>False</Private>
    137     </ProjectReference>
    138     <ProjectReference Include="..\..\HeuristicLab.Data\3.3\HeuristicLab.Data-3.3.csproj">
    139       <Project>{bbab9df5-5ef3-4ba8-ade9-b36e82114937}</Project>
    140       <Name>HeuristicLab.Data-3.3</Name>
    141       <Private>False</Private>
    142     </ProjectReference>
    143     <ProjectReference Include="..\..\HeuristicLab.Encodings.BinaryVectorEncoding\3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.csproj">
    144       <Project>{66d249c3-a01d-42a8-82a2-919bc8ec3d83}</Project>
    145       <Name>HeuristicLab.Encodings.BinaryVectorEncoding-3.3</Name>
    146     </ProjectReference>
    147     <ProjectReference Include="..\..\HeuristicLab.Encodings.IntegerVectorEncoding\3.3\HeuristicLab.Encodings.IntegerVectorEncoding-3.3.csproj">
    148       <Project>{ddfb14dd-2a85-493c-a52d-e69729bbaeb0}</Project>
    149       <Name>HeuristicLab.Encodings.IntegerVectorEncoding-3.3</Name>
    150     </ProjectReference>
    151     <ProjectReference Include="..\..\HeuristicLab.Encodings.LinearLinkageEncoding\3.4\HeuristicLab.Encodings.LinearLinkageEncoding-3.4.csproj">
    152       <Project>{be698769-975a-429e-828c-72bb2b6182c8}</Project>
    153       <Name>HeuristicLab.Encodings.LinearLinkageEncoding-3.4</Name>
    154       <Private>False</Private>
    155     </ProjectReference>
    156     <ProjectReference Include="..\..\HeuristicLab.Encodings.PermutationEncoding\3.3\HeuristicLab.Encodings.PermutationEncoding-3.3.csproj">
    157       <Project>{dbecb8b0-b166-4133-baf1-ed67c3fd7fca}</Project>
    158       <Name>HeuristicLab.Encodings.PermutationEncoding-3.3</Name>
    159     </ProjectReference>
    160     <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj">
    161       <Project>{bb6d334a-4bb6-4674-9883-31a6ebb32cab}</Project>
    162       <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name>
    163     </ProjectReference>
    164     <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj">
    165       <Project>{06d4a186-9319-48a0-bade-a2058d462eea}</Project>
    166       <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</Name>
    167       <Private>False</Private>
    168     </ProjectReference>
    169     <ProjectReference Include="..\..\HeuristicLab.Operators\3.3\HeuristicLab.Operators-3.3.csproj">
    170       <Project>{23da7ff4-d5b8-41b6-aa96-f0561d24f3ee}</Project>
    171       <Name>HeuristicLab.Operators-3.3</Name>
    172       <Private>False</Private>
    173     </ProjectReference>
    174     <ProjectReference Include="..\..\HeuristicLab.Optimization\3.3\HeuristicLab.Optimization-3.3.csproj">
    175       <Project>{14ab8d24-25bc-400c-a846-4627aa945192}</Project>
    176       <Name>HeuristicLab.Optimization-3.3</Name>
    177       <Private>False</Private>
    178     </ProjectReference>
    179     <ProjectReference Include="..\..\HeuristicLab.Parameters\3.3\HeuristicLab.Parameters-3.3.csproj">
    180       <Project>{56f9106a-079f-4c61-92f6-86a84c2d84b7}</Project>
    181       <Name>HeuristicLab.Parameters-3.3</Name>
    182       <Private>False</Private>
    183     </ProjectReference>
    184     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    185       <Project>{102bc7d3-0ef9-439c-8f6d-96ff0fdb8e1b}</Project>
    186       <Name>HeuristicLab.Persistence-3.3</Name>
    187       <Private>False</Private>
    188     </ProjectReference>
    189     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    190       <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    191       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    192       <Private>False</Private>
    193     </ProjectReference>
    194     <ProjectReference Include="..\..\HeuristicLab.Scripting\3.3\HeuristicLab.Scripting-3.3.csproj">
    195       <Project>{21977cc3-1757-4b3b-87bd-ff817aaa900f}</Project>
    196       <Name>HeuristicLab.Scripting-3.3</Name>
    197       <Private>False</Private>
    198     </ProjectReference>
     38    <Reference Include="Microsoft.CSharp" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
    19939  </ItemGroup>
    200   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    201   <PropertyGroup>
    202     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
    203       set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    204       set ProjectDir=$(ProjectDir)
    205       set SolutionDir=$(SolutionDir)
    206       set Outdir=$(Outdir)
    207 
    208       call PreBuildEvent.cmd
    209     </PreBuildEvent>
    210     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    211       export ProjectDir=$(ProjectDir)
    212       export SolutionDir=$(SolutionDir)
    213 
    214       $SolutionDir/PreBuildEvent.sh
    215     </PreBuildEvent>
     40  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     41    <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" />
     42  </Target>
     43  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     44    <OutputPath>..\..\bin\</OutputPath>
     45    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    21646  </PropertyGroup>
    217   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    218        Other similar extension points exist, see Microsoft.Common.targets.
    219   <Target Name="BeforeBuild">
    220   </Target>
    221   <Target Name="AfterBuild">
    222   </Target>
    223   -->
    22447</Project>
Note: See TracChangeset for help on using the changeset viewer.