Closed robojumper closed 8 years ago
Thanks, that did indeed fix it. What are your problems with compiling?
public int Index { get; set; } = -1;
Invalid token '=' (CS1519)
public ModState State { get; set; } = ModState.None;
Invalid token ';' (CS1519)
public List<ModEntry> Entries { get; set; } = new List<ModEntry>();
Invalid token '(' (CS1519)
MessageBox.Show($"A mod could not...");
Unexpected character '$' (CS1056)
public ModList Mods { get; set; } = new ModList();
Method must have a return type (CS1520)
Mostly these five
Am I missing any assemblies or using-directives? I don't get any errors regarding this, it's just the compiler errors above.
Those are all new C# 6 syntax. You need Visual Studio 2015 to compile it.
Thank you. Makes sense, I really shouldn't be using SharpDevelop for stuff like this.
There's no reason to use SharpDevelop (on Windows at least), VS 2015 is free: https://www.visualstudio.com/products/visual-studio-community-vs
free*
*If Microsoft hadn't locked me out of my account. But the crash is fixed, so whatever.
In MainForm.ModList.cs, line 328, it checks whether
if (m.ID == null)
but it should checkif (m == null || m.ID == null)
becausem
isnull
if we don't select a mod and as such,m.ID
throws aNullPointerException
. I would have checked if that fixes it but i can't get it to compile (errors in assigning the properties and stuff).