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.Tracing/3.3/HeuristicLab.Tracing-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>9.0.30729</ProductVersion>
    7     <SchemaVersion>2.0</SchemaVersion>
    8     <ProjectGuid>{EE2034D9-6E27-48A1-B855-42D45F69A4FC}</ProjectGuid>
    9     <OutputType>Library</OutputType>
    10     <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Tracing</RootNamespace>
    12     <AssemblyName>HeuristicLab.Tracing-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|x64' ">
    63     <DebugSymbols>true</DebugSymbols>
    64     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    65     <DefineConstants>DEBUG;TRACE</DefineConstants>
    66     <DebugType>full</DebugType>
    67     <PlatformTarget>x64</PlatformTarget>
    68     <ErrorReport>prompt</ErrorReport>
    69     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    70     <Prefer32Bit>false</Prefer32Bit>
    71   </PropertyGroup>
    72   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    73     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    74     <DefineConstants>TRACE</DefineConstants>
    75     <Optimize>true</Optimize>
    76     <DebugType>pdbonly</DebugType>
    77     <PlatformTarget>x64</PlatformTarget>
    78     <ErrorReport>prompt</ErrorReport>
    79     <DocumentationFile>
    80     </DocumentationFile>
    81     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    82     <Prefer32Bit>false</Prefer32Bit>
    83   </PropertyGroup>
    84   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    85     <DebugSymbols>true</DebugSymbols>
    86     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    87     <DefineConstants>DEBUG;TRACE</DefineConstants>
    88     <DebugType>full</DebugType>
    89     <PlatformTarget>x86</PlatformTarget>
    90     <ErrorReport>prompt</ErrorReport>
    91     <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    92     <Prefer32Bit>false</Prefer32Bit>
    93   </PropertyGroup>
    94   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    95     <OutputPath>$(SolutionDir)\bin\</OutputPath>
    96     <DefineConstants>TRACE</DefineConstants>
    97     <Optimize>true</Optimize>
    98     <DebugType>pdbonly</DebugType>
    99     <PlatformTarget>x86</PlatformTarget>
    100     <ErrorReport>prompt</ErrorReport>
    101     <DocumentationFile>
    102     </DocumentationFile>
    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.Tracing</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.Xml.Linq">
    112       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    113     </Reference>
    114     <Reference Include="System.Data.DataSetExtensions">
    115       <RequiredTargetFramework>3.5</RequiredTargetFramework>
    116     </Reference>
    117     <Reference Include="System.Data" />
    118     <Reference Include="System.Xml" />
     14    <PackageReference Include="Microsoft.Windows.Compatibility" Version="2.0.1" />
     15    <PackageReference Include="System.Drawing.Common" Version="4.5.0" />
    11916  </ItemGroup>
    12017  <ItemGroup>
    121     <None Include="Plugin.cs.frame" />
    122     <Compile Include="Logger.cs" />
    123     <Compile Include="Plugin.cs" />
    124     <Compile Include="Properties\AssemblyInfo.cs" />
     18    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj" />
    12519  </ItemGroup>
    126   <ItemGroup>
    127     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    128       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    129       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    130       <Private>False</Private>
    131     </ProjectReference>
    132   </ItemGroup>
    133   <ItemGroup>
    134     <None Include="app.config" />
    135     <None Include="HeuristicLab.snk" />
    136     <None Include="Properties\AssemblyInfo.cs.frame" />
    137   </ItemGroup>
    138   <ItemGroup>
    139     <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    140       <Visible>False</Visible>
    141       <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
    142       <Install>false</Install>
    143     </BootstrapperPackage>
    144     <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
    145       <Visible>False</Visible>
    146       <ProductName>.NET Framework 3.5 SP1</ProductName>
    147       <Install>true</Install>
    148     </BootstrapperPackage>
    149     <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
    150       <Visible>False</Visible>
    151       <ProductName>Windows Installer 3.1</ProductName>
    152       <Install>true</Install>
    153     </BootstrapperPackage>
    154   </ItemGroup>
    155   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    156   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    157        Other similar extension points exist, see Microsoft.Common.targets.
    158   <Target Name="BeforeBuild">
     20  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
     21    <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" />
    15922  </Target>
    160   <Target Name="AfterBuild">
    161   </Target>
    162   -->
    163   <PropertyGroup>
    164     <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
    165 set ProjectDir=$(ProjectDir)
    166 set SolutionDir=$(SolutionDir)
    167 set Outdir=$(Outdir)
    168 
    169 call PreBuildEvent.cmd
    170 </PreBuildEvent>
    171     <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
    172 export ProjectDir=$(ProjectDir)
    173 export SolutionDir=$(SolutionDir)
    174 
    175 $SolutionDir/PreBuildEvent.sh
    176 </PreBuildEvent>
     23  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     24    <OutputPath>..\..\bin\</OutputPath>
     25    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
    17726  </PropertyGroup>
    17827</Project>
Note: See TracChangeset for help on using the changeset viewer.