Skip to content

Commit 7bb9a9a

Browse files
committed
Use PackageReference instead of packages.config
1 parent 9d16e66 commit 7bb9a9a

File tree

4 files changed

+11
-36
lines changed

4 files changed

+11
-36
lines changed

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
</Project>

Directory.Build.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
</Project>

Git.hub/Git.hub.csproj

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<FileAlignment>512</FileAlignment>
1515
<TargetFrameworkProfile>
1616
</TargetFrameworkProfile>
17+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
1718
</PropertyGroup>
1819
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1920
<DebugSymbols>true</DebugSymbols>
@@ -37,23 +38,12 @@
3738
<Prefer32Bit>false</Prefer32Bit>
3839
</PropertyGroup>
3940
<ItemGroup>
40-
<Reference Include="Microsoft.VisualStudio.Threading, Version=15.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
41-
<HintPath>..\..\..\packages\Microsoft.VisualStudio.Threading.15.6.46\lib\net46\Microsoft.VisualStudio.Threading.dll</HintPath>
42-
<Private>True</Private>
43-
</Reference>
44-
<Reference Include="Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
45-
<HintPath>..\..\..\packages\Microsoft.VisualStudio.Validation.15.3.15\lib\net45\Microsoft.VisualStudio.Validation.dll</HintPath>
46-
<Private>True</Private>
47-
</Reference>
48-
<Reference Include="RestSharp, Version=106.2.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
49-
<HintPath>..\..\..\packages\RestSharp.106.2.1\lib\net452\RestSharp.dll</HintPath>
50-
</Reference>
5141
<Reference Include="System" />
52-
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
53-
<HintPath>..\..\..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll</HintPath>
54-
</Reference>
5542
<Reference Include="System.Web" />
56-
<Reference Include="WindowsBase" />
43+
</ItemGroup>
44+
<ItemGroup>
45+
<PackageReference Include="RestSharp" Version="106.2.1" />
46+
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="15.6.46" />
5747
</ItemGroup>
5848
<ItemGroup>
5949
<Compile Include="APIv2\RepositoryV2.cs" />
@@ -71,18 +61,5 @@
7161
<Compile Include="Repository.cs" />
7262
<Compile Include="User.cs" />
7363
</ItemGroup>
74-
<ItemGroup>
75-
<None Include="packages.config" />
76-
</ItemGroup>
77-
<ItemGroup>
78-
<Analyzer Include="..\..\..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.6.46\analyzers\cs\Microsoft.VisualStudio.Threading.Analyzers.dll" />
79-
</ItemGroup>
8064
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
81-
<Import Project="..\..\..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.6.46\build\Microsoft.VisualStudio.Threading.Analyzers.targets" Condition="Exists('..\..\..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.6.46\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" />
82-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
83-
<PropertyGroup>
84-
<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>
85-
</PropertyGroup>
86-
<Error Condition="!Exists('..\..\..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.6.46\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.6.46\build\Microsoft.VisualStudio.Threading.Analyzers.targets'))" />
87-
</Target>
8865
</Project>

Git.hub/packages.config

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

0 commit comments

Comments
 (0)