Skip to content

Commit de8a118

Browse files
authored
Merge pull request #148 from nunit/PrepareHotfixRelease2.1.1
Prepare hotfix release2.1.1
2 parents efef6bd + 3327500 commit de8a118

14 files changed

Lines changed: 70 additions & 43 deletions

build.cake

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var configuration = Argument("configuration", "Debug");
99
// SET PACKAGE VERSION
1010
//////////////////////////////////////////////////////////////////////
1111

12-
var version = "2.1.0";
12+
var version = "2.1.1";
1313
var modifier = "";
1414

1515
var dbgSuffix = configuration == "Debug" ? "-dbg" : "";
@@ -22,7 +22,7 @@ if (BuildSystem.IsRunningOnAppVeyor)
2222
if (tag.IsTag)
2323
{
2424
packageVersion = tag.Name;
25-
}
25+
}
2626
else
2727
{
2828
var buildNumber = AppVeyor.Environment.Build.Number.ToString("00000");
@@ -32,6 +32,8 @@ if (BuildSystem.IsRunningOnAppVeyor)
3232
if (branch == "master" && !isPullRequest)
3333
{
3434
packageVersion = version + "-dev-" + buildNumber + dbgSuffix;
35+
36+
3537
}
3638
else
3739
{
@@ -51,7 +53,8 @@ if (BuildSystem.IsRunningOnAppVeyor)
5153
packageVersion = version + suffix;
5254
}
5355
}
54-
56+
if (packageVersion.Length>20)
57+
packageVersion=packageVersion.Substring(0,20);
5558
AppVeyor.UpdateBuildVersion(packageVersion);
5659
}
5760

@@ -68,6 +71,8 @@ var PACKAGE_IMAGE_DIR = PACKAGE_DIR + packageName + "/";
6871
var TOOLS_DIR = PROJECT_DIR + "tools/";
6972
var BIN_DIR = PROJECT_DIR + "bin/" + configuration + "/";
7073
var DEMO_BIN_DIR = PROJECT_DIR + "src/NUnitTestDemo/NUnitTestDemo/bin/" + configuration + "/";
74+
var VSIXDIR = PROJECT_DIR+"src/NUnitTestAdapterInstall/bin/"+configuration+"/";
75+
var TEST_BIN_DIR = PROJECT_DIR+"src/NUnitTestAdapterTests/bin/"+configuration+"/";
7176

7277
// Solutions
7378
var ADAPTER_SOLUTION = PROJECT_DIR + "NUnitTestAdapter.sln";
@@ -77,7 +82,7 @@ var DEMO_SOLUTION = PROJECT_DIR + "src/NUnitTestDemo/NUnitTestDemo.sln";
7782
var NUNIT_CONSOLE = TOOLS_DIR + "NUnit.Runners/tools/nunit-console.exe";
7883

7984
// Test Assemblies
80-
var ADAPTER_TESTS = BIN_DIR + "NUnit.VisualStudio.TestAdapter.Tests.dll";
85+
var ADAPTER_TESTS = TEST_BIN_DIR + "NUnit.VisualStudio.TestAdapter.Tests.dll";
8186
var DEMO_TESTS = DEMO_BIN_DIR + "NUnitTestDemo.dll";
8287

8388
// Custom settings for VSTest
@@ -229,8 +234,9 @@ Task("PackageVsix")
229234
.IsDependentOn("CreatePackageDir")
230235
.Does(() =>
231236
{
237+
System.Console.WriteLine("Packaging the vsix");
232238
CopyFile(
233-
BIN_DIR + "NUnitTestAdapter.vsix",
239+
VSIXDIR + "NUnitTestAdapter.vsix",
234240
PACKAGE_DIR + packageName + ".vsix");
235241
});
236242

