C# 在Visual Studio上运行Xamarin Forms iOS时发生GetBuiltProjectOutputRecursive错误
似乎我在Visual studio上运行Xamarin.iOS时遇到了这个奇怪的问题。 这是在我更新到最新的Xamarin(今天)之后发生的 我已经连接到我的Mac电脑了。我试着用谷歌搜索,没有回答 错误MSB4057:项目中不存在目标“GetBuiltProjectOutputRecursive” 有什么问题?在更新之前,它成功了C# 在Visual Studio上运行Xamarin Forms iOS时发生GetBuiltProjectOutputRecursive错误,c#,visual-studio,xamarin,mono,xamarin.forms,C#,Visual Studio,Xamarin,Mono,Xamarin.forms,似乎我在Visual studio上运行Xamarin.iOS时遇到了这个奇怪的问题。 这是在我更新到最新的Xamarin(今天)之后发生的 我已经连接到我的Mac电脑了。我试着用谷歌搜索,没有回答 错误MSB4057:项目中不存在目标“GetBuiltProjectOutputRecursive” 有什么问题?在更新之前,它成功了 1>------ Build started: Project: GTS.Mobile.iOS, Configuration: Debug iPhoneSim
1>------ Build started: Project: GTS.Mobile.iOS, Configuration: Debug iPhoneSimulator ------
1> Generated session id: 04dbf5285bd918e0f3e1fc41e6f65f8c
1> Generated build app name: GTSMobileiOS
1> Connecting to Mac server 192.168.9.164...
1>C:\Users\kkh\Computas\CargoNet\GTS.Mobile\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing GTS.Mobile.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
1> Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.11.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Runtime.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.IO, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.11.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.IO.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.Net.Http, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.0.0" [C:\Users\kkh\Computas\CargoNet\GTS.Mobile\GTS.Mobile\GTS.Mobile\bin\Debug\System.Net.Http.dll] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Net.Http.dll] to solve conflict and get rid of warning.
1> Consider app.config remapping of assembly "System.Threading.Tasks, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.11.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Threading.Tasks.dll] to solve conflict and get rid of warning.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
1> GTS.Mobile.iOS -> C:\Users\kkh\Computas\CargoNet\GTS.Mobile\GTS.Mobile.iOS\bin\iPhoneSimulator\Debug\GTSMobileiOS.exe
1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets(59,36): error MSB4057: The target "GetBuiltProjectOutputRecursive" does not exist in the project.
我已经在自己的安装中解决了这个问题 以下是我所做的:
显示您的代码。提出具体和有针对性的问题。我认为我不需要显示任何代码。我创建了一个新项目。与我的Mac连接,将iOS作为表单项目中的启动项目,然后我仍然得到错误。我已经检查了链接是否正确,因为我可以在我的windows上远程打开iOS模拟器。我更新到最新的xamarin,并得到了相同的错误,除了更新.hmmm之外,没有任何其他更改。因此,如果我删除windows pc上的所有gtk等,它就可以工作。然后再次安装包并重新启动,然后在visual studio上尝试它?谢谢!我想你的解决方案是最简单和正确的。