-
环境配置
- 使用Visual Studio 2015
- 安装VS 2015
- 安装DotNetCore.1.0.0-VS2015Tools.Preview2.exe 或更高版本
- 如果安装失败:cmd命令:文件名 SKIP_VSU_CHECK=1 或 文件名 SKIP_VSU_CHECK=1 WixBundleAction=2
- 使用Visual Studio 2017
- Microsoft Visual Studio 2017 免费社区版
- 选择core跨平台
- 安装官方.NET Core
- .NET Core SDK
- .NET Core Runtime
- 使用dotnet命令
- 使用Visual Studio 2015
-
文件目录
|- wwwroot 包含静态文件
|- pages Razor Pages的文件夹
|- |- Shared
|- |- |- _Layout.cshtml 包含常见HTML元素(脚本和样式表链接),并设置应用的布局
|- |- |- _ValidationScriptsPartial.cshtml 提供对jquery验证脚本的引用
|- |- |- _CookieConsentPartial.cshtml 提供导航栏以及用于汇总隐私和cookie使用策略的目录
|- |- _ViewStart.cshtml 将Razor Pages 设置为使用_Layout.cshtml文件
|- |- _ViewImports.cshtml 包含要导入每个Razor页面的Razor指令
|- bin
|- obj
|- Properties
|- appsetting.json 配置
|- Program.cs 配置ASP.NET Core 应用的主机
|- Startup.cs 配置服务和请求管道
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交