nuget/NUnitVisualStudioTestAdapter.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<projectUrl>http://nunit.org/index.php?p=vsTestAdapter&amp;r=2.6</projectUrl>
1111
<iconUrl>http://nunit.org/nuget/nunit_32x32.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13-
<description>A package including the NUnit TestAdapter for Visual Studio 2012/13/15. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your TFS server.
13+
<description>The NUnit TestAdapter for Visual Studio 2012/13/15 for NUnit 2. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your TFS server.
1414
Note that this package ONLY contains the adapter, not the NUnit framework. You must also get the framework, or use the NUnitTestAdapter.WithFramework nuget package.
15-
You only need one such package for a solution.
16-
The package works with Visual Studio >= 2012</description>
17-
<releaseNotes>Support for VS 2017, Misc bug fixes</releaseNotes>
15+
You only need one such package for a solution. The package works with Visual Studio >= 2012</description>
16+
<summary>The NUnit TestAdapter for Visual Studio 2012/13/15 for NUnit 2 and lower</summary>
17+
<releaseNotes>Hotfix for .net framework 3.5 support, and missing pdb crash</releaseNotes>
1818
<copyright>Charlie Poole</copyright>
1919
<language>en-US</language>
2020
<tags>test visualstudio testadapter</tags>

src/NUnitTestAdapter/NavigationDataProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ public NavigationData GetNavigationData(string className, string methodName)
7373
return navigationData ?? NavigationData.Invalid;
7474
#endif
7575
}
76+
static bool DoesPdbFileExist(string filepath) => File.Exists(Path.ChangeExtension(filepath, ".pdb"));
7677

