Skip to content

Commit 0bfb039

Browse files
committed
packages.config to PackageReference
1 parent d450440 commit 0bfb039

File tree

8 files changed

+26
-100
lines changed

8 files changed

+26
-100
lines changed

Source/GitReleaseManager.Cli/GitReleaseManager.Cli.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@
6060
<RunCodeAnalysisRestore>true</RunCodeAnalysisRestore>
6161
</PropertyGroup>
6262
<ItemGroup>
63-
<Reference Include="CommandLine, Version=2.3.0.0, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL">
64-
<HintPath>..\packages\CommandLineParser.2.3.0\lib\net45\CommandLine.dll</HintPath>
65-
</Reference>
66-
<Reference Include="Octokit, Version=0.32.0.0, Culture=neutral, processorArchitecture=MSIL">
67-
<HintPath>..\packages\Octokit.0.32.0\lib\net45\Octokit.dll</HintPath>
68-
</Reference>
6963
<Reference Include="System" />
7064
<Reference Include="System.Core" />
7165
<Reference Include="System.Net.Http" />
@@ -93,9 +87,7 @@
9387
</Compile>
9488
</ItemGroup>
9589
<ItemGroup>
96-
<None Include="app.config" />
9790
<Compile Include="Program.cs" />
98-
<None Include="packages.config" />
9991
</ItemGroup>
10092
<ItemGroup>
10193
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
@@ -126,6 +118,14 @@
126118
<Name>GitReleaseManager.Core</Name>
127119
</ProjectReference>
128120
</ItemGroup>
121+
<ItemGroup>
122+
<PackageReference Include="CommandLineParser">
123+
<Version>2.3.0</Version>
124+
</PackageReference>
125+
<PackageReference Include="Octokit">
126+
<Version>0.32.0</Version>
127+
</PackageReference>
128+
</ItemGroup>
129129
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
130130
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
131131
<Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />

Source/GitReleaseManager.Cli/app.config

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

Source/GitReleaseManager.Cli/packages.config

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

