Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New default VB.NET project immediately gives an error

I just installed Mono version 2.10.8 and MonoDevelop 2.8.6.5 on a Mac. When I create a new project (File -> New solution -> VBNet -> ASP.NET -> Web Application) it gives me an error after creating: Error while trying to load the project '/Users/starquake/Development/Mono/HelloWorld/HelloWorld.vbproj': Project does not support framework '.NETFramework,Version=v4.0'

What am I doing wrong? Or how can I fix it?

like image 783
StarQuake Avatar asked Mar 08 '12 19:03

StarQuake


People also ask

Is there a default member in the VB NET Framework?

Well, the .NET framework does have a notion of a default member. Key ingredients are the DefaultMemberAttribute class and Type.GetDefaultMembers (). In VB.NET, specifying the default member is part of the language syntax:

How do I resolve the application error in the project designer?

If your application has resources such as icons or bitmaps or settings such as data connection strings, you can also resolve the error by removing all the items on the Settings page of the Project Designer and then re-adding the required settings.

How do I change the default application settings in Visual Studio?

To work around application settings, open Solution Explorer, choose Show All Files, and then edit the app.config file in the XML editor of Visual Studio. Change the version in the settings to match the appropriate version of the .NET Framework.

Why am I getting MSBuild errors?

This topic describes MSBuild errors that might occur because of reference issues and how you can resolve those errors. You can create applications that reference projects or assemblies that target different versions of the .NET Framework.


1 Answers

I had this problem when creating new VB Projects, I changed the file format to use when creating new projects to MSBuild (Visual Studio 2008) instead of the default MSBuild (Visual Studio 2010) From Preferences > Load/Save

like image 96
Jake Burton Avatar answered Oct 11 '22 15:10

Jake Burton