如何为Roslyn编译器开发GUI作为服务? [英] How to develop GUI for Roslyn compiler as a service?

查看:94
本文介绍了如何为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作为服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