Skip to content

Instantly share code, notes, and snippets.

View nosami's full-sized avatar

Jason Imison nosami

View GitHub Profile
@nosami
nosami / uninstall-xamarin.sh
Created October 3, 2019 17:20 — forked from jstedfast/uninstall-xamarin.sh
uninstall-xamarin.sh
#!/bin/bash
echo "Uninstalling the Xamarin Installer..."
rm -rf ~/Library/Caches/XamarinInstaller/
rm -rf ~/Library/Caches/VisualStudioInstaller/
rm -rf ~/Library/Logs/XamarinInstaller/
rm -rf ~/Library/Logs/VisualStudioInstaller/
rm -rf ~/Library/Preferences/Xamarin/
echo "Uninstalling Xamarin.Android..."
using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace newtonsoft_snupkg_core
{
static class BinaryReaderExtensions
{
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. -->
<!--
***********************************************************************************************
Microsoft.FSharp.Targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
From dbb849d0228276062fff1acf3a2d49b7ff065b5d Mon Sep 17 00:00:00 2001
From: Aleksey Kliger <[email protected]>
Date: Wed, 3 Jan 2018 17:38:07 -0500
Subject: [PATCH] Print some info if we are asked to look up a method token
that's outside the range of the PPDB.
---
mono/metadata/debug-mono-ppdb.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
✔ ~/src/mdv/mdv.1.0.0-beta1-62016-01/tools
12:59 $ mono mdv.exe ~/Downloads/Testcase-origin/src/GWallet.Backend.NetStandard/bin/Debug/netstandard2.0/Some.Backend.NetStandard.pdb /md+ /il+
MetadataVersion: PDB v1.0
Id: 9D-42-41-8D-10-AE-4A-4B-89-93-9B-60-79-1B-98-30-44-CA-4C-5A
Document (index: 0x30, size: 8):
====================================================================================================================================================================================================================
Name Language HashAlgorithm Hash
====================================================================================================================================================================================================================
1: '/Users/jason/Downloads/Testcase-origin/src/GWallet.Backend.NetStandard/SomeFSharpCode.fs' (#59) F# (#2) {406ea660-64cf
20:49 $ rm -fr bin/ obj/
✔ ~/src/sample/sample
20:49 $ msbuild /t:Restore && msbuild /t:Build /p:EnableDefaultCompileItems=false /p:Configuration=Release
Microsoft (R) Build Engine version 15.4.0.0 (master/f296e67b Fri Sep 15 11:40:25 EDT 2017) for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 01/10/2017 20:49:29.
Project "/Users/jason/src/sample/sample/sample.fsproj" on node 1 (Restore target(s)).
Restore:
Restoring packages for /Users/jason/src/sample/sample/sample.fsproj...
14:59 $ mono ../FSharp.Compiler.Service/samples/FsiExe/bin/Debug/FsiExe.exe bug739.fsx
System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.
at (wrapper stelemref) System.Object:virt_stelemref_sealed_class (intptr,object)
at FSI_0001.reader (System.String path) [0x00174] in <cf74e683ec9c4c17a2eeaa76f2d33459>:0
at <StartupCode$FSI_0001>.$FSI_0001.main@ () [0x00002] in <cf74e683ec9c4c17a2eeaa76f2d33459>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <b697cffb61b74023aa9c587e6c49beb3>:0
Stopped due to error
* Assertion: should not be reached at ./sgen-scan-object.h:90
13:38 $ mono ../fsharp/Release/net40/bin/fsi.exe
F# Interactive for F# 4.1
Freely distributed under the Apache 2.0 Open Source License
For help type #help;;
> open System
open System.Reflection
open System.Reflection.Emit
open System
open System.Reflection
open System.Reflection.Emit
let assemblyBuilder203127646 = System.AppDomain.CurrentDomain.DefineDynamicAssembly(AssemblyName(Name="FSI-ASSEMBLY"),enum 3,".")
let moduleBuilder872152565 = assemblyBuilder203127646.DefineDynamicModule("FSI-ASSEMBLY","FSI-ASSEMBLY.dll",true)
let typeBuilder1791443558 = moduleBuilder872152565.DefineType("FSI_0001",enum 385)
moduleBuilder872152565.GetType("FSI_0001",false,false) |> ignore
let typeBuilder1092171624 = typeBuilder1791443558.DefineNestedType("Observation",enum 8450)
moduleBuilder872152565.GetType("FSI_0001+Observation",false,false) |> ignore
let typeBuilder1452345144 = typeBuilder1791443558.DefineNestedType("train@21",enum 8197)
@nosami
nosami / fsharp-build-fail
Created March 15, 2017 10:19
fsharp compile fail against Mono 4.9
XBuild Engine Version 14.0
Mono, Version 4.9.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 2/16/2017 11:43:19 PM.
__________________________________________________
Project "/private/tmp/source-mono-master/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/fsharp-fsharp-11c0a08/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj" (default target(s)):
Target CallFsSrGen:
Created directory "obj//net40/"
Executing: mono /private/tmp/source-mono-master/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/fsharp-fsharp-11c0a08/packages/FSharp.Compiler.Tools.4.0.1.21/tools/fsi.exe --exec "/private/tmp/source-mono-master/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/fsharp-fsharp-11c0a08/src/scripts/fssrgen.fsx" "/private/tmp/source-mono-master/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/fsharp-fsharp-11c0a08/src/fsharp/FSharp.Build/FSBuild.txt" "obj//net40/FSBuild.fs" "obj//net40/FSBuild.resx"