从VS 2008开始,新功能 [英] Starting with VS 2008 and new feature

查看:81
本文介绍了从VS 2008开始,新功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,今天我决定打开vs 2008并开始看看

的变化是什么。尝试做什么最好的方法是什么?所以我决定使用LinQ读取一个愚蠢的xml文件,但是......但是...尽管

2008是我系统上唯一可用的版本... ...框架3.5是

安装时我开始使用var进行变量推送... vs开始

将其标记为红色...继续......来自x ..再次红了。


绝对有些东西不起作用?但是什么呢?

第一次尝试我打开了一个旧的测试项目,没有按照自动转换的b / b $ b,而是手动添加了所需的核心文件,所以我尽管

缺少的东西。

但是新项目也是如此。


可能是什么错误?


感谢所有人。

Andrea

Ok, today I decided to open vs 2008 and start to see what''s the
changes. What''s the best way to try do do something? So I decided to
read a stupid xml file with LinQ ... but ... strange thing despite the
2008 is the only version avalaible on my system ... framework 3.5 is
installed when I start to use var for variable inferering ... vs start
to mark it in red ... continuing ... from x ... red again.

Definitely there is something that doesn''t work? But what?
On first try I opened an old test project, not followed the automatic
conversion, but added manually the core files required, so I though to
something missing.
But the same happen with a new project too.

What could be the error?

Thanks to all.
Andrea

推荐答案

Andrew< an ****** *********@gmail.com写道:
Andrew <an***************@gmail.comwrote:

好​​的,今天我决定打开vs 2008并开始看看是什么? />
更改。尝试做什么最好的方法是什么?所以我决定使用LinQ读取一个愚蠢的xml文件,但是......但是...尽管

2008是我系统上唯一可用的版本... ...框架3.5是

安装时我开始使用var进行变量推送... vs开始

将其标记为红色...继续......来自x ..再次变红了。
Ok, today I decided to open vs 2008 and start to see what''s the
changes. What''s the best way to try do do something? So I decided to
read a stupid xml file with LinQ ... but ... strange thing despite the
2008 is the only version avalaible on my system ... framework 3.5 is
installed when I start to use var for variable inferering ... vs start
to mark it in red ... continuing ... from x ... red again.



您是否尝试将其用于实例变量?隐含

键入变量仅适用于局部变量。


你能发一个简短但完整的程序来演示

问题?


请参阅 http://www.pobox.com/~skeet/csharp/complete.html 了解详情

我的意思是什么。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet 博客: http://www.msmvps.com/jon.skeet

英国的世界级.NET培训: http://iterativetraining.co.uk

Are you trying to use it for an instance variable, perhaps? Implicit
typing for variables is only available for local variables.

Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


你能检查一下你有没有声明使用System.LINQ ?


顺便说一句,也许在项目属性中你有.NET 2.0目标设置,那就是为什么你没有LINQ支持




VS 2008提供多版本支持,当您创建新解决方案时,您可以选择新项目的最高权限范围内的目标版本。对话框


-

WBR,Michael Nemtsev [.NET / C#MVP]。

博客: http://spaces.live.com/laflour


安德鲁写道:
Could you check that u have declared "using System.LINQ" ?

btw, maybe in the project properties u have .NET 2.0 target settings, that''s
why u have no LINQ support

VS 2008 provides multiverstion support, and when u create new solution u can
select the target version in the top righ size of the "new project" dialog box

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour

"Andrew" wrote:

好​​的,今天我决定打开vs 2008并开始看看

的变化是什么。尝试做什么最好的方法是什么?所以我决定使用LinQ读取一个愚蠢的xml文件,但是......但是...尽管

2008是我系统上唯一可用的版本... ...框架3.5是

安装时我开始使用var进行变量推送... vs开始

将其标记为红色...继续......来自x ..再次红了。


绝对有些东西不起作用?但是什么呢?

第一次尝试我打开了一个旧的测试项目,没有按照自动转换的b / b $ b,而是手动添加了所需的核心文件,所以我尽管

缺少的东西。

但是新项目也是如此。


可能是什么错误?


感谢所有人。

Andrea
Ok, today I decided to open vs 2008 and start to see what''s the
changes. What''s the best way to try do do something? So I decided to
read a stupid xml file with LinQ ... but ... strange thing despite the
2008 is the only version avalaible on my system ... framework 3.5 is
installed when I start to use var for variable inferering ... vs start
to mark it in red ... continuing ... from x ... red again.

Definitely there is something that doesn''t work? But what?
On first try I opened an old test project, not followed the automatic
conversion, but added manually the core files required, so I though to
something missing.
But the same happen with a new project too.

What could be the error?

Thanks to all.
Andrea


好吧


我想它不会解决任何简短的完整程序...

因为

我根本不能写它。

我的意思是......还有一些网页样本的剪切和粘贴将标记为红色

新的

关键字......所以我排除了我的错误。


我还注意到一个奇怪的事情是,在应用程序池中,http://
的IIS框架列出的只是2.0


3.0和3.5是否只是IIS的扩展名?


我忘了说,其中一部分,我是在Vista上运行。

Well

I suppose that it won''t solve anything a short complete program ...
because
I''m not able to write it at all.
I mean ... also a cut and paste of some web sample will mark in red
the new
keywords ... so I exclude my mystakes.

A strange thing that I''m also noticing is that in the Application Pool
of IIS the framework listed is only the 2.0

Are 3.0 and 3.5 considered just an extension for the IIS?

I forget to say, a part of all, that I''m running on Vista.


这篇关于从VS 2008开始,新功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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