Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 34da69c

Browse files
author
Dankrushen
committed
Migrate NuGet packages in Unit Test project
1 parent 5838606 commit 34da69c

2 files changed

Lines changed: 8 additions & 23 deletions

File tree

MultiAdminTests/MultiAdminTests.csproj

Lines changed: 8 additions & 18 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
<PropertyGroup>
54
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
65
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -39,12 +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>
4841
<Reference Include="System" />
4942
</ItemGroup>
5043
<Choose>
@@ -62,15 +55,20 @@
6255
<Compile Include="Utility\StringExtensionsTests.cs" />
6356
<Compile Include="Utility\UtilsTests.cs" />
6457
</ItemGroup>
65-
<ItemGroup>
66-
<None Include="packages.config" />
67-
</ItemGroup>
6858
<ItemGroup>
6959
<ProjectReference Include="..\MultiAdmin\MultiAdmin.csproj">
7060
<Project>{8384BF3C-5FC8-4395-A3DE-440C6C531D36}</Project>
7161
<Name>MultiAdmin</Name>
7262
</ProjectReference>
7363
</ItemGroup>
64+
<ItemGroup>
65+
<PackageReference Include="MSTest.TestAdapter">
66+
<Version>1.3.2</Version>
67+
</PackageReference>
68+
<PackageReference Include="MSTest.TestFramework">
69+
<Version>1.3.2</Version>
70+
</PackageReference>
71+
</ItemGroup>
7472
<Choose>
7573
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
7674
<ItemGroup>
@@ -91,14 +89,6 @@
9189
</Choose>
9290
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
9391
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
94-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
95-
<PropertyGroup>
96-
<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>
97-
</PropertyGroup>
98-
<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'))" />
99-
<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'))" />
100-
</Target>
101-
<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')" />
10292
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
10393
Other similar extension points exist, see Microsoft.Common.targets.
10494
<Target Name="BeforeBuild">

MultiAdminTests/packages.config

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

0 commit comments

Comments
 (0)