`readonly structs' error.

mowg

Citizen
any insight would be greatly appreciated....

mono version

/srv/ServUO$ mono --version
Mono JIT compiler version 6.12.0.90 (tarball Fri Sep 4 14:02:38 UTC 2020)


linux version

/srv/ServUO$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

/srv/ServUO$ make
mcs -target:library -out:`pwd`/Scripts.dll -r:`pwd`/Server.dll,System.Drawing.dll,System.Web.dll,System.Data.dll,System.IO.Compression.FileSystem.dll -nowarn:0618,0219,0414,1635 -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Scripts/*.cs
/srv/ServUO/Scripts/Services/Guilds/GuildGumps/BaseGuildListGump.cs(9,39): error CS1644: Feature `readonly structs' cannot be used because it is not part of the C# 7.0 language specification
/srv/ServUO/Scripts/Services/XmlSpawner/XmlUtils/XmlFind.cs(1449,38): error CS0128: A local variable named `mobile' is already defined in this scope
/srv/ServUO/Scripts/Services/XmlSpawner/XmlUtils/XmlFind.cs(1504,38): error CS0128: A local variable named `mobile' is already defined in this scope
/srv/ServUO/Scripts/Services/XmlSpawner/XmlUtils/XmlFind.cs(1555,38): error CS0128: A local variable named `mobile' is already defined in this scope
/srv/ServUO/Scripts/Services/XmlSpawner/XmlUtils/XmlFind.cs(1614,38): error CS0128: A local variable named `mobile' is already defined in this scope
Compilation failed: 5 error(s), 0 warnings
make: *** [Makefile:38: Scripts.dll] Error 1


thanks
-mowg
 

PyrO

Moderator
I will address this in the repo soon, for now just open that file, and remove the readonly from the struct in line 9
 

mowg

Citizen
Very impressed with the prompt response!

got past that one now am getting several

/ServUO-master/Scripts/Services/XmlSpawner/XmlUtils/XmlFind.cs(1449,38): error CS0128: A local variable named `mobile' is already defined in this scope

mobile errors... I wish i knew c#! I could help with sql or python. :)