0

I want to use latest Mono (5.4.1.6) to write a console app in Visual Studio 2015/2017 for a Raspberry Pi 3 (Linux). Searching the web I've found that it is possible to use Visual Studio, but there are limitations.

I can use MonoRemoteDebugger, but I also need to target Mono framework, not .NET framework, because I do not know if they are fully compatible. Adding the Mono target profile works only up to profile 4.0 and I want to use the latest Mono (.NET 4.5).

MDebug looks fine, but it is not free.

Mono Helper also looks fine, but how can I remotely debug the app?

I can use Xamarin Studio 6.3 configured for remote debugging, but I have not tested it and I do not know how well it works. Also, I prefer Visual Studio and it would be great if I avoided installing a different IDE if VS could do the job.

So, is it possible to remotely debug Mono app from Visual Studio? Should I try Visual Studio Code?

If I finished my app, then how can I generate the release build?

I've noticed that the plugins have the option to debug the app, but not for generating the release build.

This is new to me and information found on the web did not help me understand everything I need to do my work. Any help would be appreciated. Thank you!

12
  • Am i wrong, or. When you write application with Mono you use just their multiplatform .NET framework, when you open that application in Visual Studio and configure it, you should use default .NET framework. And it becomes a default vs application so you should search how to debug it Commented Jan 10, 2018 at 12:56
  • @MarkBenovsky If I write the app in Xamarin (aka MonoDevelop) and open in VS, it will compile with .NET framework when I need it to compile with Mono framework. Can you detail your answer? Commented Jan 10, 2018 at 13:19
  • So what is your problem. If you need Mono framework, then debug in MonoRemoteDebugger. If you want to use Visual Studio you need to specify .NET framework version in project settings and then rewrite any code that is outdated specific for mono libraries. And use vs Commented Jan 10, 2018 at 13:22
  • Also when you want to build for release. There should be a build configuration called Release, and change your configuration from Debug to Release Commented Jan 10, 2018 at 13:23
  • @MarkBenovsky The problem is that when writing in VS, how do I know what code is not specific for Mono libraries (in other words, should I be certain that if I select .NET 4.5 everything I write is compatible with Mono)? On their website it says Mono is compatible up to .NET 4.7, but in Xamarin the latest selectable framework is "Mono / .NET 4.5". Commented Jan 10, 2018 at 13:29

1 Answer 1

0

It seems it is not possible with free software. I can use Visual Studio with MonoRemoteDebugger and if I have doubts about code compatibility, I can build the project in Xamarin which permits targeting Mono.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.