I've changed my toolchain to mono's por of MSBuild, since mono's XBuild is deprecated and no longer supported in Rider. So, if I compile with XBuild then I get a few warnings, but it executed okay:
Members/CSharpConstructor.cs(43,24): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Members/CSharpConstructor.cs(47,47): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Members/CSharpDestructor.cs(43,30): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Members/CSharpDestructor.cs(47,53): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Members/JavaConstructor.cs(43,24): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Members/JavaConstructor.cs(47,47): warning CS0612: 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Diagrams/Diagram.cs(2055,25): warning CS0612: 'DiagramElement.Deserialize(XmlElement)' is obsolete
Diagrams/Diagram.cs(2064,25): warning CS0612: 'DiagramElement.Deserialize(XmlElement)' is obsolete
8 Warning(s)
0 Error(s)
The problem comes when I use MSBuild. Stranger warnings appear now:
Translations:
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
Core:
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
NReflect:
CSharpKeyWords.cs(21, 18): [CS1591] Missing XML comment for publicly visible type or member 'CSharpKeyWords'
CSharpKeyWords.cs(105, 30): [CS1591] Missing XML comment for publicly visible type or member'CSharpKeyWords.DecorateIfKeyWord(string)'
CSharp:
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
CSharpConstructor.cs(43, 24): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
CSharpDestructor.cs(43, 30): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
CSharpDestructor.cs(47, 53): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
CSharpConstructor.cs(47, 47): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
Java
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
JavaConstructor.cs(43, 24): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
JavaConstructor.cs(47, 47): [CS0612] 'LanguageElement.GetNameWithoutGeneric(string)' is obsolete
CodeGenerator
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
DiagramEditor
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
Diagram.cs(2055, 25): [CS0612] 'DiagramElement.Deserialize(XmlElement)' is obsolete
Diagram.cs(2064, 25): [CS0612] 'DiagramElement.Deserialize(XmlElement)' is obsolete
GUI
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
PDFExport
Microsoft.CSharp.CurrentVersion.targets(142, 9): [MSB3884] Could not find rule set file "AllRules.ruleset".
AssemblyImport.Tests
Microsoft.Common.CurrentVersion.targets(2101, 5): [MSB3245] Could not resolve this reference. Could not locate the assembly "System.Runtime, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Anwyay these are only warnings, so no big deal. At least, not urgent. But then execution fails:
Unhandled Exception:
System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "NClass.GUI.Properties.Resources.resources" was correctly embedded or linked into assembly "NClass" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing (System.String fileName) [0x000bf] in <671ef0784b04474c83bb500a849492f2>:0
(...)
This seems to be produced by another exception:
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x00071] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in <671ef0784b04474c83bb500a849492f2>:0
at NClass.GUI.Properties.Resources.get_Down () [0x00006] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Dialogs.DetailsErrorDialog..ctor (System.Windows.Forms.MessageBoxIcon icon) [0x0001d] in <f65e2232b82243ef808354fa650c08a3>:0
at (wrapper remoting-invoke-with-check) NClass.GUI.Dialogs.DetailsErrorDialog..ctor(System.Windows.Forms.MessageBoxIcon)
at NClass.GUI.Dialogs.DetailsErrorDialog.Show (System.String title, System.String message, System.String details, System.Windows.Forms.MessageBoxIcon icon, System.Boolean isCenteredOnParent) [0x0000f] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Workspace.OpenProject (System.String fileName) [0x00037] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Workspace.Load () [0x0003b] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Program.LoadFiles (System.String[] args) [0x0004b] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Program.Main (System.String[] args) [0x00045] in <f65e2232b82243ef808354fa650c08a3>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "NClass.GUI.Properties.Resources.resources" was correctly embedded or linked into assembly "NClass" at compile time, or that all the satellite assemblies required are loadable and fully signed.
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing (System.String fileName) [0x000bf] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet (System.Globalization.CultureInfo culture, System.Collections.Generic.Dictionary`2[TKey,TValue] localResourceSets, System.Boolean tryParents, System.Boolean createIfNotExists, System.Threading.StackCrawlMark& stackMark) [0x000d9] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo requestedCulture, System.Boolean createIfNotExists, System.Boolean tryParents, System.Threading.StackCrawlMark& stackMark) [0x00099] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, System.Boolean createIfNotExists, System.Boolean tryParents) [0x00002] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x00071] in <671ef0784b04474c83bb500a849492f2>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture) [0x00000] in <671ef0784b04474c83bb500a849492f2>:0
at NClass.GUI.Properties.Resources.get_Down () [0x00006] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Dialogs.DetailsErrorDialog..ctor (System.Windows.Forms.MessageBoxIcon icon) [0x0001d] in <f65e2232b82243ef808354fa650c08a3>:0
at (wrapper remoting-invoke-with-check) NClass.GUI.Dialogs.DetailsErrorDialog..ctor(System.Windows.Forms.MessageBoxIcon)
at NClass.GUI.Dialogs.DetailsErrorDialog.Show (System.String title, System.String message, System.String details, System.Windows.Forms.MessageBoxIcon icon, System.Boolean isCenteredOnParent) [0x0000f] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Workspace.OpenProject (System.String fileName) [0x00037] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Workspace.Load () [0x0003b] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Program.LoadFiles (System.String[] args) [0x0004b] in <f65e2232b82243ef808354fa650c08a3>:0
at NClass.GUI.Program.Main (System.String[] args) [0x00045] in <f65e2232b82243ef808354fa650c08a3>:0
Specifically, from the DetailsErrorDialog. NClass seems to be trying to complain about something, but it is finally unable to.
Could you shed some light?