Source/GitReleaseManager.Tests/GitReleaseManager.Tests.csproj

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\NUnit.3.11.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" />
43
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
54
<PropertyGroup>
65
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -37,51 +36,18 @@
3736
<DebugSymbols>true</DebugSymbols>
3837
</PropertyGroup>
3938
<ItemGroup>
40-
<Reference Include="AlphaFS, Version=2.2.0.0, Culture=neutral, PublicKeyToken=4d31a58f7d7ad5c9, processorArchitecture=MSIL">
41-
<HintPath>..\packages\AlphaFS.2.2.6\lib\net452\AlphaFS.dll</HintPath>
42-
</Reference>
43-
<Reference Include="ApprovalTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=11bd7d124fc62e0f, processorArchitecture=MSIL">
44-
<HintPath>..\packages\ApprovalTests.3.0.18\lib\netstandard2.0\ApprovalTests.dll</HintPath>
45-
</Reference>
46-
<Reference Include="ApprovalUtilities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=11bd7d124fc62e0f, processorArchitecture=MSIL">
47-
<HintPath>..\packages\ApprovalUtilities.3.0.18\lib\net461\ApprovalUtilities.dll</HintPath>
48-
</Reference>
49-
<Reference Include="Microsoft.Win32.Registry, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
50-
<HintPath>..\packages\Microsoft.Win32.Registry.4.5.0\lib\net461\Microsoft.Win32.Registry.dll</HintPath>
51-
</Reference>
52-
<Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
53-
<HintPath>..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
54-
</Reference>
55-
<Reference Include="Octokit, Version=0.32.0.0, Culture=neutral, processorArchitecture=MSIL">
56-
<HintPath>..\packages\Octokit.0.32.0\lib\net45\Octokit.dll</HintPath>
57-
</Reference>
5839
<Reference Include="System" />
5940
<Reference Include="System.Core" />
60-
<Reference Include="System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
61-
<HintPath>..\packages\System.Data.SqlClient.4.6.0\lib\net461\System.Data.SqlClient.dll</HintPath>
62-
</Reference>
6341
<Reference Include="System.Drawing" />
64-
<Reference Include="System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
65-
<HintPath>..\packages\System.Drawing.Common.4.5.1\lib\net461\System.Drawing.Common.dll</HintPath>
66-
</Reference>
6742
<Reference Include="System.Management" />
6843
<Reference Include="System.Net.Http" />
69-
<Reference Include="System.Security.AccessControl, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
70-
<HintPath>..\packages\System.Security.AccessControl.4.5.0\lib\net461\System.Security.AccessControl.dll</HintPath>
71-
</Reference>
72-
<Reference Include="System.Security.Principal.Windows, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
73-
<HintPath>..\packages\System.Security.Principal.Windows.4.5.1\lib\net461\System.Security.Principal.Windows.dll</HintPath>
74-
</Reference>
7544
<Reference Include="System.Transactions" />
7645
<Reference Include="System.Windows.Forms" />
7746
<Reference Include="System.Xml.Linq" />
7847
<Reference Include="System.Data.DataSetExtensions" />
7948
<Reference Include="Microsoft.CSharp" />
8049
<Reference Include="System.Data" />
8150
<Reference Include="System.Xml" />
82-
<Reference Include="TextCopy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03, processorArchitecture=MSIL">
83-
<HintPath>..\packages\TextCopy.1.5.0\lib\netstandard2.0\TextCopy.dll</HintPath>
84-
</Reference>
8551
</ItemGroup>
8652
<ItemGroup>
8753
<Compile Include="ApprovalTestConfig.cs" />
@@ -116,14 +82,18 @@
11682
</EmbeddedResource>
11783
</ItemGroup>
11884
<ItemGroup>
119-
<None Include="app.config" />
120-
<None Include="packages.config" />
85+
<PackageReference Include="AlphaFS">
86+
<Version>2.2.6</Version>
87+
</PackageReference>
88+
<PackageReference Include="ApprovalTests">
89+
<Version>3.0.18</Version>
90+
</PackageReference>
91+
<PackageReference Include="NUnit">
92+
<Version>3.11.0</Version>
93+
</PackageReference>
94+
<PackageReference Include="Octokit">
95+
<Version>0.32.0</Version>
96+
</PackageReference>
12197
</ItemGroup>
12298
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
123-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
124-
<PropertyGroup>
125-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
126-
</PropertyGroup>
127-
<Error Condition="!Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.11.0\build\NUnit.props'))" />
128-
</Target>
12999
</Project>

Source/GitReleaseManager.Tests/app.config

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

Source/GitReleaseManager.Tests/packages.config

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

Source/GitReleaseManager/GitReleaseManager.Core.csproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
<RunCodeAnalysisRestore>True</RunCodeAnalysisRestore>
4545
</PropertyGroup>
4646
<ItemGroup>
47-
<Reference Include="Octokit, Version=0.32.0.0, Culture=neutral, processorArchitecture=MSIL">
48-
<HintPath>..\packages\Octokit.0.32.0\lib\net45\Octokit.dll</HintPath>
49-
</Reference>
5047
<Reference Include="System" />
5148
<Reference Include="System.Core" />
5249
<Reference Include="System.Net.Http" />
@@ -55,9 +52,6 @@
5552
<Reference Include="Microsoft.CSharp" />
5653
<Reference Include="System.Data" />
5754
<Reference Include="System.Xml" />
58-
<Reference Include="YamlDotNet, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
59-
<HintPath>..\packages\YamlDotNet.5.3.0\lib\net45\YamlDotNet.dll</HintPath>
60-
</Reference>
6155
</ItemGroup>
6256
<ItemGroup>
6357
<Compile Include="AssemblyInfo.cs" />
@@ -87,7 +81,12 @@
8781
</CodeAnalysisDictionary>
8882
</ItemGroup>
8983
<ItemGroup>
90-
<None Include="packages.config" />
84+
<PackageReference Include="Octokit">
85+
<Version>0.32.0</Version>
86+
</PackageReference>
87+
<PackageReference Include="YamlDotNet">
88+
<Version>5.3.0</Version>
89+
</PackageReference>
9190
</ItemGroup>
9291
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
9392
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />

Source/GitReleaseManager/packages.config

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

0 commit comments

Comments
 (0)