Upgrade .NET version
Fixes
MODIFY
azure-cs-msi-keyvault-rbac/AppStack.cs
azure-cs-msi-keyvault-rbac/AppStack.cs
@@ -84,7 +84,7 @@ class AppStack : Stack
StorageAccountName = storageAccount.Name,
StorageContainerName = storageContainer.Name,
Type = "Block",
- Source = new FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish"),
+ Source = new FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish"),
});
var clientConfig = Output.Create(GetClientConfig.InvokeAsync());

MODIFY
azure-cs-msi-keyvault-rbac/webapp/Startup.cs
azure-cs-msi-keyvault-rbac/webapp/Startup.cs
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
namespace webapp
{
@@ -26,7 +27,7 @@ namespace webapp
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{

MODIFY
azure-cs-msi-keyvault-rbac/webapp/webapp.csproj
azure-cs-msi-keyvault-rbac/webapp/webapp.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore" Version="2.1.7" />
- <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.6.0" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.0.3" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.3" />

MODIFY
azure-py-msi-keyvault-rbac/__main__.py
azure-py-msi-keyvault-rbac/__main__.py
@@ -72,7 +72,7 @@ blob = storage.Blob(
storage_account_name=storage_account.name,
storage_container_name=container.name,
type="Block",
- source=asset.FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish")
+ source=asset.FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish")
)
client_config = core.get_client_config()

MODIFY
azure-py-msi-keyvault-rbac/webapp/Startup.cs
azure-py-msi-keyvault-rbac/webapp/Startup.cs
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
namespace webapp
{
@@ -26,7 +27,7 @@ namespace webapp
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{

MODIFY
azure-py-msi-keyvault-rbac/webapp/webapp.csproj
azure-py-msi-keyvault-rbac/webapp/webapp.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore" Version="2.1.7" />
- <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.6.0" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.0.3" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.3" />

MODIFY
azure-ts-msi-keyvault-rbac/index.ts
azure-ts-msi-keyvault-rbac/index.ts
@@ -64,7 +64,7 @@ const blob = new azure.storage.Blob("zip", {
storageContainerName: storageContainer.name,
type: "Block",
- source: new pulumi.asset.FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish"),
+ source: new pulumi.asset.FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish"),
});
const clientConfig = azure.core.getClientConfig({ async: true });

MODIFY
azure-ts-msi-keyvault-rbac/webapp/Startup.cs
azure-ts-msi-keyvault-rbac/webapp/Startup.cs
@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
namespace webapp
{
@@ -26,7 +27,7 @@ namespace webapp
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IHostingEnvironment env)
+ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{

MODIFY
azure-ts-msi-keyvault-rbac/webapp/webapp.csproj
azure-ts-msi-keyvault-rbac/webapp/webapp.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
- <TargetFramework>netcoreapp2.2</TargetFramework>
+ <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.AspNetCore" Version="2.1.7" />
- <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.6.0" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.0.3" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.3" />

Upgrade .NET version (#879)

Fixes #877