ServiceStack 3.9 构建警告
ServiceStack 3.9 build warning
当我尝试构建我的项目时收到此构建警告:
...\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
有什么想法吗?
您需要确保所有ServiceStack 版本都相同。来自 instructions on the ServiceStack v3 home page:
PM> Install-Package ServiceStack -Version 3.9.71 -DependencyVersion Highest
当我尝试构建我的项目时收到此构建警告:
...\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
有什么想法吗?
您需要确保所有ServiceStack 版本都相同。来自 instructions on the ServiceStack v3 home page:
PM> Install-Package ServiceStack -Version 3.9.71 -DependencyVersion Highest