admin管理员组文章数量:1202337
When I try to run a web application targeting .NET 8.0 and .NET 4.8, and I try to run it in WSL, it says ASP.NET 4.8 is not installed in WSL. But there is no ASP.NET 4.8. How can I fix this?
Here is my launchSettings.config
{
"profiles": {
"WSL": {
"commandName": "WSL2",
"launchUrl": "https://localhost:9004/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"APPSETTING_EnterpriseServer_ConnectionString": "Server=172.26.0.1;Database=SolidCP;uid=sa;pwd=Password12;TrustServerCertificate=true",
"APPSETTING_appliationUrls": "http://localhost:9004"
},
"distributionName": ""
},
"net8": {
"commandName": "Project",
"launchUrl": "https://localhost:9004",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"APPSETTING_ServerCertificate.File": "",
"APPSETTING_ServerCertificate.Password": "",
"APPSETTING_ServerCertificate.StoreLocation": "LocalMachine",
"APPSETTING_ServerCertificate.StoreName": "My",
"APPSETTING_ServerCertificate.FindType": "FindBySubjectName",
"APPSETTING_ServerCertificate.Name": "localhost"
},
"applicationUrl": "https://localhost:9004;"
}
},
"$schema": ".json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:9004",
"sslPort": 9004
}
}
}
I have a similar project, and there it's working fine
本文标签:
版权声明:本文标题:windows subsystem for linux - Visual Studio complains that ASP.NET 4.8 is not installed in WSL distro - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738646352a2104609.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论