Add Reference To Microsoft.CSharp For Dynamic TypeNo Thanks
Hi,

Wondering if we could have the API reference Microsoft.CSharp? My reason for this is so that I may use the dynamic type. Without it, this appears in console:
Error while compiling: GUIAnnouncements.cs(1703,13): error CS1969: Dynamic operation cannot be compiled without `Microsoft.CSharp.dll' ​



Would be handy in my particular scenario where I have two possible types being passed to a method parameter, and I need to be able to compile the type during runtime to tell the difference between the two while accessing the methods and properties within the types.

 

Thanks for considering :D

I doubt that is compatible cross-platform, so unlikely. We generally try to avoid adding more DLLs.
In response to Wulf ():
I doubt that is compatible cross-platform, so unlikely. We generally try to avoid adding more DLLs.

Hey Wulf!

I'm not sure I understand, .NET is cross-platform isn't it? Does that not mean that this .dll is too?

In response to JoeSheep ():
Hey Wulf!I'm not sure I understand, .NET is cross-platform isn't it? Does that not mean that this ....
No, .NET Core is cross-platform; most games such as Rust use Mono which is a recreation of .NET, but usually behind. Copying random .NET DLLs to another OS may not always work, it depends on it if is compatible with the .NET/Mono version on that OS. In this case, It'd need to be .NET 4.6 for Rust, but 3.5 is what we target for universal compatibility. Like I said though, we try to avoid adding new DLLs. In your case, "dynamic" requires .NET 4.0 or higher, which would not work outside of Rust.
In response to Wulf ():
No, .NET Core is cross-platform; most games such as Rust use Mono which is a recreation of .NET, but...

Thanks, that makes sense now.

I'll have to either find a way to do it or change up my semi rewrite plans.

Locked automatically