I have made an app in monogame. When I build it, I get something that looks like this:
and my app structure looks like this:
The highlighted “Program.cs” file is the one that contains the main entry point for the application, it look like this:
using System;
namespace MapEditor
{
#if WINDOWS || LINUX
/// <summary>
/// The main class.
/// </summary>
public class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
using (var game = new MapEdit())
game.Run();
}
}
#endif
}
I would like to merge/embed these within MapEditor.exe.
Here are the things I have tried:
- Using jeffrey richter’s method.
- The error I get is that the app still can’t find the file.
- I have also tried the CodeProject version of this
- Using ILMerge through the command line
- This leads to an error that is at (https://pastebin.com/RbusRaty), this also contains the command I used.
- Using the GUI version of ILMerge doesn’t work
- It throws an error about it not being compatible with .Net 4.7
- Using the batch script for ILMerge
- It just puts the arguments for ILMerge onto the command line
Very many thanks to any help received, I am new to monogame and really like it!