LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2018, 10:40 AM   #1
WaterCatapult
Member
 
Registered: Jan 2017
Location: Germany
Distribution: Mint 18.3 KDE, Kubuntu 18.04 LTS, Raspbian
Posts: 84

Rep: Reputation: 17
Red face Is porting a VB.NET project to Linux possible using MonoDevelop? Or rather something else?


Hi there,

please don't hate me, as a beginner in terms of programming aside from some Python I really like Visual Studio and VB.NET at that seems quite fun and easy.

At work we use it to create small tools whose purposes are otherwise still going on either manually on paper or in Excel/LO Calc sheets.

Unluckily for me, I may have got the green light to run and maintain a Linux machine at work but I won't receive any help from a colleague if its about porting our projects.

So I wonder if it'd actually be possible in the first place to do so using either MonoDevelop or something else that's close to Microsoft's .NET framework and Visual Studio.

My program won't do much.
It's really just a small software that creates protocols for incoming wares at our warehouse featuring an access database that lists all the packages that reached us by date, supplier, amount and actual definition from the point on we're running the software (and that is also supposed to be accessed by my colleagues using Windows clients) and prints the result to paper if desired.

My code has not much going on so far other than the form window that's coming with a couple of dropdown menus for choosing departments and suppliers, as well as four radio buttons and a checkboxes that shall print additional information when clicked.

There's not much left either to be add, just a printer dialog and some buttons to print and reset the printed form.
Eventually, when clicking the print button those previously added information shall be written to the Access database so we can verify what happened to the stuff in future.

I'm really sorry for pointing all this out, you are probably not interested in all this.
All I want is to make clear of what sort of software we are talking about I'd like to port to Linux so it's also usable for me in the long run.

That said, can MonoDevelop do the job or do I need something else?
 
Old 03-02-2018, 02:15 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,715
Blog Entries: 6

Rep: Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575
My first question would be "why"?

If as you say you like VS and VB.Net, your data comes from an Access source and goes to an Access sink, your users are all on non-Linux platforms and you want to write it in a proprietary non-Linux native language - why introduce a Linux machine at all?

So, I think the place to start would be to nail down your actual requirements and goals and see if they naturally include a Linux machine. If not, stick with what you have.

That said, if your requirements point to a Linux platofrm, then I would suggest writing the application that runs on the Linux machine in a native language and avoid trying to port the existing code altogether. As you say there isn't much that exists yet, there should not be much to rewrite. Doing so would be the key to keeping it usable for you, presumably on a Linux platform, in the long run.

And all of that said, I have avoided Mono altogether so must defer to others for specific answers. However, if you must use .NET code on Linux, that would seem to be the way to get there.

Good luck!

Last edited by astrogeek; 03-02-2018 at 02:23 PM. Reason: tyypos
 
2 members found this post helpful.
Old 03-03-2018, 06:16 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,557

Rep: Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092
If it has to be ported at all, I suggest using the standard tools: Apache+PHP+MySql (and WebBrowser as client program).
 
Old 03-04-2018, 03:45 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,372

Rep: Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419
Short answer: quite possibly not. Quite a few .NET applications use extensions and/or libraries that aren't available for Mono.
 
Old 03-04-2018, 08:40 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
Be very careful that you do not "push Linux" because you want it, because you think it's cool, etc. ... when the stated needs and orientation of the organization that you serve do not align with what you want. There's nothing per se wrong with what Microsoft has done: they've sold millions of copies of their system and there's actually a reason for it. They earned those billions of dollars, fair and square.

Although means exist for VB, C#, et al to be "ported," that's not really what their designers intended. Windows is really a vertically-integrated ecosystem of software components all produced by one vendor. Linux, even slightly under-the-covers, is a very different beast. The decision to introduce Linux into a Windows shop should be made soberly and at a very high level within the organization – not by a programmer of the line, however earnest (s)he might be. Sometimes it makes business sense; often, it doesn't.

Last edited by sundialsvcs; 03-06-2018 at 09:04 PM.
 
Old 03-06-2018, 10:10 AM   #6
hexone
LQ Newbie
 
Registered: Mar 2018
Posts: 8

Rep: Reputation: Disabled
You might consider FPC/Lazarus. It is a similar environment to Visual Studio except it uses Pascal instead of Basic or C#.
 
  


Reply

Tags
linux, porting, project, visualstudio, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting openframework project from windows to linux Codey666 Linux - Newbie 1 06-09-2013 04:47 AM
Porting a project on Linux--machine.h,table.h not found shobhitmittal Linux - Software 5 09-06-2008 02:52 AM
Need help regarding porting a project from windows to linux noble_curious Programming 9 12-07-2007 06:58 AM
Porting C++ Project from Windows to Linux?? ashwinipahuja Programming 0 03-20-2004 01:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration