【发布时间】:2016-11-19 20:11:32
【问题描述】:
我正在构建一个 ASP.NET Core 应用程序,并尝试安装 Azure 存储包。
从 Azure 存储 github 页面,它说我需要将以下内容放在我的 project.json 文件中 - 但由于这是使用最新的 ASP.NET Core 版本,我们没有 project.json 文件,只是.csproj 文件。
"imports": [
"dnxcore50",
"portable-net451+win8"
]
有没有办法在 .csproj 文件中执行此操作?我想这个地方可能在这附近:
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
非常感谢!
【问题讨论】:
-
project.json/.csproj 与 ASP.NET Core 无关,它取决于安装的 VS 工具的版本,新的 csproj 结构仅适用于 VS 2017(工具的预览版 4)。 VS2015 依然使用preview2/2-1
-
对 - 我在 Mac 上使用 Visual Studio 和它提供的 ASP.NET Core 模板。
标签: asp.net .net azure asp.net-core