我已经安装了VS2017并在VS2017中有一个简单的xamarin项目。 重建解决方案时,vs2017似乎挂起。
重启VS2017无法解决问题。重新启动PC确实修复了它,但经过几次构建后它会再次冻结。
(代码基本上保持一致 - 只是空格更改以尝试缓解代码问题)
我已经尝试让构建运行几分钟甚至几个小时,但是一旦它无法构建它就永远不会,直到我重启PC。
虽然它允许我取消它转储详细日志的构建。 (我已将构建输出设置更改为"详细")。
我离开构建多久并不重要但是当我取消它时,构建输出总是显示为"冻结"在同一点上。
以下是构建输出的最后几行:
1>Done executing task "CreateProperty".
1>Done building target "_ResolveMonoAndroidSdks" in project "Insync2.csproj".
1>Target "_SetupDesignTimeBuildForIntellisense" in file "C:\Program Files\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets" from project "C:\Users\baldevsandhu\documents\visual studio 2017\Projects\Insync2\Insync2\Insync2.csproj" (target "_GetPrimaryCpuAbi" depends on it):
1>Done building target "_SetupDesignTimeBuildForIntellisense" in project "Insync2.csproj".
1>Target "_GetPrimaryCpuAbi" in file "C:\Program Files\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets" from project "C:\Users\baldevsandhu\documents\visual studio 2017\Projects\Insync2\Insync2\Insync2.csproj" (target "_CheckInstantRunCondition" depends on it):
1>Using "GetPrimaryCpuAbi" task from assembly "C:\Program Files\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Build.Debugging.Tasks.dll".
1>Task "GetPrimaryCpuAbi"
1> Adb Task:
1> AdbTarget:
1> AdbOptions:
1> DevicePropertyCache: obj\Debug\devices.cache
1> Reading properties for emulator-5554
1>C:\Program Files\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets(308,2): warning : One or more errors occurred.
1>Done executing task "GetPrimaryCpuAbi".
1>Done building target "_GetPrimaryCpuAbi" in project "Insync2.csproj" -- FAILED.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:10:05.74
Build has been canceled.
之前有没有人见过这个问题?
我确实首先安装了VS2015,但此后已经卸载了。