File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public class SharedFxTests
15
15
{
16
16
private readonly string _expectedTfm ;
17
17
private readonly string _expectedRid ;
18
+ private readonly string _expectedVersionFileName ;
18
19
private readonly string _sharedFxRoot ;
19
20
private readonly ITestOutputHelper _output ;
20
21
@@ -26,6 +27,7 @@ public SharedFxTests(ITestOutputHelper output)
26
27
_sharedFxRoot = string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) )
27
28
? Path . Combine ( TestData . GetTestDataValue ( "SharedFrameworkLayoutRoot" ) , "shared" , TestData . GetTestDataValue ( "RuntimePackageVersion" ) )
28
29
: Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) ;
30
+ _expectedVersionFileName = string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) ) ? ".version" : "Microsoft.AspNetCore.App.versions.txt" ;
29
31
}
30
32
31
33
[ Fact ]
@@ -133,7 +135,7 @@ public void ItContainsValidDepsJson()
133
135
[ Fact ]
134
136
public void ItContainsVersionFile ( )
135
137
{
136
- var versionFile = Path . Combine ( _sharedFxRoot , ".version" ) ;
138
+ var versionFile = Path . Combine ( _sharedFxRoot , _expectedVersionFileName ) ;
137
139
AssertEx . FileExists ( versionFile ) ;
138
140
var lines = File . ReadAllLines ( versionFile ) ;
139
141
Assert . Equal ( 2 , lines . Length ) ;
You can’t perform that action at this time.
0 commit comments