我如何解决,"找不到此项目类型所基于的应用程序." 错误?

mys*_*lex 4 plugins android visual-studio xamarin.android xamarin

我正在尝试启动ServiceStack.AndroidIndie与教程一起使用的解决方案.我正在尝试在我的Android应用中启用ServiceStack Api; 但是,在尝试打开项目文件时,我收到以下错误:

Migration Report -

Overview

Project Path                            Errors  Warnings    Messages
ServiceStack.Client.AndroidIndie.csproj     1       0           0
ServiceStack.Interfaces.AndroidIndie.csproj 1       0           0
ServiceStack.Text.AndroidIndie.csproj       1       0           0
ServiceStack.AndroidIndie.sln               0       0           1

ServiceStack.Client\ServiceStack.Client.AndroidIndie.csproj: The application which this project type is based on was not found. 
ServiceStack.Interfaces\ServiceStack.Interfaces.AndroidIndie.csproj: The application which this project type is based on was not found.
..\..\ServiceStack.Text\src\ServiceStack.Text\ServiceStack.Text.AndroidIndie.csproj: The application which this project type is based on was not found.
ServiceStack.AndroidIndie.sln: The solution file does not require migration.
Run Code Online (Sandbox Code Playgroud)

我当然使用官方GitHub页面下载的最新版本,也通过Windows GitHub应用程序直接与ServiceStack同步.

尝试在VS 2012和VS 2013中启动项目.同样的错误.

有任何想法吗?

Sco*_*ott 5

Visual Studio的Xamarin插件不是免费的.目前仅适用于Xamarin商业计划(999美元/股)或企业计划(1899美元/年).查看Xamarin商店

您可以通过以下方式确认插件是否已安装并处于活动状态:

  1. 打开Visual Studio
  2. 选择工具菜单
  3. 选择扩展和更新
  4. 您应该在Installed> All下看到

    在此输入图像描述

    检查它是否已禁用.

如果它不存在那么你需要这样:

  1. 访问xamarin.com/download
  2. 选择下载适用于Windows的Xamarin
  3. 在Windows上运行安装程序.选择Android组件.(如果需要,添加iOS).安装可能需要大约30分钟.
  4. 安装完成后启动Visual Studio
  5. 打开项目,应显示此对话框

    对话

  6. 创建Xamarin帐户并激活30天试用版或输入现有的Xamarin Business/Enterprise凭据.

您可以免费在Xamarin Studio中打开项目(如您所发现的那样),没有任何问题.