Skip to content

Commit 37db7a2

Browse files
authored
Enable KeyVault hosting startup (#149)
1 parent cedf51b commit 37db7a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/Microsoft.AspNetCore.AzureAppServices.SiteExtension/applicationHost.xdt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<environmentVariables xdt:Transform="InsertIfMissing">
1010
<add name="DOTNET_ADDITIONAL_DEPS" value="%XDT_EXTENSIONPATH%\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\;%XDT_EXTENSIONPATH%\additionalDeps\Microsoft.AspNetCore.AzureKeyVault.HostingStartup\;%ProgramFiles%\dotnet\additionalDeps\Microsoft.AspNetCore.AzureAppServices.HostingStartup\" xdt:Locator="Match(name)" xdt:Transform="InsertOrAppendAttribute(Attribute='value')" />
1111
<add name="DOTNET_SHARED_STORE" value="%XDT_EXTENSIONPATH%\store" xdt:Locator="Match(name)" xdt:Transform="InsertOrAppendAttribute(Attribute='value')" />
12-
<add name="ASPNETCORE_HOSTINGSTARTUPASSEMBLIES" value="Microsoft.AspNetCore.AzureAppServices.HostingStartup" xdt:Locator="Match(name)" xdt:Transform="InsertOrAppendAttribute(Attribute='value')" />
12+
<add name="ASPNETCORE_HOSTINGSTARTUPASSEMBLIES" value="Microsoft.AspNetCore.AzureAppServices.HostingStartup;Microsoft.AspNetCore.AzureKeyVault.HostingStartup" xdt:Locator="Match(name)" xdt:Transform="InsertOrAppendAttribute(Attribute='value')" />
1313
</environmentVariables>
1414
</runtime>
1515
</system.webServer>

test/Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests/TransformTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void Transform_EmptyConfig_Added(string configFile)
4444
var startupAssembliesElement = sharedStoreElement.NextSibling;
4545
Assert.Equal("add", startupAssembliesElement.Name);
4646
Assert.Equal("ASPNETCORE_HOSTINGSTARTUPASSEMBLIES", startupAssembliesElement.Attributes["name"].Value);
47-
Assert.Equal("Microsoft.AspNetCore.AzureAppServices.HostingStartup", startupAssembliesElement.Attributes["value"].Value);
47+
Assert.Equal("Microsoft.AspNetCore.AzureAppServices.HostingStartup;Microsoft.AspNetCore.AzureKeyVault.HostingStartup", startupAssembliesElement.Attributes["value"].Value);
4848
}
4949

5050
[Fact]
@@ -76,7 +76,7 @@ public void Transform_ExistingValue_AppendsValue()
7676
var startupAssembliesElement = sharedStoreElement.NextSibling;
7777
Assert.Equal("add", startupAssembliesElement.Name);
7878
Assert.Equal("ASPNETCORE_HOSTINGSTARTUPASSEMBLIES", startupAssembliesElement.Attributes["name"].Value);
79-
Assert.Equal("ExistingValue2;Microsoft.AspNetCore.AzureAppServices.HostingStartup", startupAssembliesElement.Attributes["value"].Value);
79+
Assert.Equal("ExistingValue2;Microsoft.AspNetCore.AzureAppServices.HostingStartup;Microsoft.AspNetCore.AzureKeyVault.HostingStartup", startupAssembliesElement.Attributes["value"].Value);
8080
}
8181

8282
private static XmlDocument LoadDocAndRunTransform(string docName)

0 commit comments

Comments
 (0)