Skip to content

Commit 2d28179

Browse files
authored
Merge pull request #4443 from arturcic/feature/system.io
Replace direct file system access with System.IO.Abstractions
2 parents 6ae2017 + 66658c1 commit 2d28179

File tree

117 files changed

+646
-886
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+646
-886
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,5 @@ node_modules
136136

137137
dogfood/
138138
new-cli/log.txt
139+
140+
new-cli/logs/

new-cli/.idea/.idea.GitVersion/.idea/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

new-cli/.idea/.idea.GitVersion/.idea/indexLayout.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

new-cli/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<PackageVersion Include="Serilog.Sinks.File" Version="6.0.0" />
2222
<PackageVersion Include="Serilog.Sinks.Map" Version="2.0.0" />
2323
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.25153.1" />
24+
<PackageVersion Include="System.IO.Abstractions" Version="22.0.11" />
2425
<PackageVersion Include="System.Text.Json" Version="9.0.2" />
2526
</ItemGroup>
2627
</Project>

new-cli/GitVersion.Common/GitVersion.Common.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
</ItemGroup>
55
<ItemGroup>
66
<Compile Include="..\..\src\GitVersion.Core\Core\Abstractions\IEnvironment.cs" Link="Infrastructure\%(Filename)%(Extension)" />
7-
<Compile Include="..\..\src\GitVersion.Core\Core\Abstractions\IFileSystem.cs" Link="Infrastructure\%(Filename)%(Extension)" />
87
<Compile Include="..\..\src\GitVersion.Core\Core\Exceptions\WarningException.cs" Link="Exceptions\%(Filename)%(Extension)"/>
98
<Compile Include="..\..\src\GitVersion.Core\Core\RegexPatterns.cs" Link="%(Filename)%(Extension)" />
109
<Compile Include="..\..\src\GitVersion.Core\Extensions\DictionaryExtensions.cs" Link="%(Filename)%(Extension)" />

new-cli/GitVersion.Core/CoreModule.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.IO.Abstractions;
12
using GitVersion.Infrastructure;
23

34
namespace GitVersion;

new-cli/GitVersion.Core/GitVersion.Core.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
<PackageReference Include="Serilog.Sinks.Console" />
99
<PackageReference Include="Serilog.Sinks.File" />
1010
<PackageReference Include="Serilog.Sinks.Map" />
11+
<PackageReference Include="System.IO.Abstractions" />
1112
</ItemGroup>
1213
<ItemGroup>
1314
<Compile Include="..\..\src\GitVersion.Core\Core\Environment.cs">
1415
<Link>Infrastructure\Environment.cs</Link>
1516
</Compile>
16-
<Compile Include="..\..\src\GitVersion.Core\Core\FileSystem.cs">
17-
<Link>Infrastructure\FileSystem.cs</Link>
18-
</Compile>
1917
</ItemGroup>
2018
</Project>

new-cli/docs/calculate.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
calculate -l c:\logs\log.txt --work-dir C:\Projects\OSS\GitTools\GitVersion --verbosity verbose
1+
calculate -l ./logs/log.txt --work-dir . --verbosity verbose

new-cli/docs/output-project.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
output --output-dir C:\Projects\OSS\GitTools\GitVersion --input-file version.json project --project-file project.csproj
1+
output --output-dir ./output --input-file version.json project --project-file project.csproj

new-cli/docs/output-wix.rsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
output --output-dir C:\Projects\OSS\GitTools\GitVersion --input-file version.json wix --wix-file project.wix
1+
output --output-dir ./output --input-file version.json wix --wix-file project.wix

0 commit comments

Comments
 (0)