如何为Roslyn编译器开发GUI作为服务?

编程入门 行业动态 更新时间:2024-10-24 01:58:00
本文介绍了如何为Roslyn编译器开发GUI作为服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我想为Roslyn编译器开发用户界面GUI作为服务。 我用过C#调用该服务。 现在,我想构建该GUI以将其用作我项目中的应用程序。 任何人都指导我资源或想法。 高级中的Thanx。 从下面的评论复制的其他信息 我在C#中使用应用程序控制台获得此代码

Hi all, I want to develop user interface GUI for the Roslyn compiler as a service. I have used the C# to invoke that service. Now, I want to build that GUI to use it as application in my project. Anyone guide me with resources or ideas. Thanx in Advanced. additional information copied from comment below I have this code in C# using application console

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using Roslyn.Scripting; using Roslyn.Scripting.CSharp; namespace RoslynTest { class Program { static void Main(string[] args) { var engine = new ScriptEngine(); var session = engine.CreateSession(); string text = System.IO.File.ReadAllText(@"C:\test.txt"); session.Execute(text); } } }

然后我想开发网络应用程序来获取它URL 我在C#中使用简单的Windows尝试使用WPF 但是,我是C#的初学者。

then I want to develop web application to it to get its URL I try with the WPF in C# with simple windows However, I am a beginner in C#.

推荐答案

这是一个GUI。我不确定你对任何人的期望是什么 - GUI应该基于你打算对服务做什么,以及你希望人们如何使用它。由于我们不知道您要与Roslyn做什么,我们可以为您提供更好的建议。 It's a GUI. I'm not sure what you are expecting from anyone - the GUI should be based upon what you are intending to do with the service, and how you expect people to work with it. As we have no idea what you are trying to do with Roslyn, we can offer you no better advice than that.

更多推荐

如何为Roslyn编译器开发GUI作为服务?

本文发布于:2023-11-10 22:36:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1576658.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   何为   Roslyn   GUI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!