Wolfgang,
The executable is "DictEdit.exe", and therefore I would assume the fully specified entry point class name is
"DictEdit.Exe.XStartupCode".
That is an incorrect assumption. The only namespace that is derived from the assembly name is the namespace from the Functions class.
Your own classes are in a namespace that you define in code with a begin namespace ... end namespace pair:
Code: Select all
begin namespace DictEdit
class XStartupCode
.
.
.
end class
end namespace
Without this the classes are in the global namespace (which actually means 'no namespace').
If you do not specify your own namespace, then you can use the compiler option that I mentioned.
However, you are right: XIDE does not have that option.
You have to add the compiler option /ns:MyNameSpace to the additional switches textbox, to achieve this.
Btw. for a future version of X# we are planning to add the Filescoped Namespace Declaration to the language (C# 12 has that too)
That would change the code above to
Code: Select all
namespace DictEdit
class XStartupCode
.
.
.
end class
All classes in the file following the namespace declaration would be placed in the namespace. So you do not need a begin namespace .. end namespace pair.
Robert