Skip to content

Commit bfa4fd6

Browse files
Mohammad DehghanMohammad Dehghan
authored andcommitted
NuGet: Migrate to PackageReference
1 parent c203f89 commit bfa4fd6

File tree

6 files changed

+24
-82
lines changed

6 files changed

+24
-82
lines changed

SG.CodeCoverage.TestConsole/SG.CodeCoverage.TestConsole.csproj

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@
3434
<WarningLevel>4</WarningLevel>
3535
</PropertyGroup>
3636
<ItemGroup>
37-
<Reference Include="Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
38-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.dll</HintPath>
39-
</Reference>
40-
<Reference Include="Mono.Cecil.Mdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
41-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
42-
</Reference>
43-
<Reference Include="Mono.Cecil.Pdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
44-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
45-
</Reference>
46-
<Reference Include="Mono.Cecil.Rocks, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
48-
</Reference>
4937
<Reference Include="System" />
5038
<Reference Include="System.Core" />
5139
<Reference Include="System.Xml.Linq" />
@@ -61,7 +49,6 @@
6149
</ItemGroup>
6250
<ItemGroup>
6351
<None Include="App.config" />
64-
<None Include="packages.config" />
6552
</ItemGroup>
6653
<ItemGroup>
6754
<ProjectReference Include="..\SG.CodeCoverage.Tests.NetFx\SG.CodeCoverage.Tests.NetFx.csproj">
@@ -73,5 +60,10 @@
7360
<Name>SG.CodeCoverage</Name>
7461
</ProjectReference>
7562
</ItemGroup>
63+
<ItemGroup>
64+
<PackageReference Include="Mono.Cecil">
65+
<Version>0.11.2</Version>
66+
</PackageReference>
67+
</ItemGroup>
7668
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7769
</Project>

SG.CodeCoverage.TestConsole/packages.config

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

SG.CodeCoverage.Tests.NetFx/SG.CodeCoverage.Tests.NetFx.csproj

Lines changed: 11 additions & 30 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="..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.3.2\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,6 @@
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-
<HintPath>..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
44-
</Reference>
45-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
46-
<HintPath>..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
47-
</Reference>
48-
<Reference Include="Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
49-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.dll</HintPath>
50-
</Reference>
51-
<Reference Include="Mono.Cecil.Mdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
52-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
53-
</Reference>
54-
<Reference Include="Mono.Cecil.Pdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
55-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
56-
</Reference>
57-
<Reference Include="Mono.Cecil.Rocks, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
58-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
59-
</Reference>
6041
<Reference Include="System" />
6142
<Reference Include="System.Core" />
6243
</ItemGroup>
@@ -68,9 +49,6 @@
6849
<Compile Include="InstrumenterTester.cs" />
6950
<Compile Include="TestInstrumentation.cs" />
7051
</ItemGroup>
71-
<ItemGroup>
72-
<None Include="packages.config" />
73-
</ItemGroup>
7452
<ItemGroup>
7553
<ProjectReference Include="..\SampleProjectForTest\SampleProjectForTest.csproj">
7654
<Project>{cb5feffd-b404-4edd-8d33-d92e6d448392}</Project>
@@ -81,14 +59,17 @@
8159
<Name>SG.CodeCoverage</Name>
8260
</ProjectReference>
8361
</ItemGroup>
62+
<ItemGroup>
63+
<PackageReference Include="Mono.Cecil">
64+
<Version>0.11.2</Version>
65+
</PackageReference>
66+
<PackageReference Include="MSTest.TestAdapter">
67+
<Version>1.3.2</Version>
68+
</PackageReference>
69+
<PackageReference Include="MSTest.TestFramework">
70+
<Version>1.3.2</Version>
71+
</PackageReference>
72+
</ItemGroup>
8473
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
8574
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
86-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
87-
<PropertyGroup>
88-
<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>
89-
</PropertyGroup>
90-
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props'))" />
91-
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets'))" />
92-
</Target>
93-
<Import Project="..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" />
9475
</Project>

SG.CodeCoverage.Tests.NetFx/packages.config

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

SG.CodeCoverage/SG.CodeCoverage.csproj

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
3535
<ItemGroup>
36-
<Reference Include="Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
37-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.dll</HintPath>
38-
<SpecificVersion>False</SpecificVersion>
39-
</Reference>
40-
<Reference Include="Mono.Cecil.Mdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
41-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
42-
<SpecificVersion>False</SpecificVersion>
43-
</Reference>
44-
<Reference Include="Mono.Cecil.Pdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
45-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
46-
<SpecificVersion>False</SpecificVersion>
47-
</Reference>
48-
<Reference Include="Mono.Cecil.Rocks, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
49-
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
50-
<SpecificVersion>False</SpecificVersion>
51-
</Reference>
52-
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
53-
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
54-
<SpecificVersion>False</SpecificVersion>
55-
</Reference>
5636
<Reference Include="System" />
5737
<Reference Include="System.Core" />
5838
<Reference Include="System.Xml.Linq" />
@@ -92,15 +72,19 @@
9272
<Compile Include="Reports\JsonReport.cs" />
9373
<Compile Include="Reports\OpenCoverReport.cs" />
9474
</ItemGroup>
95-
<ItemGroup>
96-
<None Include="packages.config" />
97-
</ItemGroup>
9875
<ItemGroup>
9976
<ProjectReference Include="..\SG.CodeCoverage.Recorder\SG.CodeCoverage.Recorder.csproj">
10077
<Project>{02d49d31-8eb1-472d-9c4e-317a49364c69}</Project>
10178
<Name>SG.CodeCoverage.Recorder</Name>
10279
</ProjectReference>
10380
</ItemGroup>
104-
<ItemGroup />
81+
<ItemGroup>
82+
<PackageReference Include="Mono.Cecil">
83+
<Version>0.11.2</Version>
84+
</PackageReference>
85+
<PackageReference Include="Newtonsoft.Json">
86+
<Version>12.0.3</Version>
87+
</PackageReference>
88+
</ItemGroup>
10589
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
10690
</Project>

SG.CodeCoverage/packages.config

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

0 commit comments

Comments
 (0)