Я использую JScript.NET для вычисления выражений (и выполнения входного кода) в Windows Forms.
Вот так: (55 % 6) + Math.acos(0.4) - ~ 9 * Math.PI + Math.random()
= 33.72725296117653
Теперь я хотел бы иметь то же самое в Xamarin Forms, но библиотека будет работать только на Android (iOS еще не тестировалась), а проект UWP продолжает говорить, что ApplicationException не найден.
Не будет обновлять библиотеки JScript.NET, поэтому устаревший Vsa Engine не является проблемой.
Что пробовал до сих пор
Декомпилировал библиотеку с помощью ILSpy, но она так сильно ссылается на mscorlib.dll, что я сдался. Поиск оценщиков Javascript, но они также ссылаются на mscorlib.dll
Я не знаю, должен ли я включать mscorlib в проект, потому что Microsoft, похоже, запрещает это.
Любые решения? Заранее спасибо.
Редактировать:
Использование библиотек JScript 8.0, если это поможет.
Если возможно, предложите решение, кросс-совместимое и с проектами Win8.1 / WinPhone 8.1.