Skip to content

Commit 13dff9f

Browse files
authored
Merge pull request #168 from fsprojects/net5
.NET 6
2 parents 84b6337 + 6105f8e commit 13dff9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1626
-1171
lines changed

.config/dotnet-tools.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,28 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "5.247.4",
6+
"version": "7.1.4",
77
"commands": [
88
"paket"
99
]
1010
},
1111
"fake-cli": {
12-
"version": "5.20.2",
12+
"version": "5.22.0",
1313
"commands": [
1414
"fake"
1515
]
1616
},
1717
"dotnet-serve": {
18-
"version": "1.7.131",
18+
"version": "1.10.93",
1919
"commands": [
2020
"dotnet-serve"
2121
]
22+
},
23+
"fantomas-tool": {
24+
"version": "5.0.0-alpha-002",
25+
"commands": [
26+
"fantomas"
27+
]
2228
}
2329
}
2430
}

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ insert_final_newline = true
1515
[*.fs]
1616
indent_size = 4
1717
indent_style = space
18+
max_line_length=150
19+
fsharp_max_function_binding_width=10
20+
fsharp_max_infix_operator_expression=70
21+
fsharp_space_before_parameter=false
22+
fsharp_space_before_lowercase_invocation=false
23+
fsharp_multiline_block_brackets_on_same_column=true
24+
fsharp_ragnarok=true

.github/ISSUE_TEMPLATE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,28 @@ Please provide a succinct description of your issue.
66

77
Please provide the steps required to reproduce the problem
88

9-
1. Step A
9+
1. Type provider type definition with parameters
1010

11-
2. Step B
11+
2. Sample schema or relevant schema part
1212

1313
### Expected behavior
1414

1515
Please provide a description of the behavior you expect.
1616

1717
### Actual behavior
1818

19-
Please provide a description of the actual behavior you observe.
19+
Please provide a description of the actual behavior you observe.
2020

2121
### Known workarounds
2222

2323
Please provide a description of any known workarounds.
2424

25-
### Related information
25+
### Affected Type Providers
26+
27+
- [ ] SwaggerClientProvider
28+
- [ ] OpenApiClientProvider
29+
30+
### Related information
2631

2732
* Operating system
2833
* Branch

.github/workflows/dotnetcore.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
branches:
99
- master
10+
- net5
1011

1112
jobs:
1213
build:
@@ -15,7 +16,7 @@ jobs:
1516
fail-fast: false
1617
matrix:
1718
os: [ubuntu-latest, windows-latest, macOS-latest]
18-
dotnet: [3.1.417]
19+
dotnet: [6.0.201]
1920
runs-on: ${{ matrix.os }}
2021

2122
steps:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,5 @@ ASALocalRun/
339339

340340
# BeatPulse healthcheck temp database
341341
healthchecksdb
342+
343+
.ionide

build.fsx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
#r @"paket:
22
source https://nuget.org/api/v2
3-
framework netstandard2.0
3+
framework net6.0
4+
nuget FSharp.Core 4.7.2
45
nuget Fake.Core.Target
56
nuget Fake.Core.Process
6-
nuget Fake.Core.ReleaseNotes
7+
nuget Fake.Core.ReleaseNotes
78
nuget Fake.IO.FileSystem
89
nuget Fake.DotNet.Cli
910
nuget Fake.DotNet.MSBuild
1011
nuget Fake.DotNet.AssemblyInfoFile
1112
nuget Fake.DotNet.Paket
12-
nuget Fake.DotNet.Testing.Expecto
13-
nuget Fake.DotNet.FSFormatting
13+
nuget Fake.DotNet.Testing.Expecto
14+
nuget Fake.DotNet.FSFormatting
1415
nuget Fake.Tools.Git
1516
nuget Fake.Api.GitHub //"
16-
17-
#if !FAKE
1817
#load "./.fake/build.fsx/intellisense.fsx"
19-
#r "netstandard" // Temp fix for https://github.com/fsharp/FAKE/issues/1985
20-
#endif
2118

22-
open Fake
19+
open Fake
2320
open Fake.Core.TargetOperators
24-
open Fake.Core
21+
open Fake.Core
2522
open Fake.IO
2623
open Fake.IO.FileSystemOperators
2724
open Fake.IO.Globbing.Operators
@@ -70,7 +67,7 @@ Target.create "AssemblyInfo" (fun _ ->
7067
Target.create "Clean" (fun _ ->
7168
!! "**/**/bin/" |> Shell.cleanDirs
7269
//!! "**/**/obj/" |> Shell.cleanDirs
73-
70+
7471
Shell.cleanDirs ["bin"; "temp"]
7572
try File.Delete("swaggerlog") with | _ -> ()
7673
)
@@ -90,11 +87,11 @@ let webApiInputStream = StreamRef.Empty
9087
Target.create "StartServer" (fun _ ->
9188
Target.activateFinal "StopServer"
9289

93-
CreateProcess.fromRawCommandLine "dotnet" "tests/Swashbuckle.WebApi.Server/bin/Release/netcoreapp3.1/Swashbuckle.WebApi.Server.dll"
90+
CreateProcess.fromRawCommandLine "dotnet" "tests/Swashbuckle.WebApi.Server/bin/Release/net6.0/Swashbuckle.WebApi.Server.dll"
9491
|> CreateProcess.withStandardInput (CreatePipe webApiInputStream)
9592
|> Proc.start
9693
|> ignore
97-
94+
9895
// We need delay to guarantee that server is bootstrapped
9996
System.Threading.Thread.Sleep(2000)
10097
)
@@ -118,7 +115,7 @@ Target.create "BuildTests" (fun _ ->
118115
let runTests assembly =
119116
[Path.Combine(__SOURCE_DIRECTORY__, assembly)]
120117
|> Testing.Expecto.run (fun p ->
121-
{ p with
118+
{ p with
122119
WorkingDirectory = __SOURCE_DIRECTORY__
123120
FailOnFocusedTests = true
124121
PrintVersion = true
@@ -128,11 +125,11 @@ let runTests assembly =
128125
})
129126

130127
Target.create "RunUnitTests" (fun _ ->
131-
runTests "tests/SwaggerProvider.Tests/bin/Release/netcoreapp3.1/SwaggerProvider.Tests.dll"
128+
runTests "tests/SwaggerProvider.Tests/bin/Release/net6.0/SwaggerProvider.Tests.dll"
132129
)
133130

134131
Target.create "RunIntegrationTests" (fun _ ->
135-
runTests "tests/SwaggerProvider.ProviderTests/bin/Release/netcoreapp3.1/SwaggerProvider.ProviderTests.dll"
132+
runTests "tests/SwaggerProvider.ProviderTests/bin/Release/net6.0/SwaggerProvider.ProviderTests.dll"
136133
)
137134

138135
Target.create "RunTests" ignore
@@ -209,7 +206,7 @@ Target.create "BrowseDocs" (fun _ ->
209206

210207
Target.create "Release" (fun _ ->
211208
// not fully converted from FAKE 4
212-
209+
213210
// StageAll ""
214211
// Git.Commit.Commit "" (sprintf "Bump version to %s" release.NugetVersion)
215212
// Branches.push ""

0 commit comments

Comments
 (0)