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

Commit

Permalink
添加core2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringLeee committed Jan 10, 2020
1 parent 056a3b3 commit 7212f67
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
11 changes: 9 additions & 2 deletions src/HttpReports.Dashboard/HttpReports.Dashboard.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1</TargetFrameworks>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,6 +21,13 @@
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
</ItemGroup>


<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.2'">
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0" />
</ItemGroup>


<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'">
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="2.1.2" PrivateAssets="All" />
Expand Down
2 changes: 1 addition & 1 deletion src/HttpReports.Dashboard/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void Main(string[] args)
CreateHostBuilder(args).Build().Run();
}

#if NETCOREAPP2_1
#if NETCOREAPP2_1 || NETCOREAPP2_2

public static IWebHostBuilder CreateHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
Expand Down
2 changes: 1 addition & 1 deletion src/HttpReports.Dashboard/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void Configure(IApplicationBuilder app)
app.UseStaticFiles();
app.UseCookiePolicy();

#if NETCOREAPP2_1
#if NETCOREAPP2_1 || NETCOREAPP2_2

app.UseMvc(routes =>
{
Expand Down
6 changes: 3 additions & 3 deletions src/HttpReports.Dashboard/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"ConnectionStrings": {
"HttpReports": "Max Pool Size = 512;server=.;uid=sa;pwd=123456;database=HttpReports;"
//"HttpReports": "DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456"
//"HttpReports": "Max Pool Size = 512;server=.;uid=sa;pwd=123456;database=HttpReports;"
"HttpReports": "DataBase=HttpReports;Data Source=localhost;User Id=root;Password=123456"
},
"HttpReportsConfig": {
"DBType": "SqlServer", // MySql Or SqlServer
"DBType": "MySql", // MySql Or SqlServer
"UserName": "admin",
"Password": "123456"
}
Expand Down

0 comments on commit 7212f67

Please sign in to comment.