How to execute script with xamarin forms on android
问题 I'm trying to run a C # script using Xamarin Forms on Android Mono. When I run the script I get the error: System.IO.FileNotFoundException: Could not find file "/mscorlib.dll" Here is the code I am trying to execute: object result; var script = CSharpScript.Create("DateTime.Today.Year",ScriptOptions.Default.WithImports("System")); script.RunAsync().ContinueWith(s => result = s.Result).Wait(); 来源: https://stackoverflow.com/questions/51212599/how-to-execute-script-with-xamarin-forms-on-android