Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Matthew Leibowitz mattleibow

🏠
Working from home
View GitHub Profile
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",
View project.assets.json
{
"version": 3,
"targets": {
"net6.0-android30.0": {
"Microsoft.Extensions.Configuration/6.0.0-preview.4.21222.10": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "6.0.0-preview.4.21222.10",
"Microsoft.Extensions.Primitives": "6.0.0-preview.4.21222.10"
},
View crash.log
05-14 08:06:12.680 9602 9602 I Finsky : [2] abtz.b(9): SCH: Scheduling fallback in 64799992 (absolute: 69940413)
05-14 08:06:12.680 31230 31268 W monodroid: MonodroidRuntime::monodroid_pinvoke_override ("libSystem.Native", "SystemNative_LowLevelMonitor_TimedWait")
05-14 08:06:12.712 9602 9602 I Finsky : [2] abui.handleMessage(8): SCH: DeviceState: DeviceState{currentTime=1620972372706, isCharging=false, isIdle=false, netAny=true, netNotRoaming=true, netUnmetered=true, batteryPercent=100.0}
05-14 08:06:12.718 9602 30133 I Finsky : [741] abwt.b(5): SCH: Jobs in database: 1-1337 2-48879 3-1 10-78 12-1 24-77777777 26-1414141414
05-14 08:06:12.725 9602 9602 I Finsky : [2] abuj.b(10): SCH: Running job: 12-1
05-14 08:06:12.725 9602 9602 I Finsky : [2] ContentSyncJob.r(1): [ContentSync] job started
05-14 08:06:12.725 9602 9602 I Finsky : [2] abui.handleMessage(68): SCH: RunningQueue size: 1, PendingQueue size: 0
05-14 08:06:12.726 9602 9602 I Finsky : [2] abuj.p(3): SCH: Running queue: 12-1
05-14
View bleeding.json
{
"check": {
"toolVersion": "0.2.11",
"openjdk": {
"minimumVersion": "1.8.0-1"
},
"xcode": {
"minimumVersion": "12.4"
},
"vswin": {
@mattleibow
mattleibow / Program.cs
Last active Mar 25, 2021 — forked from daltonks/Program.cs
SKPath Iterator Benchmarks
View Program.cs
using System;
using System.Collections.Generic;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
namespace SkiaSharp.Benchmarks
{
//[SimpleJob(RuntimeMoniker.CoreRt31)]
[SimpleJob(RuntimeMoniker.Mono)]
View NuGetUpload.cs
$source = 'https://pkgs.dev.azure.com/xamarin/public/_packaging/SkiaSharp/nuget/v3/index.json'
$check = 'https://pkgs.dev.azure.com/xamarin/6fd3d886-57a5-4e31-8db7-52a1b47c07a8/_packaging/737d9830-bed0-4b55-8699-c93e7b529ed0/nuget/v3/flat2/PACKAGE_ID/PACKAGE_VERSION/PACKAGE_ID.PACKAGE_VERSION.nupkg'
$nupkgs = (Get-ChildItem *.nupkg)
$total = $nupkgs.Count
Write-Host "Total: $total"
$counter = 0;