System.CodeDom.Compiler为nuget-package [英] System.CodeDom.Compiler as nuget-package
问题描述
我一直在nuget-packages中搜索 System.CodeDom.Compiler
命名空间的整天。我只找到 Microsoft.CodeDom.Providers.DotNetCompilerPlatform
(Roslyn?),但它似乎作为我搜索的命名空间不包括。有人知道是否有包含该命名空间的包?
The whole day I've been seaching for the System.CodeDom.Compiler
- namespace in nuget-packages. I only found the Microsoft.CodeDom.Providers.DotNetCompilerPlatform
(Roslyn ?) but it seems as the namespace I'm searching for is not included. Does anyone know if there's a package containing that namespace?
编辑:
这是我现在得到的代码。但Visual Studio 2015找不到 CodeDom
在命名空间系统
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
{
}
}
推荐答案
Soo我自己找到了问题...
在project.json中,我们需要添加一个targetframework。对我来说,它是在project.json中添加框架部分(默认情况下模板不添加框架):
Soo I found the problem myself... In the project.json we need to add a targetframework. For me it was adding the framework-section in project.json (for default the template doesnot add a framework):
{
"frameworks": {
"dnx451": { }
}
}
这篇关于System.CodeDom.Compiler为nuget-package的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!