我一直在寻找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文件中有默认没有目标框架。添加一个后,它的作品!感谢提示:) –