Skip to content

Commit 53a9b96

Browse files
committed
Update ApplicationUtils to use Guid temp folder.
1 parent 938291c commit 53a9b96

File tree

6 files changed

+3
-2
lines changed

6 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
- Fix Net Core tests not stay after rebuild. (Fix: #40)
1111
### TestAdapter
1212
- Fix application and rebuild issue.
13+
- Update `ApplicationUtils` to use `Guid` temp folder.
1314

1415
## [1.3.1] / 2024-04-02
1516
### Features

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.3.2-alpha</Version>
3+
<Version>1.3.2-beta</Version>
44
</PropertyGroup>
55
</Project>
-34 Bytes
Binary file not shown.
-26 Bytes
Binary file not shown.
-8 Bytes
Binary file not shown.

ricaun.RevitTest.TestAdapter/Services/ApplicationUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static string CreateTemporaryDirectory(string file = null)
5050
ClearTemporaryDirectory(folderDirectory);
5151

5252
string fileName = Path.GetFileNameWithoutExtension(file);
53-
string tempFolderName = $"{fileName}_{DateTime.Now.Ticks}";
53+
string tempFolderName = $"{fileName}_{Guid.NewGuid()}";
5454
string tempDirectory = Path.Combine(folderDirectory, tempFolderName);
5555
Directory.CreateDirectory(tempDirectory);
5656
return tempDirectory;

0 commit comments

Comments
 (0)