building windows binaries monogame - c#

I just installed Lubuntu on my old computer, and I installed MonoDevelop and MonoGame.
The Linux template work flawlessly, but the windows template crashes.
What are the steps needed to compile a Windows binary using MonoGame and MonoDevelop on Linux?

Related

C# project not running on a Linux System

I developed a C# project in Microsoft Visual Studio 2017 in .Net Core Environment. I works properly on my Windows 7 system. I want to run this project on a Linux system. I havent worked on Visual Studio code in Linux before. I copied the debug folder of my project on the linux system. But it is not running .
Any suggestions on how to approach the problem to run the project on Linux.

C# Desktop Application with CEF browser embedded NOT RUNNING on Client's PC, but runs on development PC's

I have developed a C# Desktop Application application on VS2013 that has CEF(Chrome Embedded Framework) in it. The Application is developed on .NetFramework 4.5.2 with Target Platform set as x64 (It has to be x64 otherwise CEF doesnt work)
The App runs on the developer PC but when i install it (using a setup) on Clients PC and simply run it by clicking the installed .exe , the mouse pointer loads for a few seconds and then nothing happens. It doesn't appear in task Manager either. I have tested it by installing another C# Desktop app developed in the same environment and configuration but without CEF , and it is working Fine in all the client's PC's.. Is there any problem with the CEF?
Following are the Specs of Developers PC and the Clients PC.
Developers PC : [Application Running]
Windows 10
OS = x64 bit
Visual Studio 2013 with .NETFramework 4.5.2
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Another PC 2 : [Application Running]
Windows 7
OS = x64 bit
Visual Studio 2013 with .NETFramework 4.5.2
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Clients PC 1 [Application NOT Running]
Windows 8.1
OS = x64 bit
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Clients PC 2 [Application NOT Running]
Windows 8.1
OS = x64 bit
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Any help would be highly appreciated. Thanks a lot.
There is a tool built into windows called sxstrace.exe that can help determine what is missing.
1) Run something like:
sxstrace trace -logfile:mylog
2) Try to launch the application
3) stop the trace (press any key in cmd window)
4) parse the logfile like:
sxstrace parse -logfile:mylog -outfile:mylog.txt
5) view output file for errors
EDIT: In your case, very likely missing some CEF files. From their documentation:
The following files, in addition to the usual .NET project files,
should be present in the bin directory. They should live side-by-side
in the same directory as the CefSharp.Wpf.Example.exe file, except for
en-US.pak which is in a locales subdirectory:
cef.pak devtools_resources.pak icudt.dat libcef.dll /locales/en-US.pak
I hope you are not releasing a Debug version of your application. That might explain the dependency on MS VS being installed. In my C++ experience debug builds sometimes require some DLLs that can only be found in a Visual Studio installation.
Another debugging idea: download a Sample Application and place just the executable (cefclient.exe) into your project installation. It is important to fetch the version that corresponds to your CEF version. Try to run the simple app. If it works, then the required binary dependencies and assets are there and the problem is somewhere else.

.NET Compile on Mac run on Windows

I have installed Xamarin and Mono on my Mac so that I can work with a C# project on the fly. I can run it on the Mac, however when i compile the project on my Mac and then run it on Windows (server 2003), I get an error message.
Why is this?
I was using Windows specific .dlls like Kernel32, etc. Removing these parts made it run on OS X and Linux.

C# mono GTK how to pack for Mac OS X

I have developed an application on my Windows machine, using Xamarin Studio, targeting Mono / .Net 4.5 and using GTK. The app runs on my Windows machine since I have .Net installed, now I need to deploy to a Mac. The Mac has Mono Runtime already installed, but I have no idea what to send.
If there is anything I need to "pack" or "link" I need to do it on my Windows machine and only send one or more files to the Mac user, so they can run it. After hours of reading, I keep hearing about mkbundle and MonoMac, but it seems that you use them on a Mac or at least I have not found a clear guide on how to do this on my Windows computer.
Here is the question - I have only one .exe right now, how do I "convert" this to a Mac "executable?"

How do I make a GtkSharp app work on Windows

I am new at C# and mono. I just wrote a small GtkSharp program on my Ubuntu laptop and when I tried to run it on my girlfriend's windows 7 computer it just wouldn't start. So I thought it might be because she doesn't have Gtk installed. I found a site where I downloaded a Gtk installer and installed it, but the program still doesn't work.
What is the problem? I've seen the program work great on my Mac (which happens to have Mono installed) do I have to install mono on her computer?
You need the GtkSharp Runtime Redistributable to run your application on a Windows machine. GTK by itself does not provide GtkSharp or an appropriate CLR for your application. Try downloading from the Mono website.
Install mono and then try again.

Categories

Resources