question

SawomirPiotrowski-9117 avatar image
0 Votes"
SawomirPiotrowski-9117 asked SawomirPiotrowski-9117 answered

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

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?

dotnet-aspnet-core-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SawomirPiotrowski-9117 , it is not very clear just from the words, can you describe your question with some screenshot?

0 Votes 0 ·

1 Answer

SawomirPiotrowski-9117 avatar image
0 Votes"
SawomirPiotrowski-9117 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.