Just installed CLion because I want to learn C#. I am having some issues with the configuration and cannot find a solution. I have attached a image with problems. I cannot figure out why it is complaining about CMake since this should be installed along with CLion. Hope You can help.
Thx in advance
CLion is for C++. If you want to learn C#, then use Xamarin Studio or Project Rider from JetBrains (Rider is in EAP and it does not work properly for me right now).
Related
I tried to import a winform solution file from VS code (windows) to monodevelop (Linux) but it failed. The error is as follows:
Error while trying to load the project '/home/virtuall_kingg/Camera_GUI/Camera_GUI/Camera_GUI.csproj':
File not found: /home/virtuall_kingg/Camera_GUI/Camera_GUI/Camera_GUI.csproj
I added Camera_GUI.csprojfile also but still the error is same.
Can anybody guide me on how to import solution to mono?
This winform project has become pain in my neck.
Is building the GUI using gtk# in Ubuntu from scratch is the only way?
EDIT: Now you can substitute mono with .NET 5, the common .net framework for all platforms.
You are asking multiple questions here. In Linux you have (limited) support for WinForms through Mono. Depending on how complex is your project, you could port it without modification. If there are p/Invokes, then you won't for sure be able to port it.
Yep, in Linux the "other" big option is Gtk#, which has a long history. If you would want to port the project starting from scratch, it'd be a good option, but it'd involve porting your classes from working with WinForms to Gtk#, which is not impossible, but not trivial either. The feasibility of this would mainly depend on how good that project is architected. Do you have bussiness logic and views separated? If the answer is no, then the process will be tedious, and as hard as lengthy.
MonoDevelop is an IDE for C#, and Visual Studio for Mac is roughly MonoDevelop. It certainly works in Linux... as well as Visual Studio Code. So, there is no need to change anything in that front if you just need to port your code to Linux.
Okay, now, what's the road to follow? I think the best one is to try Mono with WinForms. It'd maybe involve simplify some code in the user interface part, but is certainly feasible. Just remember that you need to install Mono, and if your project is set to target .NET Core, then you need to create another project from scratch and set it to target .NET Framework.
Now, the specific question is that MonoDevelop complains about a missing Camera_GUI.csproj. This means that you've only picked a few files, but not the whole solution. Any IDE (Visual Studio, Visual Studio Code, Rider...), would complain about the same thing. Either remove the project from the solution, or add the project with all its files to the directory in which the solution sits.
So, the answer is: don't change anything if you don't need to retarget your project. Just move to a Linux box or virtual machine, with the whole project and open it in Visual Studio Code Rider, Rider, or MonoDevelop it does not matter. From within the IDE, remove those projects that make no sense in Linux (i.e., windows installer), and then recompile and start the program. Polish those parts of the user interface that need tweaking and that's it.
Should you need more help, please be more specific and provide more info.
I've installed MS Visual Studio Code on my Mac (El Capitan OS). Basically, I want a C# editor and compiler, so I can learn how to code in C# and run those programs. I thought that, once VSC is installed, I would be set up and ready to go, but I've spent so many hours trying to get VSC to work, watching tutorials, reading posts and blogs.
I'm at this point where I've completely lost (and feel stupid). I don't know if someone can help me with a complete and thorough walk-through (keeping in mind that I'm new to all of this)?
So far, I've successfully installed VSC. But I have issues with the project.json and launch.json files (I don't even know where these files are supposed to be or to go) as well as a bunch of error messages.
If anyone could help me to go through the steps, I would be so thankful!
Visual Studio Code is just a editor. It just be able to edit text in source files (and debug).
If you want to learn how to code on Mac. I suggest using Mono http://www.mono-project.com/download/
It is open-source cross platforms IDE for C#, it's easier to use for beginner.
I am porting the jar lib from Osmdroid to Mono for Android (C#). At the moment everything seems to work. I ported the library and included the Binding-Project to my Testproject in order to test the correct porting.
I am able to access the osm libraries, but in MonoDevelop all references are written in red, marked with "resolve errors" and thus there is no Intelli-Sense. Even the "using Osm.xy" is written in red.
But as matter of fact these are just only visual problems. I can build the project and on the emulator everything works as planned.
Can someone tell me, what I can do to get these problems fixed (especially Intelli-Sense)?
Thanks in advance!
Just want to add that my problem is solved.
For everybody who faces problems with porting OsmDroid to Monodroid, meanwhile there exists a tutorial for binding OsmDroid v3.0.8 to Monodroid:
https://github.com/xamarin/monodroid-samples/tree/master/OsmDroidBindingExample
I would like to make an analog of Visual Studio Solution for my application.
I mean to make a file similar to Microsoft Visual Studio Solution file (.sln), which includes links to all the other solution files.
Can anyone link to an article on this topic? I could not find anything about it.
If you need to build a series of Visual Studio solutions, then you need a build tool.
The two most commonly used in the .NET world are
MSBuild (reference: http://msdn.microsoft.com/en-us/library/dd393574.aspx)
Nant (reference: http://nant.sourceforge.net/)
(It's not clear what you're asking, you may wish to clarify or give an example.)
I didn't really understand what you mean, but it seems that you need a building system, like CMake (www.cmake.org).
I'm starting a new project in MonoDevelop, and I want to see how other projects are using it.
I tried searching through SourceForge, code.google.com, etc., but mostly I was just finding things like add ins or something related to MonoDevelop itself.
So is there anyone else using MonoDevelop, especially open source?
Basically, MonoDevelop is designed to function very similar to Visual Studio, including using all the same sln/proj file types. You can take a VS solution, open it in MD, and hit F5 to run it, and vice versa.
Because of this, I don't know that many people are going to write about "how they use MD as part of their project" any more than someone is going to write about how they use Notepad.
Any project that is using sln/proj files on Linux/Mac is likely using MD.
MonoDevelop is multiplatform IDE, especially for Linux. Works with Visual Studio solution and project files (100% both direction compatibility). So you can't find project using it. Any C#/VB.NET project can be developed in MD.
Three years ago me and a friend started work a new mono project and tried to use MonoDevelop for it. However - this was an impossible mission - we got ridden with all kinds of bugs and crashes and in the end I said - go to hell MonoDevelop - I'll use my tried and true Emacs.
To tell you the truth with no features other than formatting and font locking Emacs turned out to be 10 times more productive environment for me. My friend somehow endured using MonoDevelop for the whole run of the project, but afterwards he said he was done with Linux for good if it offered such low quality dev tools.
Times were different back then, I've been following mono's development and monodevelop's as well - they seem to be turning out quite well. I think that the actual cause of your problem - not finding anything - lies in the fact that most Linux devs openly shun Mono as a development platform because of it's Microsoft roots. This is sad - because it's a solid alternative of Java - especially at the desktop applications front(GTK# is seriously cool).
Banshee seems to be using MonoDevelop. Probably most of the prominent mono projects with a GUI use it as well to some extent.
I've found MonoDevelop to be excellent so far. I've only been using it for about a month, but once I got it set-up the way I want it, I wouldn't go back to any other editor or IDE on Linux. It took me a while to figure out how to set the debugger up and configure the editor to how I like it.
It's almost like having Visual C# Express on Linux.
Try searching for MonoTouch projects. Mac + MonoDevelop + .NET iPhone apps.
I just tried compiling my project, 2 problems:
couldn't load Setup projects
couldn't load SQL Server Library projects
There is a way around this of course, just have to consider that not all project types can be built in mono and must design solution the way it doesn't stop you from building what you want.