Skip to content

Commit 69003b6

Browse files
committed
Fixing The path is not of a legal form error in net462
1 parent 9f7b826 commit 69003b6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

PactNet.Tests/PactNet.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
1818
<PackageReference Include="NSubstitute" Version="2.0.3" />
19-
<PackageReference Include="PactNet.Windows" Version="2.2.1" />
19+
<PackageReference Include="PactNet.Windows" Version="2.2.3" />
2020
<PackageReference Include="xunit" Version="2.2.0" />
2121
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
2222
</ItemGroup>

PactNet/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal static class Constants
1111
public const string PactPath = "/pact";
1212

1313
#if USE_NET4X
14-
public static string BuildDirectory = new Uri(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase)).LocalPath;
14+
public static string BuildDirectory = new Uri(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().CodeBase.Replace("file:///", ""))).LocalPath;
1515
public static string DefaultPactDir = Path.GetFullPath($"{BuildDirectory}{Path.DirectorySeparatorChar}..{Path.DirectorySeparatorChar}..{Path.DirectorySeparatorChar}pacts{Path.DirectorySeparatorChar}");
1616
public static string DefaultLogDir = Path.GetFullPath($"{BuildDirectory}{Path.DirectorySeparatorChar}..{Path.DirectorySeparatorChar}..{Path.DirectorySeparatorChar}logs{Path.DirectorySeparatorChar}");
1717
#else

Samples/EventApi/Consumer.Tests/Consumer.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Reference Include="System.Net.Http" />
88
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
99
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
10-
<PackageReference Include="PactNet.Windows" Version="2.2.1" />
10+
<PackageReference Include="PactNet.Windows" Version="2.2.3" />
1111
<PackageReference Include="xunit" Version="2.2.0" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
1313
</ItemGroup>

Samples/EventApi/Provider.Api.Web.Tests/Provider.Api.Web.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Owin.Security.OAuth" Version="2.1.0" />
1515
<PackageReference Include="Microsoft.Owin.Host.HttpListener" Version="3.1.0" />
1616
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
17-
<PackageReference Include="PactNet.Windows" Version="2.2.1" />
17+
<PackageReference Include="PactNet.Windows" Version="2.2.3" />
1818
<PackageReference Include="xunit" Version="2.2.0" />
1919
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
2020
</ItemGroup>

0 commit comments

Comments
 (0)