开发者

Accidentally created VB.NET project instead of C#

开发者 https://www.devze.com 2022-12-25 20:24 出处:网络
This should seem simple enough, but can\'t figure it out. I was porting a project out of MonoDevelop and into VS2008, but I accidently created the project as VB.NET instead of C#. Now ReSharper and a

This should seem simple enough, but can't figure it out.

I was porting a project out of MonoDevelop and into VS2008, but I accidently created the project as VB.NET instead of C#. Now ReSharper and any syntax highli开发者_运维知识库ghting is throwing a fit because it's trying to validate it as VB.

How do I tell it to treat it as a C# project without creating a whole new one?


C# projects and VB.NET projects are so fundamentally different that treating a VB.NET project as a C# project basically would be re-creating the project. I think you just have to re-create the project from the existing files using the "New" => "Project from Existing Code" command in Visual Studio's File menu.


Try to rename the project file to .csproj.

0

精彩评论

暂无评论...
验证码 换一张
取 消