Skip to content

Instantly share code, notes, and snippets.

View CartBlanche's full-sized avatar

Dominique Louis CartBlanche

View GitHub Profile
mono '/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/vstool.exe' -v setup pack Meadow.Sdks.IdeExtensions.Vs4Mac.dll
shell: /bin/bash -e {0}
env:
MD_APPLE_SDK_ROOT: /Applications/Xcode_13.0.0.app
DOTNET_ROOT: /Users/runner/.dotnet
NUGET: /Users/runner/hostedtoolcache/nuget.exe/5.11.0/x64/nuget.exe
INFO [2021-12-04 22:11:11Z]: Did not find previous version from which to migrate data
Visual Studio Extension Setup Utility
ERROR: Could not read add-in file: Meadow.Sdks.IdeExtensions.Vs4Mac.dll
@CartBlanche
CartBlanche / gist:93e3feede1147704437ba2ab0dd68c44
Created December 1, 2021 14:10
SharpDX and XACT Audio crash after update xap
at SharpDX.Result.CheckError()
at SharpDX.XAudio2.XAudio2.CreateSourceVoice_(SourceVoice sourceVoiceOut, IntPtr sourceFormatRef, VoiceFlags flags, Single maxFrequencyRatio, IntPtr callbackRef, Nullable`1 sendListRef, Nullable`1 effectChainRef)
at SharpDX.XAudio2.SourceVoice.CreateSourceVoice(XAudio2 device, WaveFormat sourceFormat, VoiceFlags flags, Single maxFrequencyRatio, IntPtr callback, EffectDescriptor[] effectDescriptors)
at Microsoft.Xna.Framework.Audio.SoundEffect.PlatformSetupInstance(SoundEffectInstance inst)
at Microsoft.Xna.Framework.Audio.SoundEffect.GetPooledInstance(Boolean forXAct)
at Microsoft.Xna.Framework.Audio.WaveBank.GetSoundEffectInstance(Int32 trackIndex, Boolean& streaming)
at Microsoft.Xna.Framework.Audio.SoundBank.GetSoundEffectInstance(Int32 waveBankIndex, Int32 trackIndex, Boolean& streaming)
at Microsoft.Xna.Framework.Audio.XactSound.Play(Single volume, AudioEngine engine)
at Microsoft.Xna.Framework.Audio.Cue.Play()
at Microsoft.Xna.Framework.Audio.
@CartBlanche
CartBlanche / install.bat
Last active August 18, 2023 09:25
A batch file that automates self elevation (to UAC), enables side loading, uninstalls the previous version and then installs a new version of your Windows 10 UWP/UAP app.
@echo off
REM Version 1.3
REM
REM Put this batch file in the same directory as your published Windows app directory and change the variable value below [YOUR_APP_PACKAGE_ID]
REM
REM Once you are ready to publish this publically, zip up the *.cer, *.msixappbudle or *.appxbundle and this batch file and
REM put it on your server or upload it to your itch.io account.
REM Tell your users/customers to unzip and launch the install.bat file and follow the prompts.
REM
exception inside UnhandledException handler: Sharing violation on path /var/folders/6h/sf9051p961z5d0y45bgtvdxc0000gn/T/tmp78d2f25f.tmp
[ERROR] FATAL UNHANDLED EXCEPTION: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00013] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2166
at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Future.cs:562
at System.Threading.Tasks.Task`1[TResult].get
" at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2164 \n at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Future.cs:562 \n at System.Threading.Tasks.Task`1[TResult].get_Result () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Future.cs:532 \n at Xamarin.PropertyEditing.Extensions+<GetCommonAssignableTypes>d__7.MoveNext () [0x0015c] in /Users/dominique/Development/xamarin/Xamarin.PropertyEditing/Xamarin.PropertyEditing/Extensions.cs:137 \n--- En
@CartBlanche
CartBlanche / gist:24d925377a6a6d6c5a9207d797ca7b1d
Last active January 23, 2018 19:58
How to Popup a Context Menu when NSButton is Clicked in C#
Taken from https://praveenmatanam.wordpress.com/2008/09/05/how-to-popup-context-menu-when-clicked-on-button/ and converted to C#
where...
propertyButton is NSButton.
popUpContextMenu is a prepopulated NSMenu with NSMenuItems
propertyButton.Activated += (object sender, EventArgs e) => {
var senderAsButton = (NSButton)sender;
var frame = senderAsButton.Frame;
var menuOrigin = senderAsButton.Superview.ConvertPointToView (new CGPoint (frame.Location.X, frame.Location.Y + frame.Size.Height + 3), null);
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.exe
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Ide.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Core.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Xwt.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.Setup.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Loaded assembly: /Library/Frameworks
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.exe
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Ide.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Core.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Xwt.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.Setup.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Loaded assembly: /Library/Frameworks
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.exe
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Ide.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Core.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Xwt.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.Setup.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Loaded assembly: /Library/Frameworks
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.exe
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Ide.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/MonoDevelop.Core.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Xwt.dll
Loaded assembly: /Users/dominique/Development/xamarin/monodevelop/main/build/bin/Mono.Addins.Setup.dll
Loaded assembly: /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
Loaded assembly: /Library/Frameworks