运行 Web 应用程序在 Mac Visual Studio 上出错
Error in Running Web App On Mac Visual Studio
我是 Visual Studio 的新手。我已经从 Azure 多租户下载了一个 Web 应用程序。但是当我尝试 运行 应用程序时,我收到以下错误消息:
/Users/MySystem/Desktop/active-directory-dotnet-webapp-multitenant-openidconnect/TodoListWebApp/TodoListWebApp.csproj(3,3): Error MSB4019: The imported project "/Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/WebApplications/Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. (MSB4019)
我已经尝试按照 link 中给出的方法修改 .csproj 文件,但无法解决问题。请注意我正在研究 Mac Visual Studio.
如有任何想法或建议,我们将不胜感激。
active-directory-dotnet-webapp-multitenant-openidconnect/TodoListWebApp
在网上搜索项目名称,发现是a sample .NET 4.5 MVC web app。
I am working on Mac Visual Studio
Visual Studio 中用于 Mac 的 Web 应用程序基于 .NET Core,无法使用 sln/csproj 文件。我建议您在 Visual Studio 上为 Mac 创建一个新项目,并从原始项目复制文件。
由于 Mac 上的 .NET 版本是 .NET Core,这与示例应用程序 (.NET 4.5) 不同。您还需要修改一些代码。例如,ASP.NET 核心应用程序不包含 Global.asax。
关于如何创建asp.net核心应用的更多信息,link供您参考。
我是 Visual Studio 的新手。我已经从 Azure 多租户下载了一个 Web 应用程序。但是当我尝试 运行 应用程序时,我收到以下错误消息:
/Users/MySystem/Desktop/active-directory-dotnet-webapp-multitenant-openidconnect/TodoListWebApp/TodoListWebApp.csproj(3,3): Error MSB4019: The imported project "/Library/Frameworks/Mono.framework/Versions/5.0.0/lib/mono/xbuild/Microsoft/VisualStudio/v15.0/WebApplications/Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. (MSB4019)
我已经尝试按照 link 中给出的方法修改 .csproj 文件,但无法解决问题。请注意我正在研究 Mac Visual Studio.
如有任何想法或建议,我们将不胜感激。
active-directory-dotnet-webapp-multitenant-openidconnect/TodoListWebApp
在网上搜索项目名称,发现是a sample .NET 4.5 MVC web app。
I am working on Mac Visual Studio
Visual Studio 中用于 Mac 的 Web 应用程序基于 .NET Core,无法使用 sln/csproj 文件。我建议您在 Visual Studio 上为 Mac 创建一个新项目,并从原始项目复制文件。
由于 Mac 上的 .NET 版本是 .NET Core,这与示例应用程序 (.NET 4.5) 不同。您还需要修改一些代码。例如,ASP.NET 核心应用程序不包含 Global.asax。
关于如何创建asp.net核心应用的更多信息,link供您参考。