无法添加新代码或注释现有代码 [英] Can't Add new code or comment existing code

查看:79
本文介绍了无法添加新代码或注释现有代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用现有项目创建新代码时,Visual Studio无法识别我的新代码.

When i create new code with an existing project Visual Studio is not recognizing my new code. Anyone know what''s going on here?

推荐答案

我认为这可能是转换问题.您现有的项目使用的是Visual Studio的哪个版本?不用说,我以为它是在VS2008中,那么在转换为VS2010时,它可能无法识别您的整个代码,因为VS2010支持.NET4,而VS的早期版本则支持.NET3.5.这两个版本的所有dll文件都会并不相同,并且类似地,您的所有命名空间都将有所不同,因为VS2010是从其较早版本更新的一种方法.
通常,在VS2010中打开一个现有项目时,如果它是用.NET的早期版本编写的,则它会尝试在.NET 4中进行转换.如果它发现2个.NET版本之间的相似性,则有时会成功运行.因为如果VS2010无法将现有项目转换为它自己的版本,那么它会通知您它不能转换哪些文件.
I think it may be a conversion problem.Your existing project use what version of Visual Studio?though you don''t mention it,i assume it was in VS2008,then while converting to VS2010 it may not recognize your whole code,because VS2010 supports .NET4,while earlier version of VS supports .NET3.5.All dll files of these 2 versions will not be same and similarly all of your namespace,methods will not same because VS2010 is update one from it''s earlier.
Generally while opening an existing project in VS2010,if it is written in earlier version of .NET,it tries to convert it in .NET 4.Sometimes it operates successfully if it finds similarity between 2 .NET version.So will you try it or see what happens?Because if VS2010 can''t convert your existing project to it''s own version then it will inform will which files it can''t convert.


这篇关于无法添加新代码或注释现有代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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