一整天以来,我一直在寻找nuget-packages中的System.CodeDom.Compiler名称空间。我只找到了Microsoft.CodeDom.Providers.DotNetCompilerPlatform (罗斯林?)但是,我正在搜索的名称空间似乎不包括在内。有没有人知道是否有包含该名称空间的包?
编辑:这是我现在得到的代码。但是Visual 2015无法在命名空间CodeDom中找到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
{
}
}发布于 2015-09-06 18:46:26
我自己发现了问题..。在project.json中,我们需要添加一个目标框架。对我来说,它是在project.json中添加框架部分(默认情况下,模板不添加框架):
{
"frameworks": {
"dnx451": { }
}
}https://stackoverflow.com/questions/32426737
复制相似问题