由于 "could not import" 错误,无法构建移动 MonoGame 项目
Unable to build mobile MonoGame project because of a "could not import" error
我是第一次制作移动 MonoGame 应用程序,但每当我尝试构建此错误时 iOS
Error: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/iOS/Radiant.iOS.csproj: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/iOS/Radiant.iOS.csproj could not import "$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" (Radiant.iOS)
并且此错误发生在 Android
Error: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/Android/Radiant.Droid.csproj: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/Android/Radiant.Droid.csproj could not import "$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" (Radiant.Droid)
在参考栏的左侧,MonoGame.Framework 是灰色的,旁边有一个红色的 X
好的,我自己解决了,我去了 MonoGame addin page 并下载了稳定版。然后我在 Xamarin 中打开插件列表,然后单击从文件安装。我选择了我下载的稳定版本,然后从那里安装它。它给了我一个关于 MonoDevelop 的错误,但我只是忽略了它并且它工作正常。
我是第一次制作移动 MonoGame 应用程序,但每当我尝试构建此错误时 iOS
Error: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/iOS/Radiant.iOS.csproj: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/iOS/Radiant.iOS.csproj could not import "$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" (Radiant.iOS)
并且此错误发生在 Android
Error: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/Android/Radiant.Droid.csproj: /Users/edward/Library/Mobile Documents/com~apple~CloudDocs/apps/Xamarin/Android/Radiant/Android/Radiant.Droid.csproj could not import "$(MSBuildExtensionsPath)\MonoGame\v3.0\MonoGame.Content.Builder.targets" (Radiant.Droid)
在参考栏的左侧,MonoGame.Framework 是灰色的,旁边有一个红色的 X
好的,我自己解决了,我去了 MonoGame addin page 并下载了稳定版。然后我在 Xamarin 中打开插件列表,然后单击从文件安装。我选择了我下载的稳定版本,然后从那里安装它。它给了我一个关于 MonoDevelop 的错误,但我只是忽略了它并且它工作正常。