diff --git a/VectoCommon/VectoCommon/VectoCommon.csproj b/VectoCommon/VectoCommon/VectoCommon.csproj index befd118a2b93226e9bda8376dfee89ef49543e88..d21e7f7b72fbcb428825f92bfeae3b10fed1f348 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 9e3c0a8817a5fa6806553ccebac0c959fd12abe7..0b6168dcae3466579706d013c8c26de5cbfa4dd0 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>