Skip to content

Commit 7c091c3

Browse files
committed
Upgrade to ASP.NET Core 2.2 app
1 parent 4cde914 commit 7c091c3

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "coreclr",
1010
"request": "launch",
1111
"preLaunchTask": "build",
12-
"program": "${workspaceFolder}/src/bin/Debug/netcoreapp2.1/gitattributes.dll",
12+
"program": "${workspaceFolder}/src/bin/Debug/netcoreapp2.2/gitattributes.dll",
1313
"args": [],
1414
"cwd": "${workspaceFolder}/src",
1515
"stopAtEntry": false,

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "2.1.403"
3+
"version": "2.2.101"
44
}
55
}

src/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void ConfigureServices(IServiceCollection services)
3737
});
3838

3939
// Add MVC services to the services container.
40-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
40+
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
4141
services.Configure<MvcOptions>(options =>
4242
{
4343
options.OutputFormatters.Clear();

src/gitattributes.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
<PropertyGroup>
44
<VersionPrefix>1.2.0</VersionPrefix>
5-
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<TargetFramework>netcoreapp2.2</TargetFramework>
66
<AssemblyName>gitattributes</AssemblyName>
77
<PackageId>gitattributes</PackageId>
8+
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
89
</PropertyGroup>
910

1011
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.5" />
12+
<PackageReference Include="Microsoft.AspNetCore.App" />
1213
<PackageReference Include="NWebsec.AspNetCore.Middleware" Version="2.0.0" />
13-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.5.0" />
14+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.5.1" />
1415
</ItemGroup>
1516

1617
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">

src/web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<system.webServer>
99
<handlers>
10-
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
10+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified"/>
1111
</handlers>
1212
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
1313

0 commit comments

Comments
 (0)