File tree 2 files changed +5
-4
lines changed
GitVersion.Testing/Internal
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
<PackageVersion Include =" LibGit2Sharp.NativeBinaries" Version =" 2.0.315-alpha.0.9" />
10
10
<PackageVersion Include =" JetBrains.Annotations" Version =" 2022.3.1" />
11
11
<PackageVersion Include =" Microsoft.Build.Utilities.Core" Version =" 17.5.0" />
12
- <PackageVersion Include =" Microsoft.Build" Version =" 17.3.2 " />
12
+ <PackageVersion Include =" Microsoft.Build" Version =" 17.5.0 " />
13
13
<PackageVersion Include =" Microsoft.CodeAnalysis.PublicApiAnalyzers" Version =" 3.3.4" />
14
14
<PackageVersion Include =" Microsoft.Extensions.Configuration.CommandLine" Version =" 7.0.0" />
15
15
<PackageVersion Include =" Microsoft.Extensions.DependencyInjection" Version =" 7.0.0" />
22
22
<PackageVersion Include =" Mono.Cecil" Version =" 0.11.4" />
23
23
<PackageVersion Include =" Buildalyzer" Version =" 5.0.0" />
24
24
<PackageVersion Include =" coverlet.msbuild" Version =" 3.2.0" />
25
- <PackageVersion Include =" MSBuild.ProjectCreation" Version =" 8.3.0 " />
25
+ <PackageVersion Include =" MSBuild.ProjectCreation" Version =" 9.0.1 " />
26
26
<PackageVersion Include =" NSubstitute" Version =" 5.0.0" />
27
27
<PackageVersion Include =" NUnit" Version =" 3.13.3" />
28
28
<PackageVersion Include =" NUnit.Analyzers" Version =" 3.6.0" />
37
37
<PackageVersion Include =" System.Text.Encodings.Web" Version =" 7.0.0" />
38
38
<PackageVersion Include =" YamlDotNet" Version =" 13.0.1" />
39
39
</ItemGroup >
40
- </Project >
40
+ </Project >
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ namespace GitVersion.Testing.Internal;
2
2
3
3
internal static class PathHelper
4
4
{
5
- public static string GetTempPath ( ) => Path . Combine ( Path . GetTempPath ( ) , "TestRepositories" , Guid . NewGuid ( ) . ToString ( ) ) ;
5
+ public static string GetCurrentDirectory ( ) => Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) ?? throw new InvalidOperationException ( ) ;
6
+ public static string GetTempPath ( ) => Path . Combine ( GetCurrentDirectory ( ) , "TestRepositories" , Guid . NewGuid ( ) . ToString ( ) ) ;
6
7
}
You can’t perform that action at this time.
0 commit comments