Update to make adapter work with Visual Studio 2019 #180
This commit is contained in:
Родитель
53a5ccbd67
Коммит
43946ed594
Двоичные данные
NUnitTestAdapter.sln
Двоичные данные
NUnitTestAdapter.sln
Двоичный файл не отображается.
10
build.cake
10
build.cake
|
@ -10,7 +10,7 @@ var configuration = Argument("configuration", "Debug");
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
var version = "2.2.0";
|
||||
var modifier = "";
|
||||
var modifier = "-beta03";
|
||||
|
||||
var dbgSuffix = configuration == "Debug" ? "-dbg" : "";
|
||||
var packageVersion = version + modifier + dbgSuffix;
|
||||
|
@ -70,6 +70,7 @@ var PACKAGE_DIR = PROJECT_DIR + "package/";
|
|||
var PACKAGE_IMAGE_DIR = PACKAGE_DIR + packageName + "/";
|
||||
var TOOLS_DIR = PROJECT_DIR + "tools/";
|
||||
var BIN_DIR = PROJECT_DIR + "bin/" + configuration + "/";
|
||||
var NUGET_DIR = PROJECT_DIR + "nuget/";
|
||||
var DEMO_BIN_DIR = PROJECT_DIR + "src/NUnitTestDemo/NUnitTestDemo/bin/" + configuration + "/";
|
||||
var VSIXDIR = PROJECT_DIR+"src/NUnitTestAdapterInstall/bin/"+configuration+"/";
|
||||
var TEST_BIN_DIR = PROJECT_DIR+"src/NUnitTestAdapterTests/bin/"+configuration+"/";
|
||||
|
@ -188,6 +189,7 @@ Task("CreateWorkingImage")
|
|||
.IsDependentOn("CreatePackageDir")
|
||||
.Does(() =>
|
||||
{
|
||||
Information("Creating work image");
|
||||
CreateDirectory(PACKAGE_IMAGE_DIR);
|
||||
CleanDirectory(PACKAGE_IMAGE_DIR);
|
||||
|
||||
|
@ -202,8 +204,9 @@ Task("CreateWorkingImage")
|
|||
BIN_DIR + "Mono.Cecil.Rocks.dll",
|
||||
BIN_DIR + "nunit.core.dll",
|
||||
BIN_DIR + "nunit.core.interfaces.dll",
|
||||
BIN_DIR + "nunit.util.dll"
|
||||
};
|
||||
BIN_DIR + "nunit.util.dll",
|
||||
NUGET_DIR + "nunittestadapter.props"
|
||||
};
|
||||
|
||||
var binDir = PACKAGE_IMAGE_DIR + "bin/";
|
||||
CreateDirectory(binDir);
|
||||
|
@ -221,6 +224,7 @@ Task("PackageNuGet")
|
|||
.IsDependentOn("CreateWorkingImage")
|
||||
.Does(() =>
|
||||
{
|
||||
System.Console.WriteLine("Packaging the nuget");
|
||||
NuGetPack("nuget/NUnitVisualStudioTestAdapter.nuspec", new NuGetPackSettings()
|
||||
{
|
||||
Version = packageVersion,
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Content Include="$(MSBuildThisFileDirectory)NUnit.VisualStudio.TestAdapter.dll">
|
||||
<Link>NUnit.VisualStudio.TestAdapter.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)Mono.Cecil.dll" >
|
||||
<Link>Mono.Cecil.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)Mono.Cecil.Mdb.dll" >
|
||||
<Link>Mono.Cecil.Mdb.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)Mono.Cecil.Pdb.dll" >
|
||||
<Link>Mono.Cecil.Pdb.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)Mono.Cecil.Rocks.dll" >
|
||||
<Link>Mono.Cecil.Rocks.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)nunit.core.dll">
|
||||
<Link>nunit.core.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)nunit.core.interfaces.dll">
|
||||
<Link>nunit.core.interfaces.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)nunit.util.dll">
|
||||
<Link>nunit.util.dll</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
@ -16,19 +16,20 @@ Note that this package ONLY contains the adapter, not the NUnit framework. You
|
|||
You only need one such package for a solution. The package works with Visual Studio >= 2012</description>
|
||||
<summary>The NUnit TestAdapter for Visual Studio 2012/13/15/17 for NUnit 2</summary>
|
||||
<releaseNotes>Hotfix for .net framework 3.5 support, and missing pdb crash</releaseNotes>
|
||||
<copyright>Copyright (c) Charlie Poole 2011-2017, Terje Sandstrom 2014-2017</copyright>
|
||||
<copyright>Copyright (c) Charlie Poole 2011-2019, Terje Sandstrom 2014-2019</copyright>
|
||||
<language>en-US</language>
|
||||
<tags>test visualstudio testadapter</tags>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="LICENSE.txt" />
|
||||
<file src="bin\nunit.core.dll" target="tools\nunit.core.dll" />
|
||||
<file src="bin\nunit.core.interfaces.dll" target="tools\nunit.core.interfaces.dll" />
|
||||
<file src="bin\nunit.util.dll" target="tools\nunit.util.dll" />
|
||||
<file src="bin\NUnit.VisualStudio.TestAdapter.dll" target="tools\NUnit.VisualStudio.TestAdapter.dll" />
|
||||
<file src="bin\Mono.Cecil.dll" target="tools\Mono.Cecil.dll" />
|
||||
<file src="bin\Mono.Cecil.Mdb.dll" target="tools\Mono.Cecil.Mdb.dll" />
|
||||
<file src="bin\Mono.Cecil.Pdb.dll" target="tools\Mono.Cecil.Pdb.dll" />
|
||||
<file src="bin\Mono.Cecil.Rocks.dll" target="tools\Mono.Cecil.Rocks.dll" />
|
||||
<file src="bin\nunit.core.dll" target="build\nunit.core.dll" />
|
||||
<file src="bin\nunit.core.interfaces.dll" target="build\nunit.core.interfaces.dll" />
|
||||
<file src="bin\nunit.util.dll" target="build\nunit.util.dll" />
|
||||
<file src="bin\NUnit.VisualStudio.TestAdapter.dll" target="build\NUnit.VisualStudio.TestAdapter.dll" />
|
||||
<file src="bin\Mono.Cecil.dll" target="build\Mono.Cecil.dll" />
|
||||
<file src="bin\Mono.Cecil.Mdb.dll" target="build\Mono.Cecil.Mdb.dll" />
|
||||
<file src="bin\Mono.Cecil.Pdb.dll" target="build\Mono.Cecil.Pdb.dll" />
|
||||
<file src="bin\Mono.Cecil.Rocks.dll" target="build\Mono.Cecil.Rocks.dll" />
|
||||
<file src="bin\NUnitTestAdapter.props" target="build\NUnitTestAdapter.props" />
|
||||
</files>
|
||||
</package>
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# NUnit Test Adapter for Visual Studio, for NUnit 2.X
|
||||
|
||||
The NUnit Test Adapter only runs NUnit 2.X tests in Visual Studio 2012 and newer.
|
||||
|
||||
Note that it does not run NUnit 3.X tests, for that you need the [NUnit3TestAdapter](https://github.com/nunit/nunit3-vs-adapter)
|
||||
|
||||
Please consider moving your code to use NUnit3. This adapter is only maintained to support newer versions of Visual Studio, and is very rarely updated. We might fix an occasional bug if it is critical.
|
||||
|
||||
|
||||
|
||||
|
||||
##### Support
|
||||
|
||||
Ask support questions [![Chat](https://img.shields.io/gitter/room/nunit/nunit.svg?style=flat)](https://gitter.im/nunit/nunit)
|
||||
or raise an issue [![](https://img.shields.io/github/issues/nunit/NUnit-vs-Adapter.svg?style=flat)](https://github.com/nunit/nunit-vs-adapter/issues)
|
||||
|
||||
## License ##
|
||||
|
||||
|
||||
The NUnit 3 Test Adapter is Open Source software released under the [![](https://img.shields.io/github/license/nunit/nunit3-vs-adapter.svg?style=flat)](https://nunit.org/nuget/nunit3-license.txt).
|
Загрузка…
Ссылка в новой задаче