Skip to content

Commit 7b8e68b

Browse files
committed
Up repo to net5
1 parent 73a7e02 commit 7b8e68b

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

dev/Dash.NET.Dev.fsproj

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net5</TargetFramework>
55
<AssemblyName>Dash.NET.Dev.App</AssemblyName>
66
<EnableDefaultContentItems>false</EnableDefaultContentItems>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Giraffe" Version="4.1.*" />
11-
<PackageReference Include="TaskBuilder.fs" Version="2.1.*" />
10+
<PackageReference Include="Giraffe" Version="5.0.*" />
1211
</ItemGroup>
1312

1413
<ItemGroup>

dev/Program.fs

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ open Microsoft.Extensions.Hosting
99
open Microsoft.Extensions.Logging
1010
open Microsoft.Extensions.DependencyInjection
1111
open Giraffe
12-
open Giraffe.ModelBinding
1312

1413
open Dash.NET
15-
open Plotly.NET
1614

1715
//----------------------------------------------------------------------------------------------------
1816
//============================================== LAYOUT ==============================================
@@ -159,6 +157,7 @@ let main args =
159157
webHostBuilder
160158
.UseContentRoot(contentRoot)
161159
.UseWebRoot(webRoot)
160+
.UseUrls("http://0.0.0.0:5000")
162161
.Configure(Action<IApplicationBuilder> configureApp)
163162
.ConfigureServices(configureServices)
164163
.ConfigureLogging(configureLogging)

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "3.1.302",
3+
"version": "5.0.101",
44
"rollForward": "latestFeature"
55
}
66
}

src/Dash.NET/Dash.NET.fsproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.1</TargetFramework>
4+
<TargetFramework>net5</TargetFramework>
55
<PublishRepositoryUrl>true</PublishRepositoryUrl>
66
<EmbedUntrackedSources>true</EmbedUntrackedSources>
77
<IncludeSymbols>true</IncludeSymbols>
@@ -183,7 +183,8 @@
183183
</ItemGroup>
184184

185185
<ItemGroup>
186-
<PackageReference Include="Giraffe" Version="4.1.0" />
186+
<PackageReference Include="Giraffe" Version="5.0.0" />
187+
<PackageReference Include="Giraffe.ViewEngine" Version="1.4.0" />
187188
<PackageReference Include="Plotly.NET" Version="2.0.0-alpha2" />
188189
</ItemGroup>
189190

src/Dash.NET/DashApp.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Dash.NET
22

33
open Giraffe
4-
open GiraffeViewEngine
4+
open Giraffe.ViewEngine
55
open Views
66
open Plotly.NET
77
open System

src/Dash.NET/Views.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Dash.NET
22

33
module Views =
4-
open Giraffe.GiraffeViewEngine
4+
open Giraffe.ViewEngine
55

66
let createConfigScript (config:DashConfig) =
77
let innerJson = Newtonsoft.Json.JsonConvert.SerializeObject config

tests/Dash.NET.Tests/Dash.NET.Tests.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5</TargetFramework>
66
<GenerateProgramFile>false</GenerateProgramFile>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)