我一直在尋找System.CodeDom.Compiler
- nuget-packages中的命名空間。我只找到Microsoft.CodeDom.Providers.DotNetCompilerPlatform
(Roslyn?),但它似乎沒有包含我正在搜索的命名空間。有誰知道是否有包含該名稱空間的包?System.CodeDom.Compiler作爲nuget-package
編輯: 這是我現在得到的代碼。但是,Visual Studio的2015年不能在命名空間System
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ICA.CubeSeven.Dynamic
{
public class Class1
{
}
}
您定位的是哪個版本的Framework? –
啊這是問題...在project.json文件中有默認沒有目標框架。添加一個後,它的作品!感謝提示:) –