将框架导入添加到.csproj

时间:2016-11-18 11:46:03

标签: asp.net asp.net-mvc visual-studio asp.net-core

如何将框架导入添加到.csproj文件中? 在 project.json 中,它看起来像:

"frameworks": {
    "netcoreapp1.0": {
        "imports": [
            "dotnet5.6",
            "portable-net45+win8"
        ]
    }
}

现在我在.csproj文件中看到的是:

<TargetFramework>netcoreapp1.0</TargetFramework>

如何添加“导入”?

1 个答案:

答案 0 :(得分:4)

好的,我明白了。我错过了一行更新为1.1 ...

awk -v OFS=',' '
    /^=+$/{f=!f; next}
    f {print NR, $0; if (/unique string/) exit}
' file