Skip to content

Commit 672a32d

Browse files
authored
Merge pull request #22 from fsprojects/dotnet6
.NET 6 support
2 parents c6ac29d + 2e7f092 commit 672a32d

File tree

59 files changed

+779
-3043
lines changed

Some content is hidden

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

59 files changed

+779
-3043
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"fsharp.formatting.commandtool": {
18-
"version": "9.0.1",
18+
"version": "11.4.3",
1919
"commands": [
2020
"fsdocs"
2121
]

.github/workflows/ci.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-dotnet@v1
1313
with:
14-
dotnet-version: '6.0.300'
14+
dotnet-version: '6.0.400'
1515
- name: Restore
1616
run: |
1717
dotnet tool restore
@@ -29,7 +29,6 @@ jobs:
2929
- name: Test
3030
run: |
3131
dotnet fake build -t Test -- Release
32-
dotnet fake build -t BuildTemplateProjects -- Release
3332
3433
build-macos:
3534
name: CI (macOS)
@@ -39,18 +38,11 @@ jobs:
3938
- uses: actions/checkout@v2
4039
- uses: actions/setup-dotnet@v1
4140
with:
42-
dotnet-version: '6.0.300'
43-
- name: setup-xamarin
44-
uses: maxim-lobanov/setup-xamarin@v1
45-
with:
46-
mono-version: 6
47-
# xamarin-mac-version: 7
48-
xcode-version: 12.x
49-
# temporary workaround for https://github.com/xamarin/xamarin-macios/issues/10652 until Xamarin.Mac 7.4.0.10 lands in GitHub Actions
50-
- name: setup-xamarin-mac-patched
41+
dotnet-version: '6.0.400'
42+
- name: Install workloads
5143
run: |
52-
curl -o xamarinmac.pkg 'https://bosstoragemirror.blob.core.windows.net/wrench/xcode12.4/a4c70e7d04e3904d17aa60f6d640eb048081c757/4477741/package/notarized/xamarin.mac-7.4.0.10.pkg'
53-
sudo installer -pkg xamarinmac.pkg -target /
44+
dotnet tool restore
45+
sudo dotnet workload install macos
5446
- name: Restore
5547
run: |
5648
dotnet tool restore
@@ -67,4 +59,3 @@ jobs:
6759
- name: Test
6860
run: |
6961
dotnet fake build -t Test -- Release
70-
dotnet fake build -t BuildTemplateProjects -- Release
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test Templates
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build-windows:
7+
name: Test Templates (Windows)
8+
runs-on: windows-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-dotnet@v1
13+
with:
14+
dotnet-version: '6.0.300'
15+
- name: Restore
16+
run: |
17+
dotnet tool restore
18+
dotnet paket restore
19+
- name: Test templates
20+
run: |
21+
dotnet fake build -t BuildTemplateProjects -- Release
22+
23+
build-macos:
24+
name: Test Templates (macOS)
25+
runs-on: macos-latest
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: '6.0.300'
32+
- name: Install workloads
33+
run: |
34+
dotnet tool restore
35+
sudo dotnet workload install macos
36+
- name: Restore
37+
run: |
38+
dotnet tool restore
39+
dotnet paket restore
40+
- name: Test templates
41+
run: |
42+
dotnet fake build -t BuildTemplateProjects -- Release

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<EnableWindowsTargeting>True</EnableWindowsTargeting>
4+
</PropertyGroup>
5+
</Project>

Examples/Examples.WinForms.Chromium/Examples.WinForms.Chromium.fsproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33
<PropertyGroup>
4+
<TargetFrameworks>net6.0-windows;net48</TargetFrameworks>
45
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>net5.0-Windows;net48</TargetFrameworks>
6+
<CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
7+
<PlatformTarget>AnyCPU</PlatformTarget>
68
<UseWindowsForms>true</UseWindowsForms>
79
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
810
<ApplicationIcon />

Examples/Examples.Wpf.Chromium/Examples.Wpf.Chromium.fsproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>net5.0-Windows;net48</TargetFrameworks>
5+
<TargetFrameworks>net6.0-windows;net48</TargetFrameworks>
6+
<CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>
7+
<PlatformTarget>AnyCPU</PlatformTarget>
68
<UseWPF>true</UseWPF>
79
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
810
<ApplicationIcon />

0 commit comments

Comments
 (0)