File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/NHibernate.Example.Web Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net461</TargetFramework >
4
+ <TargetFrameworks >netcoreapp2.0;net461</TargetFrameworks >
5
+ <DisableImplicitPackageTargetFallback >true</DisableImplicitPackageTargetFallback >
5
6
</PropertyGroup >
6
7
7
8
<ItemGroup >
14
15
<PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.0.0" />
15
16
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version =" 2.0.0" PrivateAssets =" All" />
16
17
<PackageReference Include =" Microsoft.AspNetCore.StaticFiles" Version =" 2.0.0" />
18
+ <PackageReference Include =" Microsoft.Extensions.PlatformAbstractions" Version =" 1.1.0" />
17
19
<PackageReference Include =" Serilog.AspNetCore" Version =" 2.0.0" />
18
20
<PackageReference Include =" Serilog.Sinks.Console" Version =" 3.1.0" />
19
21
</ItemGroup >
20
22
23
+ <ItemGroup Condition =" '$(TargetFramework)'=='netcoreapp2.0'" >
24
+ <PackageReference Include =" System.Data.SqlClient" Version =" 4.4.2" />
25
+ </ItemGroup >
26
+
21
27
<ItemGroup >
22
28
<DotNetCliToolReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version =" 2.0.0" />
23
29
</ItemGroup >
Original file line number Diff line number Diff line change 32
32
<body >
33
33
@RenderBody()
34
34
35
- @RenderSection( "Scripts", required: false)
35
+ <p >
36
+ @Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.RuntimeFramework
37
+ </p >
38
+
39
+ @RenderSection( "Scripts", required: false)
36
40
</body >
37
41
</html >
You can’t perform that action at this time.
0 commit comments