要从"Debug"文件夹创建本地IIS网站,可以按照以下步骤进行操作:
--launch-profile "IIS Express"cd C:\Windows\System32\inetsrv
appcmd add app /site.name:"Default Web Site" /path:/YourSiteName /physicalPath:""
appcmd set app /app.name:"Default Web Site/YourSiteName" /applicationPool:".NET Core AppPool"
确保将替换为你复制的实际路径,并将YourSiteName替换为你想要的网站名称。
http://localhost/YourSiteName,应该能够看到你的ASP.Net Core网站。这样,你就成功地从"Debug"文件夹创建了一个本地IIS网站。