From f4de3593abe7549fd435deeb8a9134c7c69ba506 Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Mon, 14 Feb 2022 16:13:45 +0100 Subject: [PATCH] Removed default using from projects --- VectoCommon/VectoCommon/VectoCommon.csproj | 13 +++++++-- VectoCommon/VectoHashing/VectoHashing.csproj | 30 +++++++++++++------- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/VectoCommon/VectoCommon/VectoCommon.csproj b/VectoCommon/VectoCommon/VectoCommon.csproj index befd118a2b..d21e7f7b72 100644 --- a/VectoCommon/VectoCommon/VectoCommon.csproj +++ b/VectoCommon/VectoCommon/VectoCommon.csproj @@ -9,14 +9,21 @@ <AssemblyName>VectoCommon</AssemblyName> <DefineConstants /> <TargetFrameworks>net45;net48;net5.0</TargetFrameworks> + <TargetFramework /> </PropertyGroup> <ItemGroup> <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="NLog" Version="4.7.13" /> - <PackageReference Condition="'$(TargetFramework)'=='net45'" Include="System.ValueTuple" Version="4.5.0" /> - <PackageReference Condition="'$(TargetFramework)'=='net45'" Include="System.ComponentModel.Annotations" Version="5.0.0" /> - <PackageReference Condition="'$(TargetFramework)'=='net48'" Include="System.ComponentModel.Annotations" Version="5.0.0" /> + </ItemGroup> + + <ItemGroup Condition="'$(TargetFramework)'=='net45'"> + <PackageReference Include="System.ValueTuple" Version="4.5.0" /> + <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> + </ItemGroup> + + <ItemGroup Condition="'$(TargetFramework)'=='net48'"> + <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> </ItemGroup> <ItemGroup> diff --git a/VectoCommon/VectoHashing/VectoHashing.csproj b/VectoCommon/VectoHashing/VectoHashing.csproj index 9e3c0a8817..0b6168dcae 100644 --- a/VectoCommon/VectoHashing/VectoHashing.csproj +++ b/VectoCommon/VectoHashing/VectoHashing.csproj @@ -8,19 +8,10 @@ <RootNamespace>TUGraz.VectoHashing</RootNamespace> <AssemblyName>VectoHashing</AssemblyName> <DefineConstants /> + <TargetFrameworks>net45;net48;net5.0</TargetFrameworks> + <TargetFramework /> </PropertyGroup> - <ItemGroup> - <Reference Include="System" /> - <Reference Include="System.Core" /> - <Reference Include="System.Security" /> - <Reference Include="System.Xml.Linq" /> - <Reference Include="System.Data.DataSetExtensions" /> - <Reference Include="Microsoft.CSharp" /> - <Reference Include="System.Data" /> - <Reference Include="System.Xml" /> - </ItemGroup> - <ItemGroup> <ProjectReference Include="..\VectoCommon\VectoCommon.csproj" /> </ItemGroup> @@ -28,4 +19,21 @@ <ItemGroup> <EmbeddedResource Include="Resources\XSLT\SortInputData.xslt" /> </ItemGroup> + + <ItemGroup Condition="'$(TargetFramework)' == 'net45'"> + <Reference Include="System.Security" /> + </ItemGroup> + + + <ItemGroup Condition="'$(TargetFramework)' == 'net48'"> + <PackageReference Include="System.Security.Cryptography.Xml"> + <Version>6.0.0</Version> + </PackageReference> + </ItemGroup> + + <ItemGroup Condition="'$(TargetFramework)' == 'net5.0'"> + <PackageReference Include="System.Security.Cryptography.Xml"> + <Version>6.0.0</Version> + </PackageReference> + </ItemGroup> </Project> -- GitLab