本文介绍了如何升级"LightSwitch过滤器控件"?从VS2010到VS2012?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将VS2010 LightSwitch项目升级到VS2012 Update 3时,在Microsoft扩展"LightSwitch Filter Control"上构建该项目时会出现错误.

When I try to upgrade my VS2010 LightSwitch project to VS2012 Update 3 I get an error when I build it on the Microsoft extension "LightSwitch Filter Control".

更具体地说,它说名称LightSwitchFilter在当前上下文中不存在".

More specifally it says that "The name LightSwitchFilter does not exist in the current context".

例如,我在以下代码中得到错误:

For example I get the error in the following code:

VS2010中的扩展名为1.1,而我的VS2012中的扩展为1.5.

有人可以帮忙吗?

非常感谢,

马克

马克

推荐答案

请确保LightSwitch筛选器控件与Visual Studio 2012兼容( http://code .msdn.microsoft.com/silverlight/Filter-Control-for-eb947bdc ), 版本的控件与此不兼容.并且您需要安装VS2012 SDK和ightswitch扩展.

Please make sure the LightSwitch filter control is compatible with Visual Studio 2012(http://code.msdn.microsoft.com/silverlight/Filter-Control-for-eb947bdc ), the previous version of the control is not compatible with it. And you need to install VS2012 SDK and the ightswitch extensions.

此外,还有 关于使用LightSwitch过滤器扩展程序(http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/22/Using-The-LightSwitch-Filter-Extension.aspx ),并引入了一种解决方案现在就可以使用,尽管必须使用此代码,而不是上面的代码.

Besides,  there is a step-by-step operation about using the LightSwitch filter extension (http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/22/Using-The-LightSwitch-Filter-Extension.aspx ) And it introduces a solution"Got it to work now, had to use this code though instead of the code above.

query = FilterControl.FilterExtensions.Filter(query,FilterTerm,this.Application);"

query = FilterControl.FilterExtensions.Filter(query, FilterTerm, this.Application);"

希望它可以为您提供帮助.

Hope it can help you.


这篇关于如何升级"LightSwitch过滤器控件"?从VS2010到VS2012?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 17:10