Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.26 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.26 KB

AspNetCoreApp

ASP.NET Core app (TargetFramework .NetFramework) hosted in a Windows Service, with a reference to an .NetStandard project.

Installing the service

  1. Publish the wep app to the outpout folder.
  2. To install the service run in the cmd: "AspNetCoreApp.Service --install"
  3. Browse http://localhost:5000 to access to the webapp.
  4. To uninstall the service run in the cmd "AspNetCoreApp.Service --uninstall"

Workarounds .NetFramework refencing .NetStandard project

Make the .NET Framework project a ProjectReference based project by setting the following property in the project in the csproj:

<RestoreProjectStyle> PackageReference </RestoreProjectStyle>

There is also a good change you will need auto-bindingredirects as well so make sure that is set in your project:

<AutoGenerateBindingRedirects> true </AutoGenerateBindingRedirects>

References: