Skip to content

Commit 2a8720c

Browse files
author
slavara
committed
Bump NUnit to 3.12.0
Bump NSubstitute to 4.2.2
1 parent 84e3f01 commit 2a8720c

File tree

3 files changed

+37
-9
lines changed

3 files changed

+37
-9
lines changed

PostfixCodeCompletion.Tests/PostfixCodeCompletion.Tests.csproj

Lines changed: 24 additions & 6 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" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props" Condition="Exists('..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -11,6 +12,8 @@
1112
<AssemblyName>PostfixCodeCompletion.Tests</AssemblyName>
1213
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
15+
<NuGetPackageImportStamp>
16+
</NuGetPackageImportStamp>
1417
</PropertyGroup>
1518
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1619
<DebugSymbols>true</DebugSymbols>
@@ -50,16 +53,25 @@
5053
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5154
</PropertyGroup>
5255
<ItemGroup>
53-
<Reference Include="NSubstitute, Version=2.0.3.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL">
54-
<HintPath>..\..\..\..\packages\NSubstitute.2.0.3\lib\net40\NSubstitute.dll</HintPath>
55-
<Private>True</Private>
56+
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
57+
<HintPath>..\..\..\..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll</HintPath>
5658
</Reference>
57-
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
58-
<HintPath>..\..\..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
59-
<Private>True</Private>
59+
<Reference Include="Microsoft.CSharp" />
60+
<Reference Include="NSubstitute, Version=4.2.0.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL">
61+
<HintPath>..\..\..\..\packages\NSubstitute.4.2.2\lib\net46\NSubstitute.dll</HintPath>
62+
</Reference>
63+
<Reference Include="nunit.framework, Version=3.12.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
64+
<HintPath>..\..\..\..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll</HintPath>
6065
</Reference>
6166
<Reference Include="System" />
67+
<Reference Include="System.Configuration" />
6268
<Reference Include="System.Core" />
69+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
70+
<HintPath>..\..\..\..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
71+
</Reference>
72+
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
73+
<HintPath>..\..\..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
74+
</Reference>
6375
<Reference Include="System.Windows.Forms" />
6476
</ItemGroup>
6577
<ItemGroup>
@@ -198,4 +210,10 @@
198210
</ProjectReference>
199211
</ItemGroup>
200212
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
213+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
214+
<PropertyGroup>
215+
<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>
216+
</PropertyGroup>
217+
<Error Condition="!Exists('..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\..\packages\NUnit.3.12.0\build\NUnit.props'))" />
218+
</Target>
201219
</Project>

PostfixCodeCompletion.Tests/app.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<disableCachingBindingFailures enabled="1" />
66
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
77
<probing privatePath="Plugins" />
8+
<dependentAssembly>
9+
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
10+
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
11+
</dependentAssembly>
12+
<dependentAssembly>
13+
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
14+
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
15+
</dependentAssembly>
816
</assemblyBinding>
917
</runtime>
1018
</configuration>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<packages>
4-
<package id="NSubstitute" version="1.10.0.0" targetFramework="net35" />
5-
<package id="NUnit" version="2.6.4" targetFramework="net35" />
3+
<package id="Castle.Core" version="4.4.1" targetFramework="net48" />
4+
<package id="NSubstitute" version="4.2.2" targetFramework="net48" />
5+
<package id="NUnit" version="3.12.0" targetFramework="net48" />
6+
<package id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" targetFramework="net48" />
7+
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
68
</packages>

0 commit comments

Comments
 (0)