小编mys*_*lex的帖子

ServiceStack EndpointHostConfig和WebHost不存在?C#MVC

按照使用ServiceStack的教程,我正在尝试编译以下代码:

public class AppHost : AppHostBase
{
    public AppHost() : base("Protein Tracker Web Services", typeof(HelloService).Assembly) { }

    public override void Configure(Funq.Container container)
    {
        SetConfig(new EndpointHostConfig { ServiceStackHandlerFactoryPath = "api" });
    }
}
Run Code Online (Sandbox Code Playgroud)

这给了我以下错误:

找不到类型或命名空间名称' EndpointHostConfig '(您是否缺少using指令或程序集引用?)

我试着添加建议:

using ServiceStack.WebHost.Endpoints;
Run Code Online (Sandbox Code Playgroud)

给我以下错误:

名称空间"ServiceStack"中不存在类型或命名空间名称" WebHost "(您是否缺少程序集引用?)

c# servicestack visual-studio-2013

8
推荐指数
1
解决办法
4454
查看次数

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

我正在尝试启动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同步. …

plugins android visual-studio xamarin.android xamarin

4
推荐指数
1
解决办法
1万
查看次数