7778
static IDictionary<string, TypeDefinition> CacheTypes(string assemblyPath)
7879
{
79-
var readerParameters = new ReaderParameters() { ReadSymbols = true };
80+
var readsymbols = DoesPdbFileExist(assemblyPath);
81+
var readerParameters = new ReaderParameters() { ReadSymbols = readsymbols };
8082
var module = ModuleDefinition.ReadModule(assemblyPath, readerParameters);
8183

8284
var types = new Dictionary<string, TypeDefinition>();

src/NUnitTestAdapter/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
[assembly: ComVisible(false)]
2222

2323
[assembly: Guid("c0aad5e4-b486-49bc-b3e8-31e01be6fefe")]
24-
[assembly: AssemblyVersion("2.1.0.7")]
25-
[assembly: AssemblyFileVersion("2.1.0.7")]
24+
[assembly: AssemblyVersion("2.1.1.0")]
25+
[assembly: AssemblyFileVersion("2.1.1.0")]

src/NUnitTestAdapterInstall/NUnitTestAdapterInstall.csproj

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<DebugSymbols>true</DebugSymbols>
3131
<DebugType>full</DebugType>
3232
<Optimize>false</Optimize>
33-
<OutputPath>..\..\bin\Debug\</OutputPath>
33+
<OutputPath>bin\Debug\</OutputPath>
3434
<DefineConstants>DEBUG;TRACE</DefineConstants>
3535
<ErrorReport>prompt</ErrorReport>
3636
<WarningLevel>4</WarningLevel>
@@ -41,7 +41,7 @@
4141
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4242
<DebugType>pdbonly</DebugType>
4343
<Optimize>true</Optimize>
44-
<OutputPath>..\..\bin\Release\</OutputPath>
44+
<OutputPath>bin\Release\</OutputPath>
4545
<DefineConstants>TRACE</DefineConstants>
4646
<ErrorReport>prompt</ErrorReport>
4747
<WarningLevel>4</WarningLevel>
@@ -101,16 +101,18 @@
101101
</ItemGroup>
102102
<ItemGroup>
103103
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
104-
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net45\Mono.Cecil.dll</HintPath>
104+
<SpecificVersion>False</SpecificVersion>
105+
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net35\Mono.Cecil.dll</HintPath>
105106
</Reference>
106-
<Reference Include="Mono.Cecil.Mdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
107-
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net45\Mono.Cecil.Mdb.dll</HintPath>
107+
<Reference Include="Mono.Cecil.Mdb">
108+
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net35\Mono.Cecil.Mdb.dll</HintPath>
108109
</Reference>
109-
<Reference Include="Mono.Cecil.Pdb, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
110-
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net45\Mono.Cecil.Pdb.dll</HintPath>
110+
<Reference Include="Mono.Cecil.Pdb">
111+
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net35\Mono.Cecil.Pdb.dll</HintPath>
111112
</Reference>
112113
<Reference Include="Mono.Cecil.Rocks, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
113-
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net45\Mono.Cecil.Rocks.dll</HintPath>
114+
<SpecificVersion>False</SpecificVersion>
115+
<HintPath>..\..\packages\Mono.Cecil.0.9.6.4\lib\net35\Mono.Cecil.Rocks.dll</HintPath>
114116
</Reference>
115117
<Reference Include="nunit.core, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
116118
<SpecificVersion>False</SpecificVersion>
0 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Microsoft.VSSDK.BuildTools" version="15.0.26201" targetFramework="net45" developmentDependency="true" />
4-
<package id="Mono.Cecil" version="0.9.6.4" targetFramework="net45" />
4+
55
</packages>

src/NUnitTestAdapterInstall/source.extension.vsixmanifest

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="NUnitTestAdapterInstall..7c53286e-ac4f-485f-915c-5ec5a4c47b0c" Version="2.1.0.0" Language="en-US" Publisher="Charlie Poole" />
4+
<Identity Id="NUnitTestAdapterInstall..7c53286e-ac4f-485f-915c-5ec5a4c47b0c" Version="2.1.1" Language="en-US" Publisher="Charlie Poole" />
55
<DisplayName>NUnit 2 Test Adapter</DisplayName>
6-
<Description xml:space="preserve">NUnit 2 adapter for running tests in Visual Studio 2012 and newer. Works with NUnit 2.x, use the NUnit 3 adapter for 3.x tests.</Description>
6+
<Description xml:space="preserve">NUnit 2 adapter for running tests in Visual Studio 2012 and newer. Works with NUnit 2.x, for 3.x tests use the NUnit 3 adapter.</Description>
77
<MoreInfo>https://github.com/nunit/docs/wiki/VS-Adapter</MoreInfo>
88
<License>license.rtf</License>
9+
<GettingStartedGuide>https://github.com/nunit/docs/wiki/Usage</GettingStartedGuide>
10+
<ReleaseNotes>https://github.com/nunit/docs/wiki/AdapterV2-Release-Notes</ReleaseNotes>
911
<Icon>nunit_32x32.png</Icon>
1012
<PreviewImage>preview.png</PreviewImage>
11-
<Tags>test, Testing, adapter, NUNit, TDD, NUnit</Tags>
13+
<Tags>test, Testing, adapter, NUnit, TDD, NUnit</Tags>
1214
</Metadata>
1315
<Installation>
1416
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[11.0,16.0)" />

src/NUnitTestAdapterTests/NUnitEventListenerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class NUnitEventListenerTests
2222
private static readonly string ThisAssemblyPath =
2323
Path.GetFullPath("NUnit.VisualStudio.TestAdapter.Tests.dll");
2424
private static readonly string ThisCodeFile =
25-
Path.GetFullPath(@"..\..\src\NUnitTestAdapterTests\NUnitEventListenerTests.cs");
25+
Path.GetFullPath(@"..\..\NUnitEventListenerTests.cs");
2626

2727
private const int LineNumber = 29; // Must be number of the following line
2828
// ReSharper disable once UnusedMember.Local

src/NUnitTestAdapterTests/NUnitTestAdapterTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<DebugSymbols>true</DebugSymbols>
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
23-
<OutputPath>..\..\bin\Debug\</OutputPath>
23+
<OutputPath>bin\Debug\</OutputPath>
2424
<DefineConstants>TRACE;DEBUG</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
@@ -29,7 +29,7 @@
2929
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3030
<DebugType>pdbonly</DebugType>
3131
<Optimize>true</Optimize>
32-
<OutputPath>..\..\bin\Release\</OutputPath>
32+
<OutputPath>bin\Release\</OutputPath>
3333
<DefineConstants>TRACE</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>

0 commit comments

Comments
 (0)