Skip to content

Commit

Permalink
Update ApplicationUtils to use Guid temp folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed May 14, 2024
1 parent 938291c commit 53a9b96
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fix Net Core tests not stay after rebuild. (Fix: #40)
### TestAdapter
- Fix application and rebuild issue.
- Update `ApplicationUtils` to use `Guid` temp folder.

## [1.3.1] / 2024-04-02
### Features
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.3.2-alpha</Version>
<Version>1.3.2-beta</Version>
</PropertyGroup>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static string CreateTemporaryDirectory(string file = null)
ClearTemporaryDirectory(folderDirectory);

string fileName = Path.GetFileNameWithoutExtension(file);
string tempFolderName = $"{fileName}_{DateTime.Now.Ticks}";
string tempFolderName = $"{fileName}_{Guid.NewGuid()}";
string tempDirectory = Path.Combine(folderDirectory, tempFolderName);
Directory.CreateDirectory(tempDirectory);
return tempDirectory;
Expand Down

0 comments on commit 53a9b96

Please sign in to comment.