升级后 Visual Studio 2022 预览 我的 iOS 项目不再加载
After upgrading Visual Studio 2022 preview My iOS project is no longer loading
升级后 Visual Studio 2022 预览我的 iOS Xamarin 项目不再加载并且我收到错误消息
C:\<projectName>.iOS.csproj : error : The imported project "C:\Program Files\Microsoft Visual Studio22\Preview\MSBuild\Xamarin\iOS\Xamarin.iOS.CSharp.targets" was not found. Also, tried to find "Xamarin\iOS\Xamarin.iOS.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Users<user>\AppData\Local\Microsoft\VisualStudio.0_211b4038\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. C:\<projectName>.iOS.csproj
在上次更新中,他们似乎将“.NET Multi-platform App UI 开发”工作负载默认为“.NET MAUI”,因为它刚刚发布(non-preview).
要再次加载 iOS 个项目,请在 Visual Studio 中转到
“工具”->“获取工具和功能……”
在安装详细信息下,展开“.NET Multi-platform App UI development”
在“可选”部分下,确保选中“Xamarin SDK”。
升级后 Visual Studio 2022 预览我的 iOS Xamarin 项目不再加载并且我收到错误消息
C:\<projectName>.iOS.csproj : error : The imported project "C:\Program Files\Microsoft Visual Studio22\Preview\MSBuild\Xamarin\iOS\Xamarin.iOS.CSharp.targets" was not found. Also, tried to find "Xamarin\iOS\Xamarin.iOS.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Users<user>\AppData\Local\Microsoft\VisualStudio.0_211b4038\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. C:\<projectName>.iOS.csproj
在上次更新中,他们似乎将“.NET Multi-platform App UI 开发”工作负载默认为“.NET MAUI”,因为它刚刚发布(non-preview).
要再次加载 iOS 个项目,请在 Visual Studio 中转到 “工具”->“获取工具和功能……” 在安装详细信息下,展开“.NET Multi-platform App UI development” 在“可选”部分下,确保选中“Xamarin SDK”。