Home Dashboard Directory Help

Can't not open .cs file in VS by DAFuture


 as Won't Fix Help for as Won't Fix

Sign in
to vote
Type: Bug
ID: 514269
Opened: 11/24/2009 11:13:31 PM
Access Restriction: Public
User(s) can reproduce this bug


I download NUnit 2.2.0 source code,And use vs 2010 open the project. vs 2010 convet the project and hasn't error. In solution some .cs file cant open by vs2010. I try selected file and use menu of view code,but notepad was open this file.
Sign in to post a comment.
Posted by Microsoft on 12/8/2009 at 8:03 PM
Hi DalongLee,

Thank you for reporting this issue. We were able to reproduce it in both Visual Studio 2010 and Visual Studio 2008, and we believe this is likely due to the presence of an embedded null or other illegal character in the .cs file. We do not currently plan to change the behavior of the VS editor in this case, so I'm resolving this issue as Won't Fix for the present release. However, this Connect item will remain in our database to be revisited for a future version of Visual Studio.

If you have any further questions or comments, please feel free to post again here and we'll do our best to help. Thanks for trying VS 2010 Beta 2 and sending your feedback!

Brittany Behrens
Program Manager, VS Platform - Editor
Posted by Microsoft on 11/26/2009 at 10:53 PM
Thanks for your feedback. We were able to reproduce the issue you are seeing. We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 11/26/2009 at 3:58 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Carter Wickstrom on 3/28/2011 at 1:33 PM
I experienced this issue in VS2010 Ultimate (Version 10.0.40219.1 SP1Rel; .NET Version 4.0.30319 SP1Rel). The work-around is to right-click the problem file, select "Open With...", then select "CSharp Editor with Encoding." A dialog comes up asking the user to chose their encoding, with "(Auto Detect)" selected as the default. I left it on "(Auto Detect)" and clicked "OK." The problem .cs file then opened in the editor.

File Name Submitted By Submitted On File Size  
NUnit-2.2.0-src.zip (restricted) 11/24/2009 -