Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Matthew Leibowitz mattleibow

🏠
Working from home
View GitHub Profile
View get-breaking-diff.ps1
# Runn th2se 2 commands:
# 1. Generate FULL diff:
# git diff OLD_BRANCH NEW_BRANCH --output=complete.diff **\PublicAPI.*.txt
# 2. Generate REDUCE diff:
# .\eng\scripts\get-breaking-diff.ps1 -Source .\complete.diff -Out .\breaks.diff -Unique .\unique.diff
[CmdletBinding(PositionalBinding=$false)]
param ($Source, $Out, $Unique)
Set-StrictMode -version 2.0
@mattleibow
mattleibow / maui-net6-vs-net7-breaks.diff
Last active Nov 9, 2022
Comparing BREAKS in .NET MAUI on .NET 6 vs .NET 7
View maui-net6-vs-net7-breaks.diff
diff --git a/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Shipped.txt b/src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Shipped.txt
-~Microsoft.Maui.Controls.TappedEventArgs.TappedEventArgs(object parameter) -> void
-Microsoft.Maui.Controls.TapGestureRecognizer.Tapped -> System.EventHandler
diff --git a/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Shipped.txt b/src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Shipped.txt
-~Microsoft.Maui.Controls.TappedEventArgs.TappedEventArgs(object parameter) -> void
-Microsoft.Maui.Controls.TapGestureRecognizer.Tapped -> System.EventHandler
diff --git a/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt b/src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt
-~Microsoft.Maui.Controls.TappedEventArgs.TappedEventArgs(object parameter) -> void
-Microsoft.Maui.Controls.TapGestureRecognizer.Tapped -> System.EventHandler
diff --git a/src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Shipped.txt b/src/Controls/src/Core/Pu
@mattleibow
mattleibow / maui-net6-vs-net7.diff
Last active Nov 9, 2022
Comparing .NET MAUI on .NET 6 vs .NET 7
View maui-net6-vs-net7.diff
diff --git a/src/Controls/Maps/src/PublicAPI/net-android/PublicAPI.Shipped.txt b/src/Controls/Maps/src/PublicAPI/net-android/PublicAPI.Shipped.txt
new file mode 100644
index 000000000..3b0c31c72
--- /dev/null
+++ b/src/Controls/Maps/src/PublicAPI/net-android/PublicAPI.Shipped.txt
@@ -0,0 +1,132 @@
+#nullable enable
+Microsoft.Maui.Controls.Hosting.AppHostBuilderExtensions
+Microsoft.Maui.Controls.Maps.Circle
+Microsoft.Maui.Controls.Maps.Circle.Center.get -> Microsoft.Maui.Devices.Sensors.Location!
View borderless-window.cs
public MainPage()
{
InitializeComponent();
#if WINDOWS
// WindowLongFlags
const int GWL_STYLE = -16;
const int GWL_EXSTYLE = -20;
View workloads.ps1
# EXAMPLE USAGE
#
# .\workloads.ps1 `
# -Workloads android,ios,macos,maccatalyst,tvos,maui `
# -RollbackUri https://aka.ms/dotnet/maui/preview.14.json `
# -Sources `
# https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-ee0a97a0/nuget/v3/index.json,`
# https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-6dd808ff-1/nuget/v3/index.json,`
# https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
View dotnet-rc1.md

Path to Success

  1. Uninstall any .NET 6 workload previews using this script:
    https://github.com/Redth/dotnet-maui-check/blob/main/Clean-Old-DotNet6-Previews.ps1
  2. Uninstall any .NET 6 versions you can just to be safe
  3. Install .NET 6 RC 1
    I just use maui-check to install .NET, but not the workloads. Run and then when it asks to install .NET, go ahead and then when it asks to install workloads, just cancel.
  4. Install maui: dotnet workload maui
  5. Profit
View hot-reload-on.log
Good: System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
Good: Maui.Controls.Sample.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Good: Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
Good: System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Good: Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
Good: System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Good: System.Threading, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Good: System.Runtime.InteropServices, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Good: System.Threading.Thread, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Good: System.Diagnostics.StackTrace, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
View debug.log
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.microsoft.maui/crc64d0d92a1bb3bcd107.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.microsoft.maui/crc64d0d92a1bb3bcd107.MainActivity }
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/Maui.Controls.Sample.Droid.dll
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/Mono.Android.dll [External]
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/System.Runtime.dll [External]
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/Java.Interop.dll [External]
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/System.Collections.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to [0x0](no debug symbols).
Loaded assembly: /data/data/com.microsoft.maui/files/.__override__/Sys
View migrate-skiasharp.cake
#addin "nuget:?package=NuGet.Common&version=5.11.0"
#addin "nuget:?package=NuGet.Configuration&version=5.11.0"
#addin "nuget:?package=NuGet.Frameworks&version=5.11.0"
#addin "nuget:?package=NuGet.Packaging&version=5.11.0"
#addin "nuget:?package=NuGet.Protocol&version=5.11.0"
#addin "nuget:?package=NuGet.Versioning&version=5.11.0"
using NuGet.Common;
using NuGet.Packaging;
using NuGet.Packaging.Core;
View test.json
{
"check": {
"toolVersion": "0.6.0-pre01",
"variables": {
"MAUI_VERSION": "6.0.100-preview.6.882",
"OPENJDK_VERSION": "11.0.10.9"
},
"variableMappers":[
{
"$type" : "DotNetCheck.Manifest.XmlVariableMapper, MauiCheck",