存档 function/option 在 Xamarin Visual Studio 2015 中变灰

Archive function/option grayed out in Xamarin Visual Studio 2015

我在 Visual Studio 2015 中使用 Xamarin。最近我更新到 sp3。

现在我想发布我的 android 应用程序。从其他地方的信息我了解到现在这应该由 function/option "Archive" 可用 通过右键单击项目或在 option/menu "Build" 下。

但是这个选项对我来说是灰色的,就像 function/option "View Archives" 一样。我的所有 android 项目都是这种情况。

我已经尝试 out/made 确定旧的类似问题的第二个答案中提到的事情。

Publish Android App option in disabled in Xamarin using Visual studio 2015

我最终解决了这个问题,我决定现在是进行 Windows 10 次刷新的好时机(因此也进行了全新的 visual studio 2015 安装)。这也解决了我在 computer/visual 工作室遇到的许多其他问题。由于缺乏更好的选择,我将其标记为答案。

我看到你很久以前就解决了你的问题,但希望这对遇到同样问题的人有所帮助。

来自 Xamarin 论坛的一些信息,这解决了我的问题。在 SDK> 工具中,我只有几个文件夹。

SDK>Tools folder will be empty. Go to SDK > Temp folder. There will be a wrar named tools_. Copy this wrar somewhere else and extract it. Extracted folder will have the "Tools" folder. Replace this Tools folder with SDK>Tools folder and Archive/SDK Manager etc everything will be back.

https://forums.xamarin.com/discussion/85853/archive-option-is-disabled-in-visual-studio-2015

然后重启Visual Studio。

当您重新安装 Windows 时,问题已解决,因为之后您需要重新安装 Android SDK。