Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I need to include in an application I am developing, a feature to allow easy customization of a module. In fact it will be nice to use some kind of scripting to modify the behaviour of a calculation process that the application provides. I am developing the application in C# and Roslyn... but how can I pass a context (parameters and values) to a Roslyn script and receive a response back?
If C# is appropriate language for your case Roslyn is a good choice.
Take a look at Microsoft.CodeAnalysis.CSharp.Scripting NuGet package. It allows to execute pieces of C# code stored in plain strings.
For example:
await CSharpScript.EvaluateAsync("Console.WriteLine(\"Hello world!\")");
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
In my project I need to check a bunch of text for spelling mistakes. I get the text over a webservice and have no GUI component from which I could use Spellchecking functionality.
Is there a standard spell checking function that I can use?
Is there a commercial or better open source library that can be used offline?
GNU Aspell is a stable, open-source spelling checker that includes dictionaries for many languages. The library has a C API, which you could presumably use through P/Invoke.
There is a NuGet GNU Aspell package, which claims to provide a .NET wrapper.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I m working with a large project whith meets in mvc c# and looking for methods (plugins for visual studio, addons, frameworks) for tracking object in controller,views during the app works. Any methods exist for that ? I do not want use logging via nlog or log4net.
Try Application Insights (https://learn.microsoft.com/en-us/azure/application-insights/app-insights-overview). It integrated very nice in Visual Studio, has a free plan as well and is created for scenario's like this.
Just to satisfy my curiosity, why do you not want to use a logging framework?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a WinForms application. One of the requirements of the application is running Python scripts. For this, I am using IronPython. I can ask the user to save a Python script file and then execute the script from its location.
But it would be much better and easier for the user if I can provide an in-application editor for Python scripts with syntax highlighting and auto-completion.
Notepad++ is very useful for writing Python code. But it is not configurable through my C# code.
AvalonEdit is for WPF and my application is WinForms. I have noticed that IronLab does not have auto-completion.
What are my best options to provide a feature like this?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there any way to expose public static function for invocation to an outside tool?
In java you can annotate the method and than you can invoke it via JMX.
I am talking about c# .NET web application.
Thanks
There are nothing standard and built in. You can manually create a page and assign appropriate methods for button handlers manually, and provide all layout for input parameters. Less intuitive and usability way (and more dangerous) doing this via query string parameters, but I would not recommend this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am wondering if anyone knows of an open source c# library for beautifying javascript. I would like to make use of such a library within my asp net website to make debugging messy javascript easier.
There are currently many online websites for this (ie. http://jsbeautifier.org/) however I would like to have access to such a utility within c#, even if it is just a wrapper for communicating with an online API.
You can use jsbeautifylib.
http://jsbeautifylib.codeplex.com/
It's the file/folder you found :)
Also there is a C# port of js-beautify by Denis Ivanov here
And in the simplest of form, there is JSBeautify.cs
The site you pointed out suggests a command line tool. Wouldn't it be enough for you?
To beautify from the command-line you
can use provided beautify-cl.js
script, using Rhino javascript engine.
See the file contents for the details.