setup project for asp.net core 5 application (iis)

Sławomir Piotrowski 1 Reputation point
2021-05-04T18:02:12.06+00:00

When developing our new web application we have jumped from asp.net 4.7 to asp.net core 5.0.
Application was pretty easy to develop, but unfortunatelly we have problems creating setup project for it.

We used to use setup extenstions for Visual Studio, but unfortunatelly it looks like there are problems with asp.net core 5:
In setup project's properties there is 'ASPNETVersion' option that used to tell the installer how to configure IIS. Unfortunatelly there is no 5.x option available there.

Are there any examples of how to create setup project for asp.net core 5 application?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,538 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sławomir Piotrowski 1 Reputation point
    2021-05-07T13:47:45.22+00:00

    Sorry for the misleading question. I was fooled by strange errors shown during installation. It looks like I'm required to install .NET 4.7 on target system too, even if I'm only using .NET Core 5. Without .NET 4.7 (and ASP.NET) installer fails.

    Now I only need to find out why there are problems in generated config files.
    For example web.config contains something like that:
    <aspNetCore processPath="bin\Debug\net5.0\executedblename.exe".....
    Unfortunatelly executable is placed in the same folder as web.config so file can't obviously be found.

    Strictly speaking this is not related to creating setup, as the same folder is visible in the folder where my applicaiton is published before creating setup.

    No comments