How Upgrade A Project From .Net 2.0 To .Net 4.0 Using Visual Studio 2010? - vb.net

i am a c# web developer and vb.net project is not familiar for me.
i have a project in .net 2.0 that i want to upgrade it to .net 4.0 with using visual studio 2010.
when i open that project with visual studio 2010 every thing is normal and it seems it is working in .net 2.0.
i created a new project with visual studio and added all .net 2.0 project files to the new project.
but after that i had many errors like below :
'List' is not declared. It may be inaccessible due to its protection
what did i do wrong and how can i upgrade that project?
also where can i find the project's .Net framework ver for VB language (in c# we can change it by right clicking on project and properties, but here there is no such a properties)?
thanks in advance

You have "Visual Studio Conversion Wizard"
http://msdn.microsoft.com/en-us/library/dd483478(v=vs.100).aspx

Related

VB Razor (*.VBHTML) IntelliSense isn't working with Visual Studio 2022

In Visual Studio 2019 *.vbhtml files were working fine in my computer. After upgrading to Visual Studio 2022, C# IntelliSense and highlighting are still working, but in VB IntelliSense and highlighting fully disappear.
Also, any attempt at adding VB templates (Microsoft.VisualStudio.Web.CodeGeneration.Design) became forbidden.
Is there a way to bypass these restrictions and unblock VB in Razor Pages with some tuning of Visual Studio or with some extension for Visual Studio or with some 3rd party product?
Razor Pages are no longer supported in VB.NET after MVC5. As noted, editing and compilation (without IntelliSense) did work under Visual Studio 2019, but that functionality has been removed in Visual Studio 2022.
A working alternative for MVC and Razor Page projects in VB.NET under .NET Core 6 is Vazor, which can be found here.
My final solution you can see there https://github.com/Alex-1557/SplitViewAndCodeInAsp.Net.Core.Project/tree/main
Yes, have I lost opportunity to use VB in View and VBHTML, but I receive opportunity to split ASP.NET Core project to 2 full different projects.
For connect static files to root I have rebuilded this extension https://marketplace.visualstudio.com/items?itemName=CeciliaWiren-CeciliaSHARP.FolderToSolutionFolder
for Visual Studio 2022 - https://marketplace.visualstudio.com/items?itemName=alexev14.AddFolderToSolutionForVS2022

VB asp.net to .net core

I've a asp.net web application written in VB using Visual Studio 2013. Can I make it multiplatform using .net core? Should I get Visual Studio 2017 or can stay using 2013? thank you!
Right now ASP.NET Core not available for VB.NET.
Please see this forum:
At the present time there is no firm or set time for this feature.
It's planned and has been mentioned as being on the roadmap, but at
present it doesn't look like it can even be supported.
See readmap.
You can use C# or F#.
And you need VS 2017 (or VS Code) for .NET Core.
Is it possible to use VS 2015 Update3, but not recommended, because they changed json project to MSBuild.
UPDATE: With .NET Core 2 release, now it's possible to use VB.NET in .NET Core, but not yet in ASP.NET:
:

Unable to load solution created in VS for Mac in Xamarin Studio

I am testing out the new Visual Studio for Mac, and I created a new .NET Core empty web application - was able to build and run the project.
Then I tried opening the solution with Xamarin Studio and I got the following error message:
Project file doesn't have a valid ProjectGuid
Am I trying to do something that is not possible at the moment, or am I missing some configuration?
Xamarin Studio does not support .NET Core projects created by Visual Studio for Mac.
The project file format is very different for .NET Core projects created by Visual Studio for Mac. One example is that the project does not have a GUID however there are many differences.
The DNX addin was created to support the older style .NET Core projects, which use .xproj and project.json files. Visual Studio for Mac creates the newer MSBuild SDK style project files which are .csproj files.

ASP.NET Core Web Application Template does not exist on Visual Studio 15

I've installed Visual Studio 15.
When I want to add new project, the ASP.NET Core Web Application (.NET Core) does not exist in project templates.
I've installed .NET Core and I'm using it on VS 2015.
Tooling for .NET core is not available in VS15 yet. https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes
Visual Studio Tools for .NET Core availability
Issue:
Tooling support for .NET Core projects is not available in this
release of Visual Studio.
Workaround:
Support will be available in a future update of Visual Studio “15”.
It is due to the .Net Core Tool which is yet not released for VS2015. So if you want to use it then you have to go for VS2017.

How to open visual basic 6 program with visual studio.net

I want to open a program (written in Visual basic 6) to be open in Visual Studio.net. Please guide, how could I do that?
While trying to open VB6 (.vbp file) program directly from the OPEN project option in visual studion.net, I was getting this error,
"Visual Basic 6 (.vbp) files cannot be opened in Visual Studio"
I am trying to open in VS 2010.
Visual Studio 2010 does not support VB6 projects. See the link here
From the msdn documentation:
Visual Studio 2010 does not provide tools for upgrading applications and projects from Visual Basic 6.0. If you want to upgrade your project from Visual Basic 6.0 to Visual Basic 2010, you can use the upgrade tools provided with earlier versions of Visual Studio and then upgrade the project again in Visual Studio 2010.
Visual Basic Tools for Visual Studio
There's a plugin called Visual Basic Tools for Visual Studio that provides the following features:
load classic VB workspace- and project-files and offers quick access to the extension´s options
integrates with the solution explorer and the code editor having support for syntax highlighting, basic outlining (allows to expand/collapse methods, properties and types) as well as navigation bar support.
Classes, Types, Modules, Forms and Controls can be inspected using the Object Browser and Class View.
From the reading, it's unclear if you can actually build the project, though it does say:
The import tool creates a new solution and MSBuild compatible projects.
Links to the plugin by VS Version
2012-2013
2015
2017
RAD Basic
There is also an independent IDE called RAD Basic that claims the following features:
New and modern IDE (Integrated Development Environment) with form designer supporting drag and drop, code completion, refactoring tools, etc.
RAD Basic Compiler: Compiler 100% compatible with your VB6 project (vbp, frm, bas and cls files). Generate native executables (exe and ocx) in both 32-bit and 64-bit.
RAD Basic Forms: Reimplementation of common VB6 controls and components supporting 32-bit and 64-bit.
etc.
Speaking from my experience, it's not easy to open a Visual Basic 6.0 project in any versions of Visual Studio above 2008.
Although 2008 and below versions do provide an automatic function to convert Vb6 code to the VB.net framework. But, the problem starts after the conversion - it can skip some code, add functions/variables on its own, or modify the functional behavior on its own, and with that the VB.proj will be created with errors and you will not be able to open it anywhere as a solution file. The same with any 3rd party tools.
If you want to open the VB6 code try Visual Basic 6.0 Portable edition.
But headache will still follow you there, please refer this link
Installation of VB6 on Windows 7 / 8 / 10
Make sure you are clicking on the project file itself... Right click on the file and select "Open With" and select your visual studio program. It may need to be converted and if so, it will prompt you to convert the project.
Thanks!
Download Visual Basic Tools for Visual Studio,allows to work with classic VB workspaces and projects