how to run c#4.0(visual studio 2010) windows desktop application in linux? - linux

I want to run c#4.0 windows Desktop application in linux?Please anybody having idea share with me...
Saravanan.P

The only way to run C# code on linux is to use the Mono project: http://www.mono-project.com/Main_Page
But maybe all the Framework 4.0 is not yet ported. You have to test to compile your application against Mono.
Hope this helps.

Search for "Cross-Platform" procedure. It will help you.
Use the Visual Studio .NET IDE and Grasshopper to Deploy .NET Apps on Linux!
http://dev.mainsoft.com/Default.aspx?tabid=45

Related

How to use YubiKey desktop SDK on macOS

I have an existing macOS cocoa app and I'd like to be able to support YubiKey to unlock my app. I've viewed the video on using the Desktop SDK for Windows and Mac but I have no idea how one uses a .NET library within a cocoa app or even if it's possible.
Can anyone clarify how to use this .NET library with a cocoa app? Do I build a framework with Visual Studio to then import into my app or perhaps make a Mac console app with VS? I don't even know where to get started on this.
Any help would be greatly appreciated!
//Ray

How to run .Net core WinForms application on Linux

So I have created a test .net core 3.1 WinForms application on Windows. It's an .exe application. I have copied it to my Debian VM and installed .net core 3.1 runtime. When I double click on it to run then I get the following screen:
How do I run this .exe application?
I would have commented to ask first but I don't have that privilege.
Do you have anything installed to run exe applications? If not, try installing a compatibility layer such as Wine for Debian which would allow your system to understand the format. From my research, Wine should be able to interpret your .net core version.
If you already have Wine, then just ignore me :)
You need to take your source code to a linux machine and compile it there with Mono. EXE files will only run with a compatibility layer like wine. See https://markheath.net/post/running-windows-forms-on-linux-with-mono for an explanation how to compile .net applications with winforms for linux

can a nodejs application developed and build on linux environment can also be build on windows

I have a nodejs web application with angularJS in frontend which was developed and build on linux earlier but now I need to build it in windows and proceed my development. Is it possible. If yes then what will be the required steps and what will be the dependencies i need to install.
Can I run this application through Visual studio 2015 by importing it. If yes what will be the process. Please help. Thanks in advance.

VB.NET on Linux

Is it possible to run VB.NET in Linux?
I have written code in VB.NET and compiled it as well using Visual Studio in Windows.
Can the same code be written (and compiled) on Linux as well?
If yes, then which software do I need to install on Linux?
Is the Linux alternative of VB.NET freeware?
You can run Visual Basic, VB.NET, C# code and applications on Linux.
The most popular .NET IDE is Visual Studio (now in version 2019) that runs in Windows and macOS. A good alternative for Linux users is Visual Studio Code (runs on Linux, Windows and Mac).
You can compile and run VB.NET code and applications (part of .NET framework, consider the successor of Visual Basic, with several language differences from Visual Basic 6.0). A subset of .NET is .NET Core that can be installed on
Red Hat Linux,
Ubuntu,
Linux Mint,
Debian,
Fedora,
CentOS,
Oracle Linux
and openSUSE Linux distributions.
Setup details are on https://www.microsoft.com/net/core.
You can also use Mono, a free and open-source project led by Xamarin (a subsidiary of Microsoft) and the .NET Foundation. The project focus is to support an ECMA standard-compliant .NET Framework-compatible set of tools (including a C# compiler and a Common Language Runtime).
Mono can be installed on
Ubuntu,
Debian,
Raspbian (used in Raspberry Pi)
and CentOS Linux distributions.
You can run most Windows applications (created with VB, VB.NET or with other tools) using Wine that supports the Windows API on Linux.
** About Visual Basic (not VB.NET, due to the original question) **
Note that the last version of visual basic is 6.0, released in 1998, declared legacy during 2008 and supported on Windows XP, Windows Vista, Windows Server 2008 including R2, Windows 7, Windows Server 2012, and Windows 8.x. There are also other basic flavors (like QuickBASIC, Gambas or others).
The support end dates for Visual Basic 6.0 are:
The Visual Basic 6.0 IDE [Integrated Development Environment]:
supported ended on April 8, 2008.
Visual Basic 6.0 Runtime the base libraries and execution engine used to run Visual Basic 6.0 applications: support ended on April 8, 2014.
Visual Basic 6.0 Runtime Extended Files: support ended on April 8, 2014.
You could have a look at the Mono VisualBasic.Net support, or maybe go and check out the Gambas project.
You won't find a fully compatible solution.
There are a few, like SimpleBasic, GnomeBasic and XBasic. None of them are fully compatible with Visual Basic.
The above answer was accepted eons ago, but is horribly outdated, since more recently, there's also .NET Core. This will run the actual VB.NET language, but it will not use Windows Forms controls and features powering most real VB.NET applications. .NET Core 3 does support some variation of Windows Forms, but only on Windows.
Please check Pedro Polonia's excellent answer that contains all the details that mine misses.
Mono is a really interesting project. You can run applications on Linux.
Is not fully compatible, but they are working on that.
Take a look in this site Working with Mono
VB on linux is posible using vb2005.
First install wine.
run in the terminal winetricks dotnet20 dotnet40
download the installer and run it
(wine Downloads/yourinstaller.exe)
execute wine WINEPREFIX=~/yourprefix WINEARCH='win32' wine yourprefix/drive_c/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/vbexpress.exe
Gambas Basic is actively developed and works good. Here you can find a small tutorial for programming a calculator:
Gambas Basic 3.14
This is now possible using .NET Core.
Publish .NET apps with the .NET CLI
How to run a .NET Core console application on Linux
The Java countdown is now running :-)
For those looking for an alternative to Visual-Basic and Visual-Studio with cross-platform support, B4J (Basic For Java) is a good choice too. It's free, kind-of\semi "open-sourced" and really user friendly especially for those coming from VS.

How to run C# 4.0 app on Linux OS using mono?

I want to run my c# application with OS Linux using Mono. I am new to this cross platform migration? Please tell the procedure for doing that?
Thanks & Regards.
It very much depends on what type of application it is. For a console or WinForms app, it may be simple. Mono doesn't support WPF.
Well, the first think you'll need to do is install Mono of course. Then you probably want to run MoMA to determine your application's compatibility. There's a whole separate page about porting WinForms apps.
If all is well, you should just be able to run your application using:
mono MyApplication.exe
after copying the binaries over.
If your application is actually a web service or web application, you'll want to think about the various hosting options.
I suspect you'll want to read a lot of the pages on the Mono Start Page.
Check if your application is 100% compatible with Mono Framework using MoMA.
Remove or replace those unimplemented parts with Mono's implementation or third party libraries that works with Mono. Or if you think it should work fine, just execute it with Mono Framework 2.8 or higher. Better go with 2.10 which is default's profile is on 4.0.
There is an IDE, MonoDevelop that supports Web and Desktop applications. Open the project files (monodevelop supports visual studio project files) from monodevelop, compile and run.
you can browse mono website here, where you can find which features are supported and which are not supported and why.

Resources