Before writing this I have gone through many articles, but dint find steps to follow. I found a plugin 'Monohelper'.
Finally my requirement is to build an application using visual studio for linux environment which will be a console application, on which I will be using WebClient for connecting with internet . I am not familiar with linux environment. Can somebody share steps i need to follo to process ahead with visual studio and C# .
It is now much easier to get Mono and MonoDevelop installed on a typical Linux disto using Xamarin's feed,
http://www.mono-project.com/download/#download-lin
And once that's done, you can easily follow steps such as
http://anh.cs.luc.edu/170/notes/CSharpHtml/lab-monodevelop.html
Forget about Visual Studio temporarily, as you won't get quite what you want at the beginner level without learning much of Linux and Mono. After playing Mono for a few weeks and noticing the differences, you can then see what Visual Studio can help.
Related
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!
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.
I was hoping someone would be able to help me out with a simple question. In Visual Studio 2015 I'm looking to build a mobile phone application, and I was hoping there is an alternative to using Xamarin, something a bit less complicated but still uses C#. Any suggestions will be greatly appreciated, many thanks Dylan.
Microsoft adquired Xamarin, so if you develop in Windows OS you need to use Visual studio, otherwise, if you develop on Mac, you should use Xamarin Studio. But you should know that is not about the IDE, is about the platform. If you don't want to use C#, and want to build an hibrid mobile app you need to check Apache Cordova
Although, I used Ubuntu for C++ programming, I have recently started programming in C# in Ubuntu. Earlier, I used Microsoft Visual Studio for that. I am using Emacs as my text editor.
I am really missing the IntelliSense feature of Visual Studio. How can I get that feature in Emacs? or can I get that feature in Emacs ?
I have used auto complete mode in Emacs, but it is not working in C#.
have you tried Monodevelop? i am also trying find a IDE to code in c#. for now, i am using mono deveop. it's not feature full as visual studio, but it has a limited auto complete feature based on .net frame work 4.0.
I didn't try it in linux though. i am using it in mac. but, it would worth a trial if you have time.
So, I was wondering how to compile C#. I have Windows 7 Enterprise. Is there a built-in program or do I have do download one?
If I have to download one, what do you recommend?
I have Googled this, and it told me about "csc.exe" but I can't find this.
For any real development, an IDE is preferable. Microsoft offers the Visual Studio Express edition for free, which has everything you need to get started with C#.
However, you can compile using just the command line compiler (csc.exe), which is included with the framework.
It should be located in the .NET installation dir; for instance on my machine for .NET 4, 64 bit version, I have a csc.exe in:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Your choices are:
csc.exe (the command line compiler), which is in c:\Windows\Microsoft.Net\Framework\v4.0.30319\
Install Visual Studio Express, the free edition of VS, for Windows/Console Applications, Web Applications, or Windows Phone Applications
Purchase a license for Visual Studio 2010 or get an MSDN subscription
Use the command line compiler csc
C:\>csc file.cs
You can use Visual Studio Community edition which is a full featured free IDE from Microsoft that will compile C#.
Since you're starting fresh, why not use an IDE that does it for you?
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
You can find the command-line compiler, csc.exe, in \Windows\Microsoft.Net\Framework\vX.Y.
However, you will probably want to use Visual Studio, Microsoft's world-class IDE.
You can download the free version.
For literally compiling C#: Native Image Generator
Otherwise get Visual Studio.
Using Visual Studio will be the easiest way. There are free editions available - see http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express for details.
You need Visual Studio to compile it once you have it installed. Once you have it installed you can go to Visual Studio Command Prompt and Use C# compiler csc.exe to compile it.
Look here for more information Command-Line Building
You need to have the framework installed (2.0, minimum). Then follow this old article for a simple how-to:
http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx
NOTE: Microsoft IDEs like VS can do this for you also.
Not sure if you can do this by default with Windows 7 Enterprise. At very least you are likely going need visual studio.
You can get Visual C# here for free: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
I would advice Visual Studio, the express edition is for free, you can find more information on the microsoft site over here.
I started using SharpDevelop as a portable text editor that understood ASPX files out-of-the-box (vs. Sublime, etc.), but I've build a couple of small (<10K lines) utilities using just that and CSC now. A portable copy of SharpDevelop is especially handy when you don't have the administrative permissions (or time) to install full Microsoft Visual Studio in an environment.
Download the "XCopyable" edition to get the portable edition of SharpDevelop from here:
http://www.icsharpcode.net/OpenSource/SD/Download/Default.aspx#SharpDevelop5x
Also consider the option of using Mono & MonoDevelop available for Mac, Linux and Windows. Not a bad choice for a serious beginner.
I would like to develop Mono application for Win/Linux/Mac in C# on Windows. Is there any really good (Visual Studio comparable) IDE for that? The best would be if I could manage Visual C# Express to compile solutions using the Mono compiler.
I've found a #develop IDE, which looks very cool and has many features that Express edition of the Visual Studio hasn't (like plugins for TortoiseSVN, NUnit, etc). Hovewer the 3.* versions dropped support for Mono, so you are no longer able to compile solutions using the Mono compiler.
There is also a MonoDevelop. I've tried it and it sucks. Not comparable to Visual Studio at all. No WinForms designer, + tons of other missing features. I would just like if they would drop the development of MonoDevelop and build a plugin for #develop instead.
Is there any other good enough IDE, or is it possible to make the Visual C# Express or #develop compile the solutions with Mono compiler?
EDIT: Delphi Prism looks cool, but it isn't C#.
You can always develop your applications using Visual Studio Express Edition (since you don't want to pay for the Mono Tools). Monodevelop will support compilation of Visual Studio solutions now, so just develop in VS, and recompile occasionally in Monodevelop to guarantee support.
Since Mono now supports Windows Forms, you can develop a Windows Forms application entirely in Visual Studio, and just deploy it using Mono. Since C# compiles to IL, it doesn't matter which IDE you use to develop - you can still run it on Mono.
How about Mono Tools for Visual Studio?
Note that it's a commercial plugin.
Whilst SharpDevelop 3.2 does not support mono out of the box but if you download the source code for SharpDevelop you can find a code sample that contained the original code for mono support. If you build that sample then mono support will be re-enabled in SharpDevelop.
A decision was made to remove mono support from the main SharpDevelop application since only support for compiling with mono was provided and MonoDevelop can now run on Windows. Note that mono support in SharpDevelop does not provide any integrated debugging with mono's debugger and there is no GTK# designer compared with MonoDevelop.
You can use Mono Tools for Visual Studio. However, it's a paid product.
I think your best bet will be to do development with VS C# Express, and then use a virtual machine--such as VMWare, Virtual PC, VirtualBox, etc.--to access Linux (which is the primary platform for MonoDevelop, and on which it works really well, comparably to VS.)
There are even a number of downloads available that are primed for doing exactly this. You could even use a Live CD, and just reboot your machine to get into Linux (which can usually access Windows partitions with no problems.)