thangchung / blog-core

Modular blog using Blazor with clean domain-driven design patterns
MIT License
407 stars 124 forks source link

Project unable to load #19

Closed AndyBraham closed 5 years ago

AndyBraham commented 5 years ago

I just downloaded this project and opened it in Visual Studio 2017 (15.9.4) and I am recieving errors on all the "Host" projects. Seems like something in the .csproj files is missing, I recieve the error "Project file is incomplete. Expected imports are missing.

When I tried to restore the Nuget packages I did notice one error "Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.EntityFrameworkCore.Tools.DotNet 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) BlogCore.Migrator"

Herve-M commented 5 years ago

It's because of the global.jsondocs who force 2.0.0, and you may have installed the Net Core SDK 2.2.X who only bring 1.1.0 + 2.1.* < versions.

Just remove the file or target the last version you have locally (dotnet --list-sdks or dotnet new globaljson --force ) ;-)

thangchung commented 5 years ago

@AndyBraham I gonna upgrade this project into .NET 3.0 soon after Microsoft release it in the public version. Just waiting for it @Herve-M Thanks for your great insight in this project 👍

thangchung commented 5 years ago

See the new upgrade version at https://github.com/thangchung/blog-core/tree/blazor branch for .NET 3.0 Preview 5