Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 7212f67

Browse files
committed
添加core2.2
1 parent 056a3b3 commit 7212f67

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/HttpReports.Dashboard/HttpReports.Dashboard.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
5-
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
4+
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
5+
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

88
<ItemGroup>
@@ -21,6 +21,13 @@
2121
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
2222
</ItemGroup>
2323

24+
25+
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.2'">
26+
<PackageReference Include="Microsoft.AspNetCore.App" />
27+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0" />
28+
</ItemGroup>
29+
30+
2431
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'">
2532
<PackageReference Include="Microsoft.AspNetCore.App" />
2633
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="2.1.2" PrivateAssets="All" />

src/HttpReports.Dashboard/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void Main(string[] args)
1111
CreateHostBuilder(args).Build().Run();
1212
}
1313

14-
#if NETCOREAPP2_1
14+
#if NETCOREAPP2_1 || NETCOREAPP2_2
1515

1616
public static IWebHostBuilder CreateHostBuilder(string[] args) =>
1717
WebHost.CreateDefaultBuilder(args)

src/HttpReports.Dashboard/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void Configure(IApplicationBuilder app)
4848
app.UseStaticFiles();
4949
app.UseCookiePolicy();
5050

51-
#if NETCOREAPP2_1
51+
#if NETCOREAPP2_1 || NETCOREAPP2_2
5252

5353
app.UseMvc(routes =>
5454
{

src/HttpReports.Dashboard/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"ConnectionStrings": {
3-
"HttpReports": "Max Pool Size = 512;server=.;uid=sa;pwd=123456;database=HttpReports;"
4-
//"HttpReports": "DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456"
3+
//"HttpReports": "Max Pool Size = 512;server=.;uid=sa;pwd=123456;database=HttpReports;"
4+
"HttpReports": "DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456"
55
},
66
"HttpReportsConfig": {
7-
"DBType": "SqlServer", // MySql Or SqlServer
7+
"DBType": "MySql", // MySql Or SqlServer
88
"UserName": "admin",
99
"Password": "123456"
1010
}

0 commit comments

Comments
 (0)