Skip to content

Commit 7a160ab

Browse files
committed
v1.5.0: corrected test execution
1 parent cb51132 commit 7a160ab

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

RandomString4NetTest/RandomString4NetTest.csproj

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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.4.0\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -9,7 +10,7 @@
910
<AppDesignerFolder>Properties</AppDesignerFolder>
1011
<RootNamespace>RandomString4NetTest</RootNamespace>
1112
<AssemblyName>RandomString4NetTest</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1516
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
@@ -39,15 +40,11 @@
3940
<WarningLevel>4</WarningLevel>
4041
</PropertyGroup>
4142
<ItemGroup>
42-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
43-
<HintPath>..\packages\MSTest.TestFramework.3.0.2\lib\net462\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
44-
<Private>True</Private>
45-
<SpecificVersion>True</SpecificVersion>
43+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
44+
<HintPath>..\packages\MSTest.TestFramework.1.4.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
4645
</Reference>
47-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
48-
<HintPath>..\packages\MSTest.TestFramework.3.0.2\lib\net462\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
49-
<Private>True</Private>
50-
<SpecificVersion>True</SpecificVersion>
46+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
47+
<HintPath>..\packages\MSTest.TestFramework.1.4.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
5148
</Reference>
5249
<Reference Include="System" />
5350
<Reference Include="System.Core" />
@@ -56,15 +53,23 @@
5653
<Compile Include="RandomString4NetTests.cs" />
5754
<Compile Include="Properties\AssemblyInfo.cs" />
5855
</ItemGroup>
59-
<ItemGroup>
60-
<None Include="packages.config" />
61-
</ItemGroup>
6256
<ItemGroup>
6357
<ProjectReference Include="..\RandomString4Net\RandomString4Net.csproj">
6458
<Project>{f0a77092-0c76-4151-843c-cd1bd33174b0}</Project>
6559
<Name>RandomString4Net</Name>
6660
</ProjectReference>
6761
</ItemGroup>
62+
<ItemGroup>
63+
<None Include="packages.config" />
64+
</ItemGroup>
6865
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
6966
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
67+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
68+
<PropertyGroup>
69+
<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>
70+
</PropertyGroup>
71+
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.props'))" />
72+
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.targets'))" />
73+
</Target>
74+
<Import Project="..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.4.0\build\net45\MSTest.TestAdapter.targets')" />
7075
</Project>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="MSTest.TestAdapter" version="3.0.2" targetFramework="net48" />
4-
<package id="MSTest.TestFramework" version="3.0.2" targetFramework="net48" />
3+
<package id="MSTest.TestAdapter" version="1.4.0" targetFramework="net48" />
4+
<package id="MSTest.TestFramework" version="1.4.0" targetFramework="net48" />
55
</packages>

0 commit comments

Comments
 (0)