mono: is there a gtk gui designer like visual studio 2010? - user-interface

My computer system consists of VirtualBox with Ubuntu 12.04 as the host and Windows7 as the guest. Ubuntu serves as my every day computer needs while Windows7 serves as my cross-platform testing needs.
I am using MonoDevelop in Ubuntu 12.04 for all my C# needs. Is there is a GTK GUI designer for Ubuntu 12.04 that has the ability to help guide the alignment of the GTK Widgets like Visual Studio 2010 does for Controls? I've been really spoiled with Visual Studio GUI designer, I really like the auto snap(or is it called docking?) and alignment guidance features that VS Studio provides.

From my research, I'm afraid you have the best Linux has to offer for mono development. The best I can find for you is Stetic GUI Designer. Never used it, but looks promising.
I've always used Eclipse for my C# dev and there is definitely nothing like that in that community. Considering changing now.

I think you can't. GTK uses a table concept to design. You can use vertical or horizontal containers, or tables...
But you can't drag and drog and align with a simple gesture.
You should imagine first what design you want and later think what containers can help you to accomplish your design.

Related

How to develop Windows app on Visual Studio for Mac

I recently bought an iMac in order to develop my App on Visual Studio for Mac in a better environment (lots of issues on Windows), but on the Visual Studio for mac, there is no UWP projects.
It is understood that I have to create a new .NET project, but what are exactly the steps to follow in order to achieve that correctly for the app to work on Windows with a peace of mind? Should I have gone with Visual Studio code, which support the .NET core framework completely?
I saw on other answers that I need the .NET SDK tool, and so forth, but further details are needed if you don't mind on the why (not the installation stuffs, only the tech savvy explanations for the app to build correctly at the end!
You will need to run a Windows installation (eg, via Parallels or Boot Camp) and then run the Windows version of Visual Studio to create UWP apps.
You can do a lot of the business-logic coding inside Visual Studio on MacOS, but you will need Visual Studio and the Windows SDK to use WinRT types (which are required to build a UWP app) and to correctly build / package the app for deployment.
.NET is a big ecosystem. As you cannot develop all kinds of .NET projects using Visual Studio on Windows (Xamarin.Mac for example), you cannot do the same using Visual Studio for Mac (like you found, WinForms/WPF/UWP and so on). Such limitation comes from vendor SDK availability or other underlying systems.
In your case, you can easily develop web apps, Mac apps, and iOS apps. If you do want to develop Windows specific apps, like the other answer shows, please use Windows.
You mentioned ".NET SDK", but I believe that should be ".NET Core SDK". .NET Core apps are cross platform. Thus, you can develop such apps in Visual Studio for Mac, and then deploy to Windows. However, so far only console apps and web apps can be developed. What might happen in the future is still to be determined.
Visual Studio Code, however, is just a code editor. It won't give you extra flexibility.
For those whom imperatively needs to develop their app on all platforms, here is what I did, and the pros and cons:
Buying an Imac, thinking that I could also develop UWP projects within it
After realizing that I couldn't, I bought a cheap Windows 7 pro License on ebay (around 5$), and installed it on VirtualBox.
From there, I upgraded to Windows 10 for free and installed everything. It worked like a charm.
Cons: Buying a brand new IMac while a Macbook pro would have been better. An old one even since YOU CAN'T upgrade the ram.
Working on 8go of ram computer when you must give 4go of RAM to your VM isn't quite great. 4go gets you a laggy environment! Really frustrating.
So, prefer something older, but up-gradable (a cheap Macbook pro with 16go of RAM would do).
Not to mention that you will have to install Ubuntu as another VM in order to setup a .Net core Server for the majority of you.
What environment to favor while developing, most importantly when you are a C# and Xamarin noob like me?
The best being to develop from Mac as you will have FAR LESS ERRORS AND BUGS than in VS for Windows.
Correcting mistakes is really daunting and the best is really to develop from Mac to mitigate the damages, but it won't be hurdles free as well!
It took me more time debugging than coding within VS Windows.
After developing chunk of your app within Visual Studio MAC, the best is to get the code on the windows machine and arrange it to work in UWP.
UWP apps compile fastly and like a charm, so better is to get rid of errors within macOS, IOS, Android, and then go and adapt to UWP. This is easier IF YOU THINK ABOUT CHOOSING THE CORRECT LIBRARIES (working on all platforms, hence check my last advice).
From VS Mac, compile using macOS as a host! It's the easiest way to develop fastly, and correct your bugs.
Here is an article on how to get started from Mac:
https://blog.xamarin.com/preview-bringing-macos-to-xamarin-forms/
Cons: Always having to commit the code for it's use within UWP. But that's also a good way to save your project as well, so that if you screw up (like it happened to me numerous time) you roll back.
Hope that helps others whom didn't know what to do and where to start.
ALSO:
Don't follow tutorials dating from before 2017. Use the .Netstandard/.NET Core framework to develop your App so that libraries are more portable (following the blog article above should do).
Otherwise, headaches ahead!

