Skip to content

Commit c4717e6

Browse files
committed
feat: switch to PackageReferences
1 parent 23638ac commit c4717e6

File tree

7 files changed

+22
-65
lines changed

7 files changed

+22
-65
lines changed

Fossology.Rest.Dotnet.Model/Fossology.Rest.dotnet.Model.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,9 @@
3232
<DocumentationFile>bin\Release\Fossology.Rest.Dotnet.Model.xml</DocumentationFile>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
36-
</Reference>
3735
<Reference Include="System" />
3836
<Reference Include="System.Core" />
3937
<Reference Include="System.Runtime.Serialization" />
40-
<Reference Include="System.Xml.Linq" />
41-
<Reference Include="System.Data.DataSetExtensions" />
42-
<Reference Include="Microsoft.CSharp" />
43-
<Reference Include="System.Data" />
44-
<Reference Include="System.Net.Http" />
45-
<Reference Include="System.Xml" />
4638
</ItemGroup>
4739
<ItemGroup>
4840
<Compile Include="SearchResult.cs" />
@@ -56,7 +48,9 @@
5648
<Compile Include="Properties\AssemblyInfo.cs" />
5749
</ItemGroup>
5850
<ItemGroup>
59-
<None Include="packages.config" />
51+
<PackageReference Include="Newtonsoft.Json">
52+
<Version>12.0.3</Version>
53+
</PackageReference>
6054
</ItemGroup>
6155
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6256
</Project>

Fossology.Rest.Dotnet.Model/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

Fossology.Rest.Dotnet.Test/Fossology.Rest.Dotnet.Test.csproj

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props" Condition="Exists('C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" />
43
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
54
<PropertyGroup>
65
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -39,24 +38,13 @@
3938
<WarningLevel>4</WarningLevel>
4039
</PropertyGroup>
4140
<ItemGroup>
42-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
43-
</Reference>
44-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
45-
</Reference>
4641
<Reference Include="System" />
4742
<Reference Include="System.Core" />
48-
<Reference Include="Tethys.Logging, Version=1.4.2.0, Culture=neutral, PublicKeyToken=5fae225d9529f881, processorArchitecture=MSIL">
49-
</Reference>
50-
<Reference Include="Tethys.Logging.Console, Version=1.4.2.0, Culture=neutral, PublicKeyToken=5fae225d9529f881, processorArchitecture=MSIL">
51-
</Reference>
5243
</ItemGroup>
5344
<ItemGroup>
5445
<Compile Include="FossologyClientTest.cs" />
5546
<Compile Include="Properties\AssemblyInfo.cs" />
5647
</ItemGroup>
57-
<ItemGroup>
58-
<None Include="packages.config" />
59-
</ItemGroup>
6048
<ItemGroup>
6149
<ProjectReference Include="..\FOSSology.REST.dotnet\FOSSology.REST.dotnet.csproj">
6250
<Project>{510a1d9e-c531-4a0e-a516-6aa0125e4f9b}</Project>
@@ -67,14 +55,17 @@
6755
<Name>Fossology.Rest.Dotnet.Model</Name>
6856
</ProjectReference>
6957
</ItemGroup>
58+
<ItemGroup>
59+
<PackageReference Include="MSTest.TestAdapter">
60+
<Version>2.1.1</Version>
61+
</PackageReference>
62+
<PackageReference Include="MSTest.TestFramework">
63+
<Version>2.1.1</Version>
64+
</PackageReference>
65+
<PackageReference Include="Tethys.Logging.Console">
66+
<Version>1.4.2</Version>
67+
</PackageReference>
68+
</ItemGroup>
7069
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
7170
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
72-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
73-
<PropertyGroup>
74-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
75-
</PropertyGroup>
76-
<Error Condition="!Exists('C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', 'C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props'))" />
77-
<Error Condition="!Exists('C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', 'C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets'))" />
78-
</Target>
79-
<Import Project="C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets" Condition="Exists('C:\home\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" />
8071
</Project>

Fossology.Rest.Dotnet.Test/packages.config

Lines changed: 0 additions & 7 deletions
This file was deleted.

Fossology.Rest.Dotnet/Fossology.Rest.Dotnet.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,16 @@
3333
</PropertyGroup>
3434
<ItemGroup>
3535
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
36+
<HintPath>C:\home\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
3637
</Reference>
3738
<Reference Include="RestSharp, Version=106.0.0.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
39+
<HintPath>C:\home\packages\RestSharp.106.10.1\lib\net452\RestSharp.dll</HintPath>
3840
</Reference>
3941
<Reference Include="System" />
4042
<Reference Include="System.Core" />
4143
<Reference Include="System.Web" />
42-
<Reference Include="System.Xml.Linq" />
43-
<Reference Include="System.Data.DataSetExtensions" />
44-
<Reference Include="Microsoft.CSharp" />
45-
<Reference Include="System.Data" />
46-
<Reference Include="System.Net.Http" />
47-
<Reference Include="System.Xml" />
4844
<Reference Include="Tethys.Logging, Version=1.4.2.0, Culture=neutral, PublicKeyToken=5fae225d9529f881, processorArchitecture=MSIL">
45+
<HintPath>C:\home\packages\Tethys.Logging.1.4.2\lib\netstandard2.0\Tethys.Logging.dll</HintPath>
4946
</Reference>
5047
</ItemGroup>
5148
<ItemGroup>

FossyApiDemo/FossyApiDemo.csproj

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,8 @@
3636
<ItemGroup>
3737
<Reference Include="System" />
3838
<Reference Include="System.Core" />
39-
<Reference Include="System.Xml.Linq" />
40-
<Reference Include="System.Data.DataSetExtensions" />
41-
<Reference Include="Microsoft.CSharp" />
42-
<Reference Include="System.Data" />
43-
<Reference Include="System.Deployment" />
4439
<Reference Include="System.Drawing" />
45-
<Reference Include="System.Net.Http" />
4640
<Reference Include="System.Windows.Forms" />
47-
<Reference Include="System.Xml" />
48-
<Reference Include="Tethys.Logging, Version=1.4.2.0, Culture=neutral, PublicKeyToken=5fae225d9529f881, processorArchitecture=MSIL">
49-
<HintPath>C:\home\packages\Tethys.Logging.1.4.2\lib\netstandard2.0\Tethys.Logging.dll</HintPath>
50-
</Reference>
51-
<Reference Include="Tethys.Logging.Controls, Version=1.4.2.0, Culture=neutral, PublicKeyToken=5fae225d9529f881, processorArchitecture=MSIL">
52-
<HintPath>C:\home\packages\Tethys.Logging.Controls.1.4.2\lib\net461\Tethys.Logging.Controls.dll</HintPath>
53-
</Reference>
5441
</ItemGroup>
5542
<ItemGroup>
5643
<Compile Include="MainForm.cs">
@@ -74,7 +61,6 @@
7461
<DependentUpon>Resources.resx</DependentUpon>
7562
<DesignTime>True</DesignTime>
7663
</Compile>
77-
<None Include="packages.config" />
7864
<None Include="Properties\Settings.settings">
7965
<Generator>SettingsSingleFileGenerator</Generator>
8066
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -102,6 +88,11 @@
10288
<Name>Fossology.Rest.Dotnet</Name>
10389
</ProjectReference>
10490
</ItemGroup>
91+
<ItemGroup>
92+
<PackageReference Include="Tethys.Logging.Controls">
93+
<Version>1.4.2</Version>
94+
</PackageReference>
95+
</ItemGroup>
10596
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
10697
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
10798
Other similar extension points exist, see Microsoft.Common.targets.

FossyApiDemo/packages.config

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)