1.安装iis
2. 安装.net 5/6 SDK
3.安装.net 5/6 hosting (安装了这个iis的模块里才会有AspNetCoreModuleV2)
附.net 5 官方下载连接:(.net 6 的话 将连接中的5.0改为6.0即可)nullThe .NET 5.0 Runtime includes everything you need to run existing .NET and ASP.NET Core applications.https://dotnet.microsoft.com/en-us/download/dotnet/5.0/runtime
两个包安装完之后就可以正常部署iis