Modern GUI programming tools

Does anybody knows how to program modern and fashion GUI's like this example?
modern GUI
What kind of tools should I need for developing for Windows in Visual Studio?
Thank you very much.
If you are doing this in .NET, targeting Windows, I would suggest you use WPF. Visual Studio 2010 has all the tools built in to build a GUI like that. There are loads of tutorials on how to do this, I found this one in 24 seconds.
If you would like it to be fairly platform independent, targeting Linux, OSX, Windows etc you probably would like to use Qt. Qt has a pretty good editor focused on developing in C++ using cute called Qt Creator but if you are focused on using Visual Studio there is an add-in that might help you.
Edit: There is a similar question here on stackoverflow that might help you: Creating a nice GUI in WPF
If you want to develop in win-forms I suggest using 3rd party control vendor , such as Telerik or Dev-express.
Telerik's support is very good and their win-forms controls are pretty stable around now , You could download a free trial to try it out.
http://www.telerik.com/products/winforms.aspx
http://devexpress.com/Products/NET/Controls/WinForms/

Stand alone sleek application for Windows - But I'm python/Java dev. What is the least learning curve way?

The application is simple and deals with showing images and simple image manipulation.
I know python and java, but haven't seen a sleek standalone application built in them on windows. I'm not sure how reliable py2exe is.
Going the .Net/C# seems to be the only way, which I dread, since I've never done any programming in those.
Is there another way ? I've heard about silverlight & prism. Don't know if they can access filesystems when you make a standalone application out of them.
Since you know Python maybe IronPython is an option for you? You can also use create a Swing Java app
It's a little fringe right now - but you can use the new Python tools for VS 2010
http://pytools.codeplex.com/
If you don't have VS, download the "Microsoft Visual Studio 2010 Shell (Integrated) Redistributable Package" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=8e5aa7b6-8436-43f0-b778-00c3bca733d3&displaylang=en
then you can install the python tools...
Keep in mind you'll still have to learn XAML or WinForms & it's still .net...
Hope the helps.

I have a legacy C++ project that uses motif for GUI. I want to create a Visual Studio solution of this project. Is this possible?

I have a legacy C++ project that uses motif for GUI. I want to create a Visual Studio solution of this project. So that I can build/run/debug from Visual studio. Currently I am on a windows box. I ssh into a Unix box and use cc to build and dbx to debug. When I run the application I change my display to the windows box and use xming for the xwindows display.
Is it even possible to build/run/debug from Visual Studio with this setup?
TIA
I'm not aware of a Motif implementation for Windows and I would expect that to be quite hard to do, given that Motif has been intimately tied to X-Windows for decades.
I assume that you want to use Visual Studio as it is a friendlier environment? In that case, you may want to look into getting better tools on Unix to make your development experience more pleasant. There are various IDEs (if that's your poison) available on Unix, starting with the ubiquitous Eclipse to things like SunStudio (if you're on SUN) and of course all the integration tools that allow you to use the more powerful Unix editors like Emacs or VIM.
If your server connection is slow/flaky/expensive etc and you'd rather develop on your desktop, why not stick a VM with a Linux version or if you're developing for Solaris, one of the OpenSolaris or Solaris 11 developer preview builds into a VM on your machine and work on that one?

