Running a runtime compiled C# script in a sandbox AppDomain
问题 My application should be scriptable by the users in C#, but the user's script should run in a restricted AppDomain to prevent scripts accidentally causing damage, but I can't really get it to work, and since my understanding of AppDomains is sadly limited, I can't really tell why. The solution I am currently trying is based on this answer https://stackoverflow.com/a/5998886/276070. This is a model of my situation (everything except Script.cs residing in a strongly named assembly). Please