简体   繁体   中英

Updating a NETCore app to an AspNetCore app

I originally created a simple Microsoft NETCore stateful service, but am trying to use a library that requires it to be an AspNetCore service. Is there any way I can update the existing service to AspNetCore without deleting it and creating a new one?

I've tried simply installing the asp nugets. Sorry, I'm a little new to visual studio and service fabric applications.

I'm not sure what a "Net Core Stateful Service" is - but, to convert an app to be an ASP Core service, you need to change the csProj file so the Project section looks like this:

<Project Sdk="Microsoft.NET.Sdk.Web">
   
     <PropertyGroup>
        <TargetFramework>net5.0</TargetFramework>
      </PropertyGroup>

     <Your stuff here>

</Project>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM