无法使用System.Linq导入; ssis scriptask中的命名空间(2008) [英] unable to import using System.Linq; namespace in ssis scriptask (2008)

查看:55
本文介绍了无法使用System.Linq导入; ssis scriptask中的命名空间(2008)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ssis 2008脚本任务中使用[using System.Linq;]命名空间当我手动输入它时会显示错误,例如



错误1类型或名称空间名称''Linq''在命名空间''System'中不存在(你是否缺少程序集引用?)

Im tying to use [using System.Linq;] namespace in ssis 2008 scrip task when im type it manually it shows error such as

Error 1 The type or namespace name ''Linq'' does not exist in the namespace ''System'' (are you missing an assembly reference?)

推荐答案

最后我找到了解决方案我自己很简单..

1.打开要添加system.linq命名空间的scriptask页面

2.right side project explore windos你可以找到属性对于该脚本页面

3.右键单击属性并单击打开

4.打开一个窗口,将.net 2.0框架更改为.net 3.5或更高版本

5.然后单击确定

6.现在您可以导出名称空间,我们还需要添加所需dll文件的引用。
Finally i found the solution by myself its very simple..
1.open the scriptask page where you want to add system.linq namespace
2.right side project explore windos you can find the properties for that scrip page
3.Right click properties and click open
4.It opens one window there change TARGET FRAMEWORK from .net 2.0 framwork to .net 3.5 or higher
5.then click ok
6.now you can export the namespaces we need also add the refrences of required dll files.


这篇关于无法使用System.Linq导入; ssis scriptask中的命名空间(2008)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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