我们正在从https://aspnetboilerplate.com/Templates下载的启动模板项目中获取构建错误。
下载的启动模板: ASP.NET Core2.x多页网页应用程序。
错误:


发布于 2018-04-03 07:04:11
我认为您有一个旧版本的Visual,需要以下工具才能使用解决方案:
请参阅预要求文档。
发布于 2018-04-04 02:21:30
ASP.NET样板模板项目生成错误
在创建和下载项目之后,仍然需要遵循以下步骤来运行应用程序:
注意:如果您在运行应用程序时遇到问题,请关闭并重新打开Visual。它有时在第一个包恢复时失败。
在运行这个应用程序之前,还有一些需要准备的要求:
然后还原npm包:
npm install有关更多详细信息,请查看启动模板角文档。
发布于 2018-04-04 05:09:26
1) Install-Package EntityFramework
2) Add the below line in cs Projects
<ItemGroup>
<Reference Include="netstandard" />
</ItemGroup>
3) install netstandard from Nuget.
4)install this using package manager console
Install-Package NETStandard.Library.NETFramework -Version 2.0.0-preview1-25305-02 -Pre
Install-Package NETStandard.Library.NETFramework -Version 2.0.0-preview2-25405-01 -Pre
5) Select the 'Web' project as the startup project.
6) Open the Package Manager Console, select the 'EntityFramework' project as the Default project and run EntityFramework's 'Update-Database' command. This will create the database. You can then change the connection string in the web.config.
7) Run the application. The default user name is 'admin' and the password is '123qwe'.https://stackoverflow.com/questions/49623878
复制相似问题