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

本文标签: