error BC36716: Visual Basic 9.0 does not support implicit line continuation in VB:NET in VS 2019 - vb.net

I need to build Class Library (.dll) as a part of my custom IIS (SharePoint 2010) web service for .NET Framework 3.5, but VS2019 (Community edition) using VB.NET refuses me to build it with the subjected error.
I found suggestions to disable "Pretty listing (reformatting) of code" in Options > Text Editor > Basic Advanced (in settings of Visual Studio), but I found this functionality useful otherwise so I would prefer any different solution.
Another suggestion was about deleting some "LangVersion" (or similar) tag from .vbproj file, but I don't have there any ;-(
p.s. I had troubles with these in VS2015 and VS2017 as well...
Any suggestions?
Thanks in advance. #JK

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

Add VB.NET to Visual Studio 2010 Professional

In the past I have only used Visual Studio 2010 Professional for C#, but now I need to work on a little bit of Visual Basic. When I go to create a project it only shows C# project templates. I am assuming when I installed Visual Studio 2010, I only installed C#.
How do I now install VB.NET support?
I tried following a MS tutorial: I went to Control Panel and selected Change/Uninstall on Visual Studio, but then it asked me to insert a CD, of which I have none since it was donwloaded.
Nevermind I figured it out. (win7) Control Panel -> Programs and Features -> Uninstall/Change on Visual Studio -> then when you hit the Add/Remove features and you get the popup asking about the cd (which is where I assumed i was stuck before) if you hit Download it takes you to the dialog where you choose additional languages to install and it worked.
I apologize for my earlier flippant comment, and offer you
http://download.cnet.com/Microsoft-Visual-Studio-2010-Professional/3000-2212_4-10618634.html
I had same problem but i did the simplest solution ,since i had my .iso(visual studio express) file i had downloaded I used my winrar to extract files ,went to VBExpress ,open the folder and click on the setup and it all worked out successfully...

Can you recomment a better IDE for Unity C# coding? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
The current version of Unity uses the old MonoDevelop 2.8 which is very primitive. Not only that it cannot register compile errors, I am also unable to know which method I can use. Each time I want to use some built-in method (like OnGUI or OnTriggerEnter) I have to search them manually.
Since I am coming from the world of IntelliJ IDEA or Eclipse or VisualStudio, this is a very primitive way of working.
I tried using the latest Unity with the newest MonoDevelop 4.0, but I did not succeed.
Can you suggest a modern IDE which I can use with Unity, the one where I will enjoy coding?
Updated 02/08/2022
JetBrains Rider
There's a new cross-platform .NET IDE by JetBrains - Rider with build-in resharper-like commands and quite a list of features including rich web development support and specifically Unity
Unity support
Deeper integration with the Unity Editor: if a method/script is used in a scene, prefab, or asset file, navigating from the Find Usages tool window to this usage will highlight the usage right in the Unity Editor.
Gutter mark icons for classes, methods, and fields that are implicitly used by Unity have been moved to Code Vision.
Check that a compilation in Unity was successful before running unit tests through Unity Editor in Rider.
Comments: I've been using it for some time already and my impression is very positive. It's faster compared to Visual Studio and has some really awesome hotkey combos, not to mention support for AceJump and a ton of other useful extensions.
Visual Studio C# Integration
What does this feature get me?
A more sophisticated C# development environment.
Think smart autocompletion, computer-assisted changes to source files, smart syntax highlighting and more.
What's the difference between Express and Pro?
VisualStudio C# 2010 is a product from Microsoft. It comes in an Express and a Profesional edition.
The Express edition is free, and you can download it from here: http://www.microsoft.com/express/vcsharp/
The Professional edition is not free, you can find out more information about it here: http://www.microsoft.com/visualstudio/en-us/products/professional/default.mspx
Unity's VisualStudio integration has two components:
Unity creating and maintaining VisualStudio project files. Works with Express and with Profesional.
Unity automatically opening VisualStudio when you doubleclick on a script, or error in Unity. Works with Professional only.
I've got Visual Studio Express, how do I use it?
In Unity, select from the menu Assets->Sync VisualStudio Project
Find the newly created .sln file in your Unity project (one folder up from your Assets folder)
Open that file with Visual Studio Express.
You can now edit all your script files, and switch back to Unity to use them.
I've got Visual Studio Professional, how do I use it?
Note: With Microsoft's Acquisition of SyntaxTree, Visual Studio Tools for Unity (formerly known as UnityVS) has been released free of charge in the Visual Studio gallery.
This replaces the below steps for users of Visual Studio Professional and removes a number of caveats mentioned further below, allowing for debugging within VS, advanced project file integration, a mirrored console window withing VS, and more.
In Unity, go to Edit->Preferences, and make sure that Visual Studio is selected as your preferred external editor.
Doubleclick a C# file in your project. Visual Studio should automatically open that file for you.
You can edit the file, save, and switch back to Unity.
A few things to watch out for:
Even though Visual Studio comes with its own C# compiler, and you can use it to check if you have errors in your c# scripts, Unity still uses its own C# compiler to compile your scripts. Using the Visual Studio compiler is still quite useful, because it means you don't have to switch to Unity all the time to check if you have any errors or not.
Visual Studio's C# compiler has some more features than Unity's C# compiler currently has. This means that some code (especially newer c# features) will not give an error in Visual Studio but will give an error in Unity.
Unity automatically creates and maintains a Visual Studio .sln and .csproj file. Whenever somebody adds/renames/moves/deletes a file from within Unity, Unity regenerates the .sln and .csproj files. You can add files to your solution from Visual Studio as well. Unity will then import those new files, and the next time Unity creates the project files again, it will create them with this new file included.
Unity does not regenerate the Visual Studio project files after an AssetServer update, or a SVN update. You can manually ask Unity to regenerate the Visual Studio project files trough the menu: Assets->Sync VisualStudio Project
Visual Studio Code (Windows, macOS, Linux)
Unity supports opening scripts in Visual Studio Code (VS Code). To open scripts in VS Code, go to Unity > Preferences > External Tools > External Script Editor and select Visual Studio Code. For information on using VS Code with Unity, see Visual Studio’s documentation on Unity Development with VS Code.
Prerequisites
To use Visual Studio Code for C# code editing and Unity C# debugging support, you need to install:
Mono (only required on macOS and Linux)
Visual Studio Code C# Extension
Visual Studio Code Debugger for Unity Extension (Not officially supported by Unity)
Sources:
http://docs.unity3d.com/Documentation/Manual/VisualStudioIntegration.html
https://docs.unity3d.com/Manual/ScriptingToolsIDEs.html
In Mac
1) Visual Studio Code
Lightweight
Support debug
https://code.visualstudio.com/
2) Consulo
Intellij IDEA based IDE
Support debug
https://github.com/consulo/consulo
3) Sublime Text also can be your choice on Mac.
Using Sublime Text as a script editor
There are some useful packages for unity too. (Code Completion, Syntax coloring...)
ST package for unity3d
And Video Tutorial
You can use MonoDevelop or SharpDevelop. I need to highlight that all the capability in the .NET framework and not in the IDE in other words you can use text editors and CLR compiler without the need to use any IDE.

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

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

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