How should I publish a .net 8 ASP.Net Core Web API on visual studio 17.8.2?

Gil Shalit 6 Reputation points
2023-12-04T07:15:29.51+00:00

I have been developping a .net 8 ASP.Net Core Web API on visual studio 17.8.2. When I go to publish it i dont see a publishing profile for a serverless Azure function app, only for an Azure App Service.

What I want is to create a Github Action that will run when I puch changes. That used to be possible I think but now seems unsupported, in Visual Studio.

What to do?

Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Other
{count} votes

4 answers

Sort by: Most helpful
  1. Gil Shalit 6 Reputation points
    2023-12-06T12:23:32.4033333+00:00

    Good News: VS just offered to install v 17.8.3 and this version has a template for a .Net8 Azure Functions project, which in turn seems to offer the required publishing profile.

    So issue solved, thanks to all that helped.

    1 person found this answer helpful.
    0 comments No comments

  2. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-12-04T11:04:04.9833333+00:00

    Hi @Gil Shalit

    Welcome to Microsoft Q&A! 

    I created ASP.NET Core Web API projects in VS2022 version 17.7.3 and 17.8.2. And couldn’t publish it to Azure Function App. You can check the followingUser's image

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


  3. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-12-04T17:00:06.64+00:00

    azure functions use a different host than a webapi projects. thus they have their own template. the call signature for azure function is different than webapi.

    to convert your webapi to azure function, create a new azure function project. move you webapi code and change from controller to azure function syntax.

    note: currently there is no 8.0 template. use the 7.0, and update to 8.0 after.


  4. Kesava Subhash Gullapudi 30 Reputation points
    2023-12-09T13:27:36.8466667+00:00

    **Using IIS Manager we can publish an application , First of All u need to create local web path in IIS By adding path folder in .Net application u can publish

    Procedure :-

    S1 - Open Solution Explorer ;**

    S2 - Right Click on Start-up Project -> Select Publish -> Mention Path Folder ;
    S3- Click On Publish ;

    S4 - Go To IIS ---> Click On path URL then u will able to See your application

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.