From 95b45da25afac76c006102da473cc505b79cbb2e Mon Sep 17 00:00:00 2001 From: NicolasDorier Date: Wed, 13 Sep 2017 16:25:33 +0900 Subject: [PATCH] Fix vs adding repo as submodule --- BTCPayServer.Tests/NBXplorerTester.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BTCPayServer.Tests/NBXplorerTester.cs b/BTCPayServer.Tests/NBXplorerTester.cs index a543a459c..6bf184509 100644 --- a/BTCPayServer.Tests/NBXplorerTester.cs +++ b/BTCPayServer.Tests/NBXplorerTester.cs @@ -47,6 +47,12 @@ namespace BTCPayServer.Tests launcher.PopDirectory(); launcher.Run("git", "pull"); launcher.Run("git", "checkout master"); + try + { + //Need to do that or VS insist in adding this repo as submodules :/ + Utils.DeleteDirectory(Path.GetFullPath(Path.Combine(launcher.CurrentDirectory, "..", ".git"))); + } + catch { } launcher.Run("dotnet", "build /p:Configuration=Release"); Assert.True(launcher.GoTo(new[] { "bin", "Release", "netcoreapp2.0" }), "Could not build NBXplorer");