What's the best setup for Mono development on Windows? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
I started trying to play with Mono, mostly for fun at the moment. I first tried to use the Visual Studio plugin that will convert a csproj into a makefile, but there seemed to be no version available for Visual Studio 2005. I also read about the MonoDevelop IDE, which sounded nice. Unfortunately, there's no pre-fab Windows package for it. I tried to follow some instructions to build it by combining dependencies from other semi-related installs. It didn't work, but that's probably because I'm a Windows-oriented guy and can barely spell "makefile".
So, my question is this: What's the lowest-energy way to get up and running to try some Mono-based development on Windows?
I'd recommend getting VMWare Player and using the free Mono development platform image that is provided on the website.
Download Mono
Setup time for this will be minimal, and it will also allow you to get your code working in .NET and then focus on porting issues without a massive hassle of switching machines and the like. the VMWare Player tools will allow you to simply drag and drop the files over to copy them.
I'm looking to take a couple of my .NET apps and make them Mono compliant, and this is the path I'm going to take here shortly.
A year later and the answer to this has change greatly. You can now use MonoDevelop on Windows, or if you are more comfortable in Visual Studio you can use the Visual Studio Tools to write everything and then debug on in VM to make sure it is working on Linux.
#Chris I have found that Visual Studio is the best IDE for developing against .NET -- I think the best way to target Mono is really just to develop and build in Visual Studio under Windows then just run those binaries directly on Linux (or whatever other Mono platform you are using). There are free versions of Visual Studio if licensing is a concern. If you are developing under Linux, the best software is probably Eclipse with a Mono plugin (see The Mono Handbook - Eclipse for installation instructions) but keep in mind it doesn't have near the amount of features or language integration Visual Studio has.
#modesty Mono is a 3rd party open source implementation of the .NET framework which allows you to run .NET applications on platforms other than Windows.
One of the best things you can do if developing with Visual Studio for Mono is to get MoMA http://www.mono-project.com/MoMA. This will inspect any number of assemblies that you build and generate a report showing potential Mono problems (e.g., methods not implemented in the mono library). It can be run from a GUI or the command line for use in automated builds.
Miguel had a post about debugging Mono running on linux with remote debugging on Visual Studio. This may be something you want to look into... Using Visual Studio to debug Mono. There is also a new project called CloverLeaf whose goal is enabling debugging Mono on Windows in Visual Studio.
There's just no reason to build your app using Mono; the whole point of the .Net CLR is that the compiled output is cross-platform.
So you can simply build it using your favourite IDE (and if you like IDEs, Microsoft's is the best one to use) and then test it on Mono. Even if you get Mono working on Windows, it wouldn't be a very good test of your app's portability: what if your app does silly things like assuming filenames have backslashes in them, or that there's something special about a folder called Program Files? The best way to do portability testing is to actually test your app on the target platform.
And that's pretty easy to do with a Linux VMware player like the one at http://www.go-mono.com/mono-downloads/download.html.
Personally, I'm just compiling in Visual Studio 2008 as if it were for .Net 2.0 and then running in Mono (VS2008 on Windows in a VirtualBox, Mono on OSX). All the problems come up at runtime, anyway, so the system works perfectly.
I just found this very new link, which is amazing and shows you how to set up Visual Studio 2008 for Mono.
At the same time, setting up Mono on OpenSuse or Ubuntu inside a VirtualBox (Sun's product) is easy, painless, and doesn't force you to abandon whatever platform you normally live in.
This is not relevant to your question, but I might note that I just got into Mono and I'm amazed at how much of .Net is implemented, including much of the Winforms stuff.
My first instinct would be the rather unhelpful "Install Linux". You are somewhat swimming against the current to try and develop in mono under windows. Installing GTK and everything is a bit of a bother in my experience.
If you do feel like using linux, then you could Try Ubuntu
Otherwise:
There's some information here: http://www.mono-project.com/Mono:Windows and it seems the cygwin toolchain might be your best bet. I don't think you're going to be able to avoid makefiles, sadly. I found a slightly more explicit tutorial from O'Reilly.
#modesty: Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix. Sponsored by Novell (http://www.novell.com), the Mono open source project has an active and enthusiastic contributing community and is positioned to become the leading choice for development of Linux applications. -- From the Mono site.
Eclipse plugin for Mono is dead. On Linux use MonoDevelop or X-Develop if you like good commercial support (although MonoDevelop is closing on them fast feature-wise). On Windows SharpDevelop has custom MSBuild targets for compiling the code against Mono.
As Mono and MonoDevelop are changing fast, be sure to use the latest released versions, even if they are not marked as stable yet (e.g. versions shipped with stock Ubuntu are terribly outdated).
The VMWare image is a great way to start testing Windows-developed code on Linux. Don't touch cygwin unless you are already very conformable with it.
I liked the idea of trying to use MonoDevelop mostly just to make sure my stuff would work against the Mono runtimes. I guess it would also be possible to get crazy with msbuild and write some custom targets that tried to build against Mono, but that's basically emulating the now-defunct plug-in's functionality which I assume was non-trivial to build. I do have minor experience with cygwin, and I am happy typing "configure" and "make" all day long, but when a problem occurs in that process, I'm virtually screwed. I'll probably try to play with all this again, but if it takes me more than a couple hours to come up with a way to build comfortably against the Mono runtimes, I'll probably just bail.
I will try the Eclipse idea. I use that for Java, so I might be able to get the c# stuff to work. We shall see...

Resources