diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index cedb8217e2..82a69185a4 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -29,6 +29,6 @@
## Specifications
- Version:
- - Platform(s):
+ - Platform(s):
- Operating System(s):
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ec9127122c..855f3a8a49 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,7 +9,7 @@ on:
types: [ published ]
env:
- DotNetVersion: "7.0.108"
+ DotNetVersion: "7.0.116"
BuildConfiguration: "Release"
BuildParameters: "build/Build.proj /v:Minimal /consoleLoggerParameters:NoSummary /p:Configuration=Release /p:BuildVersion=${{ github.run_id }} /p:BuildBranch=${{ github.ref }}"
@@ -28,9 +28,6 @@ jobs:
with:
dotnet-version: ${{ env.DotNetVersion }}
- - name: Setup msbuild
- uses: microsoft/setup-msbuild@v1
-
- name: Build
run: dotnet build ${{ env.BuildParameters }} /p:Platform=Windows /t:Build /bl:artifacts/log/Build.Windows.binlog
@@ -81,13 +78,11 @@ jobs:
- name: Install macos workload
run: sudo dotnet workload install macos --from-rollback-file dotnet-workloads.json
- - name: Setup Xamarin and XCode
- uses: maxim-lobanov/setup-xamarin@v1
+ - name: Setup XCode
+ uses: maxim-lobanov/setup-xcode@v1
with:
- mono-version: latest
- xamarin-mac-version: latest
- xcode-version: latest
-
+ xcode-version: latest-stable
+
- name: Import code signing certificate
if: github.event_name != 'pull_request'
uses: apple-actions/import-codesign-certs@v1
@@ -113,7 +108,6 @@ jobs:
with:
name: nuget
path: |
- artifacts/nuget/${{ env.BuildConfiguration }}/Eto.Platform.XamMac2*.nupkg
artifacts/nuget/${{ env.BuildConfiguration }}/Eto.Platform.macOS*.nupkg
- name: Upload test artifacts
@@ -122,7 +116,6 @@ jobs:
name: test
path: |
artifacts/test/Eto.Test.Mac64/${{ env.BuildConfiguration }}/**/Eto.Test.Mac64.dmg
- artifacts/test/Eto.Test.XamMac2/${{ env.BuildConfiguration }}/**/Eto.Test.XamMac2.app
artifacts/test/Eto.Test.macOS/${{ env.BuildConfiguration }}/*/Eto.Test.macOS.app
- name: Upload log files
diff --git a/.vscode/launch.json b/.vscode/launch.json
index d6455148fa..5589dcd55a 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,7 +6,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-mac64",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.Mac64/${config:var.configuration}/net6.0/Eto.Test.Mac64.app/Contents/MacOS/Eto.Test.Mac64",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.Mac64/${config:var.configuration}/net7.0/Eto.Test.Mac64.app/Contents/MacOS/Eto.Test.Mac64",
// "targetArchitecture": "x86_64", // uncomment to test intel on M1
"args": [],
"console": "internalConsole",
@@ -30,30 +30,18 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-macos",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.macOS/${config:var.configuration}/net6.0-macos/Eto.Test.macOS.app/Contents/MacOS/Eto.Test.macOS",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.macOS/${config:var.configuration}/net7.0-macos/Eto.Test.macOS.app/Contents/MacOS/Eto.Test.macOS",
"args": [],
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
"justMyCode": false
- },
- {
- "name": "Eto.Test.XamMac2 - mono",
- "type": "mono",
- "request": "launch",
- "preLaunchTask": "build-xammac2",
- "program": ".",
- "runtimeExecutable": "${workspaceFolder}/artifacts/test/Eto.Test.XamMac2/${config:var.configuration}/net48/Eto.Test.XamMac2.app/Contents/MacOS/Eto.Test.XamMac2",
- "passDebugOptionsViaEnvironmentVariable": true,
- "args": [],
- "console": "internalConsole",
- "internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Eto.Test.Gtk",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-gtk",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.Gtk/${config:var.configuration}/net6.0/Eto.Test.Gtk.dll",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.Gtk/${config:var.configuration}/net7.0/Eto.Test.Gtk.dll",
"args": [],
"osx": {
"env": {
@@ -97,7 +85,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-wpf",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.Wpf/${config:var.configuration}/net6.0-windows/Eto.Test.Wpf.exe",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.Wpf/${config:var.configuration}/net7.0-windows/Eto.Test.Wpf.exe",
// "targetArchitecture": "x86_64",
"args": [],
"console": "internalConsole",
@@ -120,7 +108,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-winforms",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.WinForms/${config:var.configuration}/net6.0-windows/Eto.Test.WinForms.exe",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.WinForms/${config:var.configuration}/net7.0-windows/Eto.Test.WinForms.exe",
"args": [],
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
@@ -142,7 +130,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-direct2d",
- "program": "${workspaceFolder}/artifacts/test/Eto.Test.Direct2D/${config:var.configuration}/net6.0-windows/Eto.Test.Direct2D.exe",
+ "program": "${workspaceFolder}/artifacts/test/Eto.Test.Direct2D/${config:var.configuration}/net7.0-windows/Eto.Test.Direct2D.exe",
"args": [],
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart",
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 2446b3525e..264404a84a 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -98,16 +98,6 @@
"clear": true
}
},
- {
- "label": "build-xammac2",
- "command": "dotnet build ${config:var.buildProperties} /p:Configuration=${config:var.configuration} ${workspaceFolder}/test/Eto.Test.Mac/Eto.Test.XamMac2.csproj",
- "type": "shell",
- "group": "build",
- "problemMatcher": "$msCompile",
- "presentation": {
- "clear": true
- }
- },
{
"label": "build-wpf",
"command": "dotnet build ${config:var.buildProperties} /p:Configuration=${config:var.configuration} ${workspaceFolder}/test/Eto.Test.Wpf/Eto.Test.Wpf.csproj",
diff --git a/README.md b/README.md
index 2fc4bf0ed7..0fd4e3f64c 100644
--- a/README.md
+++ b/README.md
@@ -125,7 +125,6 @@ Your project only needs to reference Eto.dll, and include the corresponding plat
* Eto.dll - Eto.Forms (UI), Eto.Drawing (Graphics), and platform loading
* Eto.Mac64.dll - Lightweight Mac platform using .NET 6+ or mono
-* Eto.XamMac2.dll - Xamarin.Mac Unified platform for Mac to embed mono
* Eto.macOS.dll - .NET 6+ platform for Mac (for use with the net6.0-macos target)
* Eto.WinForms.dll - Windows Forms platform using GDI+ for graphics
* Eto.Direct2D.dll - Windows Forms platform using Direct2D for graphics
@@ -137,7 +136,7 @@ Your project only needs to reference Eto.dll, and include the corresponding plat
Currently supported targets
---------------------------
-* OS X: MonoMac, Xamarin.Mac, or net6.0-macos
+* OS X: MonoMac or net6.0-macos
* Linux: GTK+ 3
* Windows: Windows Forms (using GDI or Direct2D) or WPF
diff --git a/build/Build.proj b/build/Build.proj
index 4ac5b8cd61..b38cee9f13 100644
--- a/build/Build.proj
+++ b/build/Build.proj
@@ -203,8 +203,6 @@
-
-
@@ -221,33 +219,23 @@
-
-
-
-
-
-
+ Condition="$([MSBuild]::IsOSPlatform(Windows)) and %(CombinedId) == 'combined' and %(LanguageId) == 'fs' and (%(OtherId) != 'wf_macos' and %(OtherId) != 'wf')" />
@@ -260,14 +248,9 @@
Condition="%(CombinedId) == 'separate'"
BuildCommand="%(BuildCommand) && cd %(ProjectName).Gtk && dotnet build && cd .." />
-
-
-
-
+
@@ -303,10 +286,10 @@
-
-
-
-
+
+
+
+
diff --git a/build/Common.Build.props b/build/Common.Build.props
index 0e8e2d69fb..9c5fbcd524 100644
--- a/build/Common.Build.props
+++ b/build/Common.Build.props
@@ -20,8 +20,8 @@
True
-
- $(NoWarn);NU5105
+
+ $(NoWarn);NU5105;CS8981
10
true
diff --git a/build/Common.props b/build/Common.props
index 838866c090..2166a0d90e 100644
--- a/build/Common.props
+++ b/build/Common.props
@@ -9,12 +9,6 @@
Mac
Windows
- \Library\Frameworks\Xamarin.Mac.framework\Versions\Current\
- $(XamarinMacPath)lib\mono\
- $(XamarinMacPath)lib\msbuild\
- False
- True
-
$(BasePath)artifacts\
$(ArtifactsDir)obj\$(OSPlatform)\$(MSBuildProjectName)\
$(BasePath)src\
diff --git a/build/Xamarin.Mac.targets b/build/Xamarin.Mac.targets
deleted file mode 100644
index 8a69e7bc96..0000000000
--- a/build/Xamarin.Mac.targets
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
- \Library\Frameworks\Xamarin.Mac.framework\Versions\Current\
- $(XamarinMacPath)lib\mono\
- $(XamarinMacPath)lib\msbuild\
- False
- True
-
- True
-
-
-
- Exe
- {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {810C163F-4746-4721-8B8E-88A3673A62EA};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
-
- True
- True
- $(DefineConstants);XAMMAC;XAMMAC2;UNIFIED
-
- <_XamMacLanguage Condition="$(MSBuildProjectFile.EndsWith('.csproj'))">CSharp
- <_XamMacLanguage Condition="$(MSBuildProjectFile.EndsWith('.fsproj'))">FSharp
- <_XamMacLanguage Condition="$(MSBuildProjectFile.EndsWith('.vbproj'))">VisualBasic
-
- $(XamarinMacTargetsPath)Xamarin.Mac.$(_XamMacLanguage).targets
- $(XamarinMacTargetsPath)Xamarin.Mac.ObjcBinding.$(_XamMacLanguage).targets
-
- Xamarin.Mac
- v2.0
-
- False
- True
- None
-
-
- $(XamarinMacLibPath)4.5\
- $(XamarinMacLibPath)Xamarin.Mac\
- 16.8
-
-
-
-
- <_FullFrameworkReferenceAssemblyPaths>$(FrameworkPathOverride)
- <_TargetFrameworkDirectories>$(FrameworkPathOverride)
-
-
-
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $([System.String]::Copy('%(Filename)').Replace('.designer', ''))%(Extension)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/AppDelegate.cs b/samples/MacOS/EmbedEtoInMacOS/AppDelegate.cs
similarity index 93%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/AppDelegate.cs
rename to samples/MacOS/EmbedEtoInMacOS/AppDelegate.cs
index f9d996a0c9..33265f89d0 100644
--- a/samples/XamarinMac/EmbedEtoInXamarinMac/AppDelegate.cs
+++ b/samples/MacOS/EmbedEtoInMacOS/AppDelegate.cs
@@ -1,7 +1,7 @@
using AppKit;
using Foundation;
-namespace EmbedEtoInXamarinMac
+namespace EmbedEtoInMacOS
{
[Register("AppDelegate")]
public class AppDelegate : NSApplicationDelegate
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/Contents.json b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/Contents.json
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/AppIcon.appiconset/Contents.json
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/AppIcon.appiconset/Contents.json
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/Contents.json b/samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/Contents.json
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Assets.xcassets/Contents.json
rename to samples/MacOS/EmbedEtoInMacOS/Assets.xcassets/Contents.json
diff --git a/samples/XamarinMac/EmbedXamarinMacInEto/EmbedXamarinMacInEto.csproj b/samples/MacOS/EmbedEtoInMacOS/EmbedEtoInMacOS.csproj
similarity index 64%
rename from samples/XamarinMac/EmbedXamarinMacInEto/EmbedXamarinMacInEto.csproj
rename to samples/MacOS/EmbedEtoInMacOS/EmbedEtoInMacOS.csproj
index 8469fab1fa..b66554d97c 100644
--- a/samples/XamarinMac/EmbedXamarinMacInEto/EmbedXamarinMacInEto.csproj
+++ b/samples/MacOS/EmbedEtoInMacOS/EmbedEtoInMacOS.csproj
@@ -1,17 +1,12 @@
- True
Exe
- xamarinmac20
- False
- False
+ net7.0-macos
Mac Developer
3rd Party Mac Developer Installer
- --nowarn:2006 --nowarn:5220
- 10.14
+ 10.15
False
- SdkOnly
@@ -28,19 +23,9 @@
-
-
-
-
-
-
-
-
-
+
-
-
\ No newline at end of file
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Entitlements.plist b/samples/MacOS/EmbedEtoInMacOS/Entitlements.plist
similarity index 100%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Entitlements.plist
rename to samples/MacOS/EmbedEtoInMacOS/Entitlements.plist
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Info.plist b/samples/MacOS/EmbedEtoInMacOS/Info.plist
similarity index 89%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Info.plist
rename to samples/MacOS/EmbedEtoInMacOS/Info.plist
index c95384b850..7b78d270a5 100644
--- a/samples/XamarinMac/EmbedEtoInXamarinMac/Info.plist
+++ b/samples/MacOS/EmbedEtoInMacOS/Info.plist
@@ -3,15 +3,15 @@
CFBundleName
- EmbedEtoInXamarinMac
+ EmbedEtoInMacOS
CFBundleIdentifier
- ca.picoe.EmbedEtoInXamarinMac
+ ca.picoe.EmbedEtoInMacOS
CFBundleShortVersionString
1.0
CFBundleVersion
1
LSMinimumSystemVersion
- 10.14
+ 10.15
CFBundleDevelopmentRegion
en
CFBundleInfoDictionaryVersion
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Main.cs b/samples/MacOS/EmbedEtoInMacOS/Main.cs
similarity index 89%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Main.cs
rename to samples/MacOS/EmbedEtoInMacOS/Main.cs
index eb4280084d..7a10af4863 100644
--- a/samples/XamarinMac/EmbedEtoInXamarinMac/Main.cs
+++ b/samples/MacOS/EmbedEtoInMacOS/Main.cs
@@ -1,6 +1,6 @@
using AppKit;
-namespace EmbedEtoInXamarinMac
+namespace EmbedEtoInMacOS
{
static class MainClass
{
diff --git a/samples/XamarinMac/EmbedEtoInXamarinMac/Main.storyboard b/samples/MacOS/EmbedEtoInMacOS/Main.storyboard
similarity index 99%
rename from samples/XamarinMac/EmbedEtoInXamarinMac/Main.storyboard
rename to samples/MacOS/EmbedEtoInMacOS/Main.storyboard
index 8148ce470d..f298acbb8b 100644
--- a/samples/XamarinMac/EmbedEtoInXamarinMac/Main.storyboard
+++ b/samples/MacOS/EmbedEtoInMacOS/Main.storyboard
@@ -12,11 +12,11 @@