Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create .NET independent apps using Visual Studio?

There exist many C++ IDEs. However, I find Visual Stuido (Visual Studio 2010 Pro) the most comfortable maybe because I've spent a lot of time with it. The problem is I really don't like .NET dependent products both speed-wise and compatibility-wise.

I guess there is no way to compile VB and C# codes without .NET dependency (please correct me if I'm wrong). In C++, is there a way to use VS IDE with all its functions like auto-complete, GUI design etc.. while keeping all the codes unmanaged so that .NET will not be required?

like image 848
gunakkoc Avatar asked Aug 15 '12 10:08

gunakkoc


People also ask

Can I make an app using Visual Studio?

You can build apps for Android, iOS, and Windows devices by using Visual Studio. As you design your app, use tools in Visual Studio to easily add connected services such as Microsoft 365, Azure App Service, and Application Insights. Build your apps by using C# and the . NET Framework, HTML and JavaScript, or C++.

How do I create a .NET core application in Visual Studio code?

Create an ASP.NET Core applicationOpen that empty directory in VS Code by selecting File -> Open Folder. Open the terminal by using the shortcut Ctrl + Shift + ` or Terminal -> New Terminal. Then, it will show you the list of ASP.NET project templates. Select the web application option.


1 Answers

When you create a new project, if you select a Win32 project then it is a 'native' C++ application and does not depend on .NET. For existing projects, the relevant setting is Configuration Properties -> General -> Common Language Runtime Support. Set this to No Common Language Runtime Support to remove .NET dependencies.

Of course, the main UI designers for VC++ are the WPF and Windows.Forms designers - which depend on .NET components to implement them. If you don't want to use them, you're stuck using MFC for your user interface. It's not my idea of a good time, but many people do use it.

like image 70
Tom Avatar answered Nov 13 '22 23:11

Tom