C
C#4mo ago
Poico

Compiling and outputing code as a .dlll during runtime

I have this code but its giving me compilations error
(8,17): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
(8,9): error CS0012: The type 'Decimal' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
(8,17): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
(8,9): error CS0012: The type 'Decimal' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
And I though just adding to the references the netstrandart should solve the problem but know anyone as any insight or something that could help me
3 Replies
sibber
sibber4mo ago
how did you compile it? can you send the csproj? also use $paste
MODiX
MODiX4mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Poico
Poico4mo ago
Hi thx for the help I could solve the problem I was having problems because I wasnt buildint rightly the metadata so It didnt built the dll sucefully