ServiceStack 3.9构建警告

时间:2015-03-06 05:36:39

标签: .net servicestack

当我尝试构建项目时,我收到此构建警告:

...\packages\ServiceStack.3.9.71\lib\net35\ServiceStack.dll : warning CS1684: Reference to type 'ServiceStack.ServiceHost.ApiMemberAttribute' claims it is defined in '...\packages\ServiceStack.Common.3.9.11\lib\net35\ServiceStack.Interfaces.dll', but it could not be found

这是我的packages.config:

 <?xml version="1.0" encoding="utf-8"?>
 <packages>
    <package id="ServiceStack" version="3.9.71" targetFramework="net40" />
    <package id="ServiceStack.Common" version="3.9.11" targetFramework="net40" />
    <package id="ServiceStack.OrmLite.SqlServer" version="3.9.14" targetFramework="net40" />
    <package id="ServiceStack.Redis" version="3.9.11" targetFramework="net40" />
    <package id="ServiceStack.Text" version="4.0.38" targetFramework="net40" />
 </packages>

这是以下结果:

PM> Install-Package ServiceStack -Version 3.9.71

任何想法?

1 个答案:

答案 0 :(得分:2)

您需要确保所有ServiceStack版本都相同。来自instructions on the ServiceStack v3 home page

PM> Install-Package ServiceStack -Version 3.9.71 -DependencyVersion Highest