VS Mac upgrade to 7.2 (build 636) MonoDevelop.CSharp.Project.CSharpProject exception - xamarin

I just did a stable update of VS Mac Community Edition this morning. The current version shown is 7.2 (build 636). I added the entire About Details below. I'm not sure what specific version I upgraded from, but it was the most recent version before this as I stay up to date.
After doing the upgrade, which worked without displaying an error, I get this message when opening an iOS solution:
Error while trying to load the project '/path/to/project.csproj'. The
type initializer for 'MonoDevelop.CSharp.Project.CSharpProject' threw
an exception.
After dismissing that message, I get another error message with a list of this same error message:
The type initializer for
'MonoDevlop.ide.TypeSystem.MonoDevelopWorkspace' threw an exception.
I did a reboot of the machine, and I still see the error. My next step is to do a complete uninstall/reinstall, but before I do, can someone recommend a less time-consuming approach for diagnosing and fixing this error?
About Details
=== Visual Studio Community 2017 for Mac ===
Version 7.2 (build 636) Installation UUID:
56e643f6-0a84-4995-b464-438c06eb25ee Runtime: Mono 5.4.0.201
(2017-06/71277e78f6e) (64-bit) GTK+ 2.24.23 (Raleigh theme)
Package version: 504000201
=== NuGet ===
Version: 4.3.1.4445
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet Runtime Versions:
2.0.0
1.1.1
1.0.4 SDK: /usr/local/share/dotnet/sdk/2.0.0/Sdks SDK Versions:
2.0.0
1.0.3 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.5.6 Location: /Applications/Xamarin
Profiler.app/Contents/MacOS/Xamarin Profiler
=== Xamarin.Android ===
Version: 8.0.0.33 (Visual Studio Community) Android SDK:
/Users/danmiser/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
SDK Tools Version: 25.2.5 SDK Platform Tools Version: 26.0.0 SDK Build
Tools Version: 25.0.3
Java SDK: /usr java version "1.8.0_101" Java(TM) SE Runtime
Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM
(build 25.101-b13, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Inspector ===
Version: 1.3.2 Hash: 461f09a Branch: 1.3-release Build date: Tue, 03
Oct 2017 18:26:57 GMT Client compatibility: 1
=== Apple Developer Tools ===
Xcode 9.0 (13247) Build 9A235
=== Xamarin.iOS ===
Version: 11.2.0.11 (Visual Studio Community) Hash: 2f8bbec0 Branch:
d15-4-xi Build date: 2017-10-05 20:56:05-0400
=== Xamarin.Mac ===
Version: 3.8.0.49 (Visual Studio Community)
=== Build Information ===
Release ID: 702000636 Git revision:
b349c8fc0c2e1aab0179917d56eed75eb3a03337 Build date: 2017-10-06
15:20:04-04 Xamarin addins: a8da992c78f7eb65b3cdb3f951c34a30337cab35
Build lane: monodevelop-lion-d15-4
=== Operating System ===
Mac OS X 10.12.6 Darwin 16.7.0 Darwin Kernel Version 16.7.0
Thu Jun 15 17:36:27 PDT 2017
root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
=== Enabled user installed addins ===
MFractor 3.00.16

Ensure that you have MFractor extension 'Updated' or Uninstalled. That work for me.
Check:
Visual Studio Community Menu (Top) -> Extensions.... -> Upgrades Tab
Open Extension Editor
Check Upgrades (I remove the extension)

Related

Why can't Visual Studio find my assemblies?

I'm new to Visual Studio, but not to programming. I tried to open a project which someone else sent me, and there are lots of errors (they are all the same). Please see the image below:
When I tried to check the runtimes installed, I see this:
I know that Newtonsoft.Json is installed, because I can see it in the packages folder.
So far I have looked at:
Getting "type or namespace name could not be found" but everything seems ok?
But I can't figure out how to fix the problem, as I'm using VS after several years. What should I do ?
I am using Visual Studio for Mac Community edition, version 8.2.3 (build 16)
EDIT: More Information from about Visual Studio:
=== Visual Studio Community 2019 for Mac ===
Version 8.2.3 (build 16) Installation UUID:
024bbaaf-47dd-4755-982d-29b842a90ef4 GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.14.0.85 (d16-2-fix-mac-updates / 86973979)
Package version: 600000319
=== Mono Framework MDK ===
Runtime: Mono 6.0.0.319 (2019-02/52203786470) (64-bit) Package
version: 600000319
=== NuGet ===
Version: 5.1.0.6013
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet Runtime Versions:
2.1.12
2.1.2 SDK: /usr/local/share/dotnet/sdk/2.1.701/Sdks SDK Versions:
2.1.701
2.1.302 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.6.11 Location: /Applications/Xamarin
Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Xamarin.Android ===
Version: 9.4.1.0 (Visual Studio Community) Commit:
xamarin-android/d16-2/ebd65c9 Android SDK:
/Users/morgoth/Library/Android/sdk Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1 SDK Platform Tools Version: 29.0.1 SDK Build
Tools Version: 28.0.3
Build Information: Mono: mono/mono/2019-02#e6f5369c2d2 Java.Interop:
xamarin/java.interop/d16-2#d64ada5 LibZipSharp:
grendello/LibZipSharp/d16-2#caa0c74 LibZip:
nih-at/libzip/rel-1-5-1#b95cf3f ProGuard:
xamarin/proguard/master#905836d SQLite: xamarin/sqlite/3.27.1#8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-2#6f6c969
=== Microsoft Mobile OpenJDK ===
Java SDK:
/Users/morgoth/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
=== Android Device Manager ===
Version: 1.2.0.60 Hash: 686c817 Branch: remotes/origin/d16-2 Build
date: 2019-08-07 15:49:58 UTC
=== Apple Developer Tools ===
Xcode 10.3 (14492.2) Build 10G8
=== Xamarin.Mac ===
Version: 5.14.0.114 (Visual Studio Community) Hash: c6691164 Branch:
d16-2 Build date: 2019-07-29 15:54:06-0400
=== Xamarin.iOS ===
Version: 12.14.0.114 (Visual Studio Community) Hash: c6691164 Branch:
d16-2 Build date: 2019-07-29 15:54:05-0400
=== Xamarin Designer ===
Version: 16.2.0.379 Hash: 3f0652957 Branch: remotes/origin/d16-2 Build
date: 2019-08-01 17:32:50 UTC
=== Xamarin Inspector ===
Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09
Jul 2018 21:20:18 GMT Client compatibility: 1
=== Build Information ===
Release ID: 802030016 Git revision:
f438e4b3ac81dbc614da2f2d9ac3c70ea2e5c350 Build date: 2019-08-09
09:07:01+00 Build branch: release-8.2 Xamarin extensions:
67f026710e882e318fb0c90077b429be3dc0e688
=== Operating System ===
Mac OS X 10.14.5 Darwin 18.6.0 Darwin Kernel Version 18.6.0
Thu Apr 25 23:16:27 PDT 2019
root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
I opened the project in VS 2017 on Windows 10. I uninstalled Newtonsoft.json, and reinstalled it. Everything seems to work (on Windows). I guess VS for Mac isn't pulling its weight.

Updating Visual Studio for Mac to test beta iOS 13 Versions

I can't update to the beta versions of VS for mac. I'm on a Macbook Pro 2019, MacOS 10.14.6, which I updated to because I had the problem on the previous version as well.
I've followed the instructions at
https://learn.microsoft.com/en-us/visualstudio/mac/updater-troubleshooting?view=vsmac-2019
but that didn't help. Is there something else I can do/check?
My VS for Mac is:
=== Visual Studio Enterprise 2019 for Mac ===
Version 8.2 (build 1124)
Installation UUID: efce2198-73f8-4d8f-b0ab-99c04aa9500a
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.14.0.85 (d16-2-fix-mac-updates / 86973979)
Package version: 600000311
=== Mono Framework MDK ===
Runtime:
Mono 6.0.0.311 (2019-02/494641b300c) (64-bit)
Package version: 600000311
=== NuGet ===
Version: 5.1.0.6013
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.0.0-preview6-27804-01
2.1.12
2.1.11
2.1.9
SDK: /usr/local/share/dotnet/sdk/3.0.100-preview6-012264/Sdks
SDK Versions:
3.0.100-preview6-012264
2.1.701
2.1.700
2.1.505
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.6.11
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 10.3 (14492.2)
Build 10G8
=== Xamarin.Android ===
Not Installed
=== Microsoft Mobile OpenJDK ===
Java SDK: Not Found
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android Device Manager ===
Version: 1.2.0.58
Hash: d03e3ea
Branch: remotes/origin/d16-2~1
Build date: 2019-08-06 08:24:06 UTC
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Xamarin.Mac ===
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
=== Xamarin.iOS ===
Version: 12.14.0.114 (Visual Studio Enterprise)
Hash: c6691164
Branch: d16-2
Build date: 2019-07-29 15:54:05-0400
=== Xamarin Designer ===
Version: 16.2.0.391
Hash: 216490cf5
Branch: remotes/origin/d16-2-xcode11
Build date: 2019-08-06 08:21:56 UTC
=== Build Information ===
Release ID: 802001124
Git revision: 0797bb4dfcd2cbad030d7fce609e247e23f855ca
Build date: 2019-07-26 12:13:29+00
Build branch: release-8.2-xcode11
Xamarin extensions: d663a25405cd5e7d0b0deefd2a26d548680f16f5
=== Operating System ===
Mac OS X 10.14.6
Darwin 18.7.0 Darwin Kernel Version 18.7.0
Thu Jun 20 18:42:21 PDT 2019
root:xnu-4903.270.47~4/RELEASE_X86_64 x86_64
Fortunately/unfortunately, the problem seems to have resolved itself. It seems the installer got over itself and managed to do its job. Not very satisfying, I know.
I'll leave the question up, in the hope that someone can point me to an error log/explanation.

Visual Studio 2019 for Mac: debugger doesn't connect to iOS device

I'm trying to debug a long suffered Xamarin app using visual studio 2019 on a brand new MacBook Pro (Mojave).
The solution builds, transfers to the device and starts the app, but the debugger will connect neither via cable or wifi. A dummy project in Visual Studio for Mac won't connect either, though a dummy project in xcode will.
VS just says "waiting for the debugger to connect to ... on port 10000 via Wifi"
Here are my VS details:
Visual Studio Community 2019 for Mac
Version 8.1.3 (build 19)
Installation UUID: 76ac8505-c20b-434f-95d4-c8266d3517f2
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.25 (d16-0 / 50f75273)
Package version: 518010028
Mono Framework MDK
Runtime:
Mono 5.18.1.28 (2018-08/223ea7ef92e) (64-bit)
Package version: 518010028
NuGet
Version: 5.0.2.5988
.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.0.0-preview6-27804-01
2.1.11
2.1.9
SDK: /usr/local/share/dotnet/sdk/3.0.100-preview6-012264/Sdks
SDK Versions:
3.0.100-preview6-012264
2.1.700
2.1.505
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Sdks
Xamarin.Profiler
Version: 1.6.10
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Xamarin.Android
Not Installed
Microsoft Mobile OpenJDK
Java SDK: Not Found
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android Device Manager
Version: 1.2.0.44
Hash: aac645b
Branch: remotes/origin/d16-1
Build date: 2019-05-29 19:55:24 UTC
Xamarin Designer
Version: 16.1.0.467
Hash: f1657e133
Branch: remotes/origin/d16-1-new-document-model
Build date: 2019-06-18 21:57:42 UTC
Apple Developer Tools
Xcode 10.2.1 (14490.122)
Build 10E1001
Xamarin.Mac
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Xamarin.iOS
Version: 12.10.0.157 (Visual Studio Community)
Hash: 6bd94753
Branch: d16-1
Build date: 2019-06-12 17:28:47-0400
Xamarin Inspector
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
Build Information
Release ID: 801030019
Git revision: 2d04b0145da8aa946d2cc9898fe2a59484e4f3f4
Build date: 2019-06-26 15:34:25+00
Build branch: release-8.1
Xamarin extensions: de240bddd6d1f96bfb1e7d11ce7ac5398956fe1d
Operating System
Mac OS X 10.14.5
Darwin 18.6.0 Darwin Kernel Version 18.6.0
Thu Apr 25 23:16:27 PDT 2019
root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
Help.
These errors are usually hidden now in VS 2019 for Mac sadly. You need to look at the Build Output window to exactly determine what causes this malfunction.
The behavior you described does not belong to a specific kind of error, it only means that VS didn't visually show its description, rather got stuck because the run process failed while trying to put the build on the physical device.
First of all , ensure xcode and visual studio version the latest.
Also try
Manually start the application by tapping the icon
Deleting the app from the device and redeploying it
Rebooting the device
Change Debugger port
Check this thread : https://forums.xamarin.com/discussion/94088/xamarin-studio-waiting-for-debugger-to-connect-to-the-ios-simulator

Error with Proguard - "java" exited with code 1

I know this question might have asked a multiple times but this happened me after I updated my Visual Studio for MAC 2019. I am trying to archive a Xamarin Forms Android app.
When I enable Proguard I get Error MSB6006: "java" exited with code 1. (MSB6006)
I have tried downloading the latest version of Proguard and replacing the files in the SDK.
Following is my VS for MAC configuration.
=== Visual Studio Community 2019 for Mac ===
Version 8.0.5 (build 9)
Installation UUID: ca67d924-4645-45bb-9a5f-c0c5881f3dc2
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.2 (d16-0 / 040682909)
Package version: 518010003
=== Mono Framework MDK ===
Runtime:
Mono 5.18.1.3 (2018-08/fdb26b0a445) (64-bit)
Package version: 518010003
=== NuGet ===
Version: 4.8.2.5835
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.2.4
2.1.9
2.1.8
2.1.6
2.1.2
2.1.1
2.0.5
2.0.0
SDK: /usr/local/share/dotnet/sdk/2.2.106/Sdks
SDK Versions:
2.2.106
2.1.505
2.1.504
2.1.500
2.1.302
2.1.301
2.1.4
2.0.0
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
'/Applications/Xamarin Profiler.app' not found
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 10.2 (14490.120)
Build 10E125
=== Xamarin.Mac ===
Version: 5.8.0.0 (Visual Studio Community)
Hash: 0aa84521
Branch: d16-0
Build date: 2019-04-02 16:01:19-0400
=== Xamarin.iOS ===
Version: 12.8.0.2 (Visual Studio Community)
Hash: f2248ae6
Branch: d16-0
Build date: 2019-04-23 11:59:04-0400
=== Xamarin.Android ===
Version: 9.2.3.0 (Visual Studio Community)
Android SDK: /Volumes/Macintosh HD 2/VS Files/android-sdk-macosx
Supported Android versions:
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.2
SDK Build Tools Version: 27.0.3
Build Information:
Mono: mono/mono/2018-08-rc#5ac37ccd385
Java.Interop: xamarin/java.interop/d16-0#c987483
LibZipSharp: grendello/LibZipSharp/d16-1#44de300
LibZip: nih-at/libzip/rel-1-5-1#b95cf3f
MXE: xamarin/mxe/xamarin#b9cbb535
ProGuard: xamarin/proguard/master#905836d
SQLite: xamarin/sqlite/3.26.0#325e91a
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-0#0a7edd6
=== Microsoft Mobile OpenJDK ===
Java SDK: /Users/ashish/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android Device Manager ===
Version: 1.2.0.14
Hash: 86df26f
Branch: remotes/origin/d16-0
Build date: 2019-04-05 16:58:56 UTC
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Build Information ===
Release ID: 800050009
Git revision: d9d7eed60cb59740ba55c04bfe9c39ac57014c12
Build date: 2019-04-26 10:08:19+00
Build branch: master
Xamarin extensions: 5efedb990d786142d3b54351c01ce867af7b7680
=== Operating System ===
Mac OS X 10.14.4
Darwin 18.5.0 Darwin Kernel Version 18.5.0
Mon Mar 11 20:40:32 PDT 2019
root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
=== Enabled user installed extensions ===
Team Foundation Version Control for TFS and Azure DevOps 0.4.4.5

Error "Debuggee returned error code 200" when debugging Xamarin.Forms app

I've suddenly started getting the above error when I create breakpoints in my code.
This appears in a dialog box, and when I OK the dialog box, the app sticks on the breakpoint in question and doesn't proceed. If I delete the breakpoint, the app still sticks on the breakpointed line.
The only thing I've changed is to update my FreshMvvm package (it's a Xamarin.Forms app), which brings in a load of .net standard libraries and uses Rx to create weak event bindings.
This is killing my development - any known cause/solution? I see this thread has previously been posted -but no solution.
This is on Visual Studio for Mac, and the app is on an Android device.
Version information:
=== Visual Studio Community 2017 for Mac ===
Version 7.1.5 (build 2)
Installation UUID: 650b4c91-c7f5-4ee5-ad70-6f178f314906
Runtime:
Mono 5.2.0.224 (d15-3/14f2c81) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 502000224
=== NuGet ===
Version: 4.3.0.2418
=== .NET Core ===
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Apple Developer Tools ===
Xcode 8.0 (11246)
Build 8A218a
=== Xamarin.Android ===
Version: 7.4.5.1 (Visual Studio Community)
Android SDK: /Users/jameslavery/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.3 (API level 18)
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 26.0.0
SDK Build Tools Version: 26.0.2
Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin.iOS ===
Version: 10.12.3.3 (Visual Studio Community)
Hash: 8a391069
Branch: d15-3
Build date: 2017-08-28 16:51:11-0400
=== Xamarin Inspector ===
Version: 1.3.1
Hash: cbc48dd
Branch: 1.3-release
Build date: Thu, 21 Sep 2017 19:52:53 GMT
Client compatibility: 1
=== Xamarin.Mac ===
Version: 3.6.3.3 (Visual Studio Community)
=== Build Information ===
Release ID: 701050002
Git revision: 7afedcaef8e7542e70e3cf8f9bdb26938b8c0876
Build date: 2017-09-15 08:39:58-04
Xamarin addins: 3262aadf811a18c12eac6742532d052b0139a808
Build lane: monodevelop-lion-d15-3-xcode9
=== Operating System ===
Mac OS X 10.11.6
Darwin 15.6.0 Darwin Kernel Version 15.6.0
Thu Jun 23 18:25:34 PDT 2016
root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
=== Enabled user installed addins ===
Redth's Addins 1.0.9

Resources