TinyMapper - 与Nuget一起安装但参考不存在 [英] TinyMapper - Installed with Nuget but reference isn't present

查看:83
本文介绍了TinyMapper - 与Nuget一起安装但参考不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中使用Nuget来安装TinyMapper。从Nuget控制台我能够验证它是否存在。



在我的代码中,我写道:



TinyMapper.Bind< testclassa,testclassb>();



当我构建应用程序时,



当前上下文中不存在'TinyMapper'这个名字。



它必须是简单的东西。

谢谢你提前。

解决方案

在没有看到代码的情况下,不可能说出导致问题的原因,但正如消息所说的那样,重点是引用的对象未在范围内定义你试着用它。



请参考错误说明:编译器错误CS0103 [ ^ ]

I used Nuget in Visual Studio 2013 to install TinyMapper. From the Nuget console I was able to verify that it is present.

In my code, I wrote:

TinyMapper.Bind<testclassa,testclassb>();

When I build the application,

"The name 'TinyMapper' does not exist in the current context."

It has to be something simple.
Thanks in advance.

解决方案

Without seeing the code it's impossible to say what causes the problem but as the message says the point is that the referenced object is not defined in the scope where you try to use it.

Please refer to the explanation of the error: Compiler Error CS0103[^]


这篇关于TinyMapper - 与Nuget一起安装但参考不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