DigitalPlatform / blog

技术文章
0 stars 0 forks source link

Scripting #46

Open DigitalPlatform opened 3 years ago

DigitalPlatform commented 3 years ago

https://github.com/oleg-shilo/cs-script

https://github.com/dotnet/roslyn/blob/main/docs/wiki/Scripting-API-Samples.md

https://www.filipekberg.se/2011/12/08/hosted-execution-of-smaller-code-snippets-with-roslyn/

https://learn.microsoft.com/en-us/previous-versions/dotnet/framework/code-access-security/how-to-run-partially-trusted-code-in-a-sandbox

https://www.appsloveworld.com/csharp/100/132/loading-a-roslyn-compiled-assembly-into-a-sandbox-appdomain

https://learn.microsoft.com/en-us/archive/blogs/junfeng/appdomain-and-shadow-copy

https://www.strathweb.com/2013/03/leveraging-roslyn-to-author-asp-net-web-api-without-recompiling/

DigitalPlatform commented 1 year ago

用 C# 输出 HTML

https://softwareengineering.stackexchange.com/questions/170258/what-is-the-best-way-to-create-html-in-c-code

https://weblog.west-wind.com/posts/2010/Dec/27/Hosting-the-Razor-Engine-for-Templating-in-NonWeb-Applications

https://www.codemag.com/Article/1103081/Leveraging-Razor-Templates-Outside-of-ASP.NET-They%E2%80%99re-Not-Just-for-HTML-Anymore!

https://codeopinion.com/using-asp-net-core-razor-views-from-a-class-library/

https://codeopinion.com/using-razor-in-a-console-application/

Using the TagBuilder Class to Build HTML Helpers (C#)