Skip to content

Commit 50929c6

Browse files
committed
rajanadar#353 Optimise dependency management
1 parent 34ab400 commit 50929c6

File tree

1 file changed

+13
-89
lines changed

1 file changed

+13
-89
lines changed

src/VaultSharp/VaultSharp.csproj

+13-89
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This library is built with .NET Standard 2.0, .NET Standard 2.1, 4.6.2, 4.7.2*,
2727
<FileVersion>1.13.0.1</FileVersion>
2828
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
2929
<PackageIcon>icon.png</PackageIcon>
30-
30+
3131
<!-- SourceLink specific details: https://github.com/dotnet/sourcelink/blob/master/README.md -->
3232
<PublishRepositoryUrl>true</PublishRepositoryUrl>
3333
<EmbedUntrackedSources>true</EmbedUntrackedSources>
@@ -56,14 +56,8 @@ This library is built with .NET Standard 2.0, .NET Standard 2.1, 4.6.2, 4.7.2*,
5656
<Compile Remove="Common\**" />
5757
<EmbeddedResource Remove="Common\**" />
5858
<None Remove="Common\**" />
59-
<None Include="..\..\icon.png">
60-
<Pack>True</Pack>
61-
<PackagePath></PackagePath>
62-
</None>
63-
<None Include="..\..\README.md">
64-
<Pack>True</Pack>
65-
<PackagePath>\</PackagePath>
66-
</None>
59+
<None Include="..\..\icon.png" Pack="true" PackagePath="" />
60+
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
6761
</ItemGroup>
6862

6963
<ItemGroup>
@@ -89,115 +83,45 @@ This library is built with .NET Standard 2.0, .NET Standard 2.1, 4.6.2, 4.7.2*,
8983
<AssemblyTitle>VaultSharp .NET Framework 4.7.2</AssemblyTitle>
9084
</PropertyGroup>
9185

92-
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
93-
<PackageReference Include="System.Net.Http.WinHttpHandler">
94-
<Version>5.0.0</Version>
95-
</PackageReference>
96-
<PackageReference Include="System.Text.Json">
97-
<Version>7.0.2</Version>
98-
</PackageReference>
99-
</ItemGroup>
100-
101-
<ItemGroup Condition="'$(TargetFramework)' == 'net47'">
102-
<PackageReference Include="System.Net.Http.WinHttpHandler">
103-
<Version>5.0.0</Version>
104-
</PackageReference>
105-
<PackageReference Include="System.Text.Json">
106-
<Version>7.0.2</Version>
107-
</PackageReference>
108-
</ItemGroup>
109-
110-
<ItemGroup Condition="'$(TargetFramework)' == 'net471'">
111-
<PackageReference Include="System.Net.Http.WinHttpHandler">
112-
<Version>5.0.0</Version>
113-
</PackageReference>
114-
<PackageReference Include="System.Text.Json">
115-
<Version>7.0.2</Version>
116-
</PackageReference>
117-
</ItemGroup>
118-
119-
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
120-
<PackageReference Include="System.Net.Http.WinHttpHandler">
121-
<Version>5.0.0</Version>
122-
</PackageReference>
123-
<PackageReference Include="System.Text.Json">
124-
<Version>7.0.2</Version>
125-
</PackageReference>
126-
</ItemGroup>
127-
12886
<PropertyGroup Condition="'$(TargetFramework)' == 'net48'">
12987
<AssemblyTitle>VaultSharp .NET Framework 4.8</AssemblyTitle>
13088
</PropertyGroup>
13189

132-
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
133-
<PackageReference Include="System.Net.Http.WinHttpHandler">
134-
<Version>5.0.0</Version>
135-
</PackageReference>
136-
<PackageReference Include="System.Text.Json">
137-
<Version>7.0.2</Version>
138-
</PackageReference>
139-
</ItemGroup>
140-
14190
<PropertyGroup Condition="'$(TargetFramework)' == 'net481'">
14291
<AssemblyTitle>VaultSharp .NET Framework 4.8.1</AssemblyTitle>
14392
</PropertyGroup>
14493

145-
<ItemGroup Condition="'$(TargetFramework)' == 'net481'">
146-
<PackageReference Include="System.Net.Http.WinHttpHandler">
147-
<Version>5.0.0</Version>
148-
</PackageReference>
149-
<PackageReference Include="System.Text.Json">
150-
<Version>7.0.2</Version>
151-
</PackageReference>
152-
</ItemGroup>
153-
154-
15594
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
15695
<AssemblyTitle>VaultSharp .NET Standard 2.0</AssemblyTitle>
15796
</PropertyGroup>
158-
159-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
160-
<PackageReference Include="System.Text.Json">
161-
<Version>7.0.2</Version>
162-
</PackageReference>
163-
</ItemGroup>
16497

16598
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
16699
<AssemblyTitle>VaultSharp .NET Standard 2.1</AssemblyTitle>
167100
</PropertyGroup>
168101

169-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
170-
<PackageReference Include="System.Text.Json">
171-
<Version>7.0.2</Version>
172-
</PackageReference>
173-
</ItemGroup>
174-
175102
<PropertyGroup Condition="'$(TargetFramework)'=='net6.0'">
176103
<AssemblyTitle>VaultSharp .NET 6</AssemblyTitle>
177104
</PropertyGroup>
178105

179-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
180-
<PackageReference Include="System.Text.Json">
181-
<Version>7.0.2</Version>
182-
</PackageReference>
183-
</ItemGroup>
184-
185106
<PropertyGroup Condition="'$(TargetFramework)'=='net7.0'">
186107
<AssemblyTitle>VaultSharp .NET 7</AssemblyTitle>
187108
</PropertyGroup>
188109

189-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
190-
<PackageReference Include="System.Text.Json">
191-
<Version>7.0.2</Version>
192-
</PackageReference>
193-
</ItemGroup>
194-
195110
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'">
196111
<WarningLevel>5</WarningLevel>
197112
</PropertyGroup>
198113

199114
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'">
200115
<WarningLevel>5</WarningLevel>
201116
</PropertyGroup>
202-
117+
118+
<ItemGroup Condition="'$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net47' or '$(TargetFramework)' == 'net471' or '$(TargetFramework)' == 'net472' or '$(TargetFramework)' == 'net48' or '$(TargetFramework)' == 'net481'">
119+
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="5.0.0" />
120+
<PackageReference Include="System.Text.Json" Version="7.0.2" />
121+
</ItemGroup>
122+
123+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net6.0'">
124+
<PackageReference Include="System.Text.Json" Version="7.0.2" />
125+
</ItemGroup>
126+
203127
</Project>

0 commit comments

Comments
 (0)