Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreWiki throws Errors if only dotnet core 2.2 is installed #353

Open
cam-smith opened this issue Jan 3, 2019 · 2 comments
Open

CoreWiki throws Errors if only dotnet core 2.2 is installed #353

cam-smith opened this issue Jan 3, 2019 · 2 comments

Comments

@cam-smith
Copy link

If you only have .Net Core 2.2 installed, CoreWiki will throw a lot of errors when trying to compile. There's no clear documentation online about how safe it is to install .Net Core 2.1 on top of .Net Core 2.2 (which is what I ended up doing - it worked).

Probable long term solution is to upgrade CoreWIki to .Net Core 2.2.

@CubeSpark
Copy link

I created a fork and downloaded it from the Fritz source. I have the same problem - working on it now. I will try to install 2.1.

@CubeSpark
Copy link

In VS 2018, right-clicked on the Solution itself, and opened Build Order. It indicates a sequence:

  1. CoreWiki.Core - I manually and successfully cleaned and built.

  2. CoreWiki.Data.Abstractions - I manually and successfully cleaned and built.

  3. CoreWiki.Data.EntityFramework - I manually and successfully cleaned and built, but with warnings:

    • ApplicationDbContext.cs(48,43,48,58):
      Warning CS0618: 'SlugHistoryDAO.AddedDateTime' is obsolete:
      'This property only exists for EF serialization purposes'

    • Repositories\SlugHistoryRepository.cs(39,5,39,18):
      Warning CS0618: 'SlugHistoryDAO.AddedDateTime' is obsolete:
      'This property only exists for EF serialization purposes'

  4. CoreWiki.Notifications.Abstractions - I manually and successfully cleaned and built.

  5. CoreWiki.Notifications - I manually and successfully cleaned and built.

  6. CoreWiki.FirstStart - Failed.

    • StartupExtensions.cs(19,23,19,45):
      Warning CS0414: The field 'StartupExtensions._RunAfterConfiguration' is assigned
      but its value is never used.
    • StartupExtensions.cs(20,23,20,44):
      Warning CS0414: The field 'StartupExtensions._FirstStartIncomplete' is assigned
      but its value is never used.

    In the Areas folder, the Razor pages threw a warning first, then failed:
    ...Areas\FirstStart\Pages\Index.cshtml.cs(54,4,54,14):
    Warning MVC1002: 'HttpPostAttribute' cannot be applied to Razor Page handler methods.
    Routes for Razor Pages must be declared using the @page directive or using conventions.

    And: .nuget\packages\microsoft.aspnetcore.razor.design\2.2.0\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(161,5): error : Assembly location for Razor SDK Tasks was not specified. The most likely cause is an older incompatible version of Microsoft.NET.Sdk.Razor, or Microsoft.NET.Sdk.Web used by this project.
    Please target a newer version of the .NET Core SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants