Skip to content

Commit 13f4df4

Browse files
committed
NUnit Change
1 parent 4548e5a commit 13f4df4

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

Castle.Sharp2Js.Tests/Castle.Sharp2Js.Tests.csproj

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\NUnit.3.11.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,6 +18,8 @@
1718
<IsCodedUITest>False</IsCodedUITest>
1819
<TestProjectType>UnitTest</TestProjectType>
1920
<TargetFrameworkProfile />
21+
<NuGetPackageImportStamp>
22+
</NuGetPackageImportStamp>
2023
</PropertyGroup>
2124
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2225
<DebugSymbols>true</DebugSymbols>
@@ -50,9 +53,8 @@
5053
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
5154
<Private>True</Private>
5255
</Reference>
53-
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
54-
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
55-
<Private>True</Private>
56+
<Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
57+
<HintPath>..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
5658
</Reference>
5759
<Reference Include="Sigil, Version=4.5.0.0, Culture=neutral, PublicKeyToken=2d06c3494341c8ab, processorArchitecture=MSIL">
5860
<HintPath>..\packages\Sigil.4.5.0\lib\net45\Sigil.dll</HintPath>
@@ -119,6 +121,12 @@
119121
</Choose>
120122
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
121123
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
124+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
125+
<PropertyGroup>
126+
<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>
127+
</PropertyGroup>
128+
<Error Condition="!Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.11.0\build\NUnit.props'))" />
129+
</Target>
122130
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
123131
Other similar extension points exist, see Microsoft.Common.targets.
124132
<Target Name="BeforeBuild">

Castle.Sharp2Js.Tests/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Jil" version="2.12.1" targetFramework="net45" />
55
<package id="Jint" version="2.6.0" targetFramework="net452" />
66
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
7-
<package id="NUnit" version="2.6.4" targetFramework="net4" />
7+
<package id="NUnit" version="3.11.0" targetFramework="net45" />
88
<package id="OpenCover" version="4.6.166" targetFramework="net45" />
99
<package id="Sigil" version="4.5.0" targetFramework="net45" />
1010
</packages>

0 commit comments

Comments
 (0)