diff --git a/.nuget/packages.config b/.nuget/packages.config index 05ac50048..0335ab080 100644 --- a/.nuget/packages.config +++ b/.nuget/packages.config @@ -1,4 +1,5 @@  - + + diff --git a/CI/build.msbuild b/CI/build.msbuild index 89a3ead0e..77717ee6d 100644 --- a/CI/build.msbuild +++ b/CI/build.msbuild @@ -6,7 +6,7 @@ $(RootDir)\Build - @@ -37,7 +37,7 @@ - + diff --git a/Lib/NuGet/NuGet.exe b/Lib/NuGet/NuGet.exe index ed2b0a221..9ca66594f 100644 Binary files a/Lib/NuGet/NuGet.exe and b/Lib/NuGet/NuGet.exe differ diff --git a/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj b/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj index 296831989..0fadfeb04 100644 --- a/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj +++ b/LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj @@ -1,6 +1,6 @@  - + Debug AnyCPU @@ -35,9 +35,8 @@ true - - False - ..\packages\Moq.4.2.1409.1722\lib\net40\Moq.dll + + ..\packages\Moq.4.2.1507.0118\lib\net40\Moq.dll @@ -158,7 +157,7 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + - + \ No newline at end of file diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index dab1582d4..240e8a4ca 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -56,8 +56,10 @@ private static void SetUpTestEnvironment() { IsFileSystemCaseSensitive = IsFileSystemCaseSensitiveInternal(); + string initialAssemblyParentFolder = Directory.GetParent(new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath).FullName; + const string sourceRelativePath = @"../../Resources"; - ResourcesDirectory = new DirectoryInfo(sourceRelativePath); + ResourcesDirectory = new DirectoryInfo(Path.Combine(initialAssemblyParentFolder, sourceRelativePath)); // Setup standard paths to our test repositories BareTestRepoPath = Path.Combine(sourceRelativePath, "testrepo.git"); diff --git a/LibGit2Sharp.Tests/packages.config b/LibGit2Sharp.Tests/packages.config index 973dbbaa8..49b8fe8eb 100644 --- a/LibGit2Sharp.Tests/packages.config +++ b/LibGit2Sharp.Tests/packages.config @@ -1,7 +1,7 @@ - + - + - + diff --git a/appveyor.yml b/appveyor.yml index ab6e2a445..09d6d51a1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,10 +18,10 @@ environment: secure: eGVilNg1Yuq+Xj+SW8r3WCtjnzhoDV0sNJkma4NRq7A= version : 0.22.0 matrix: - - xunit_runner: xunit.console.clr4.x86.exe + - xunit_runner: xunit.console.x86.exe Arch: 32 publish_on_success: False - - xunit_runner: xunit.console.clr4.exe + - xunit_runner: xunit.console.exe Arch: 64 publish_on_success: True @@ -112,15 +112,16 @@ test_script: { .\packages\OpenCover\OpenCover.Console.exe ` -register:user ` - -target:$Env:xunit_runner ` - "-targetargs:""$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll"" /noshadow /appveyor" ` + "-target:""$Env:APPVEYOR_BUILD_FOLDER\packages\xunit.runner.console.2.0.0\tools\$Env:xunit_runner""" ` + "-targetargs:""$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll"" -noshadow" ` "-filter:+[LibGit2Sharp]* -[LibGit2Sharp.Tests]*" ` -hideskipped:All ` -output:opencoverCoverage.xml } ElseIf ($Env:SHOULD_RUN_COVERITY_ANALYSIS -eq $False) { - & "$Env:xunit_runner" "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor + & "$Env:APPVEYOR_BUILD_FOLDER\packages\xunit.runner.console.2.0.0\tools\$Env:xunit_runner" ` + "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" -noshadow } after_test: