Can Visual Basic work as a Windows service?

I took less than a week in my education in Visual Basic. I downloaded Visual Studio 2008 and teach Visual Basic 2008 in the hope of landing a specific contract position.

In the meantime, my friend told me that it is not recommended to write a Windows service with Visual Basic. It's true? Can he talk about an older version than in 2008? Is .NET version included?

What is at stake is that the company my friend works with is going to completely rewrite the component of its flagship product at high cost and expense and simply abandon its existing VB code. If only a freeze causes it to run as a service, then they can save a lot of money, if Visual Basic can actually work reliably as a service.

+3
source share
5 answers

You can write .NET services in any CLR language, including VB.NET — your friend has thought about VB6 before.

(I really recall some pretty crazy kludges that allowed you to write services in VB6, but for all practical purposes, services written in VB6 were not really a viable solution ...)

+6
source

There is no reason why Visual Basic.Net cannot write a Windows service. You can select the project that will create the Windows service as part of the Windows projects in the Visual Basic section.

+4
source

Windows VB.NET( Visual Studio >= 2003) , Windows .

, Visual Basic 6... .NET.

... , , .

+2

Visual Basic, VB.NET.

VB.NET , Visual Basic, , .

, , Visual Basic ( 6 , VB.NET) - ( ), VB.NET , , # CLR.

, "VB.NET" "Visual Basic.NET", "Visual Basic".

+1

.NET certainly allows you to use Visual Basic to write Windows services. I believe there is even a default project template. Here is a tutorial as such: http://www.vbdotnetheaven.com/UploadFile/mahesh/Winservvb11172005233242PM/Winservvb.aspx

All .NET code is converted to an intermediary language that runs, so all .NET languages ​​can be used to write Windows services.

0
source

Source: https://habr.com/ru/post/1716019/


All Articles