File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
Hosting/Server.IntegrationTesting/src/Common
Common.FunctionalTests/Inprocess
InProcessForwardsCompatWebSite Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
using System ;
@@ -17,6 +17,7 @@ public static class DotNetCommands
17
17
public static string GetDotNetHome ( )
18
18
{
19
19
var dotnetHome = Environment . GetEnvironmentVariable ( "DOTNET_HOME" ) ;
20
+ var dotnetRoot = Environment . GetEnvironmentVariable ( "DOTNET_ROOT" ) ;
20
21
var userProfile = Environment . GetEnvironmentVariable ( "USERPROFILE" ) ;
21
22
var home = Environment . GetEnvironmentVariable ( "HOME" ) ;
22
23
@@ -25,6 +26,11 @@ public static string GetDotNetHome()
25
26
{
26
27
result = dotnetHome ;
27
28
}
29
+ else if ( ! string . IsNullOrEmpty ( dotnetRoot ) )
30
+ {
31
+ // DOTNET_ROOT has x64 appended to the path, which we append again in GetDotNetInstallDir
32
+ result = dotnetRoot . Substring ( 0 , dotnetRoot . Length - 3 ) ;
33
+ }
28
34
else if ( ! string . IsNullOrEmpty ( userProfile ) )
29
35
{
30
36
result = Path . Combine ( userProfile , _dotnetFolderName ) ;
Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ public async Task StartsWithDotnetOnThePath(string path)
108
108
Assert . Equal ( 1 , TestSink . Writes . Count ( w => w . Message . Contains ( "Invoking where.exe to find dotnet.exe" ) ) ) ;
109
109
}
110
110
111
-
112
111
[ SkipOnHelix ] // https://github.com/aspnet/AspNetCore/issues/7972
113
112
[ ConditionalTheory ]
114
113
[ InlineData ( RuntimeArchitecture . x64 ) ]
@@ -186,16 +185,18 @@ public async Task HelloWorld(TestVariant variant)
186
185
await StartAsync ( deploymentParameters ) ;
187
186
}
188
187
189
- [ SkipOnHelix ] // https://github.com/aspnet/AspNetCore/issues/7972
190
188
[ ConditionalFact ]
191
189
[ RequiresIIS ( IISCapability . PoolEnvironmentVariables ) ]
192
190
public async Task StartsWithPortableAndBootstraperExe ( )
193
191
{
194
192
var deploymentParameters = _fixture . GetBaseDeploymentParameters ( _fixture . InProcessTestSite ) ;
193
+ deploymentParameters . TransformPath ( ( path , root ) => "InProcessWebSite.exe" ) ;
194
+ deploymentParameters . TransformArguments ( ( arguments , root ) => "" ) ;
195
+
195
196
// We need the right dotnet on the path in IIS
196
197
deploymentParameters . EnvironmentVariables [ "PATH" ] = Path . GetDirectoryName ( DotNetCommands . GetDotNetExecutable ( deploymentParameters . RuntimeArchitecture ) ) ;
198
+
197
199
// ReferenceTestTasks is workaround for https://github.com/dotnet/sdk/issues/2482
198
- deploymentParameters . AdditionalPublishParameters = "AppHost" ;
199
200
var deploymentResult = await DeployAsync ( deploymentParameters ) ;
200
201
201
202
Assert . True ( File . Exists ( Path . Combine ( deploymentResult . ContentRoot , "InProcessWebSite.exe" ) ) ) ;
Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup Condition =" '$(OS)' == 'Windows_NT'" >
11
- <!-- UseAppHost is a workaround for https://github.com/aspnet/websdk/issues/422 -->
12
- <TestAssetPublishProfile Include =" Portable" Properties =" UseAppHost=false;TargetFramework=netcoreapp3.0" />
11
+ <TestAssetPublishProfile Include =" Portable" Properties =" TargetFramework=netcoreapp3.0" />
13
12
<TestAssetPublishProfile Include =" Standalone-x64" Properties =" RuntimeIdentifier=win-x64;" />
14
13
<TestAssetPublishProfile Include =" Standalone-x86" Properties =" RuntimeIdentifier=win-x86;" />
15
- <TestAssetPublishProfile Include =" AppHost" Properties =" RuntimeIdentifier=win-x64;UseAppHost=true;SelfContained=false;" />
16
14
</ItemGroup >
17
15
18
16
<ItemGroup >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web" >
1
+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<Import Project =" ..\..\..\..\build\testsite.props" />
4
4
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup Condition =" '$(OS)' == 'Windows_NT'" >
11
- <!-- UseAppHost is a workaround for https://github.com/aspnet/websdk/issues/422 -->
12
- <TestAssetPublishProfile Include =" Portable" Properties =" UseAppHost=false;TargetFramework=netcoreapp3.0" />
11
+ <TestAssetPublishProfile Include =" Portable" Properties =" TargetFramework=netcoreapp3.0" />
13
12
<TestAssetPublishProfile Include =" Standalone-x64" Properties =" RuntimeIdentifier=win-x64;" />
14
13
<TestAssetPublishProfile Include =" Standalone-x86" Properties =" RuntimeIdentifier=win-x86;" />
15
- <TestAssetPublishProfile Include =" AppHost" Properties =" RuntimeIdentifier=win-x64;UseAppHost=true;SelfContained=false;" />
16
14
</ItemGroup >
17
15
18
16
<ItemGroup >
You can’t perform that action at this time.
0 commit comments