ASP.NET支持C ++吗? [英] Does ASP.NET support C++?

查看:130
本文介绍了ASP.NET支持C ++吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我转到新建 - >网站,在下拉菜单语言只有2种语言:Visual C#和Visual Basic。没有Visual C ++。也许,我使用错误版本的Visual Studio? (我的是9.0.21022)

我试图google这个问题。我发现了一个主题,告诉我们在ASP中使用C ++。 NET是不可能的。但它是在2002年发布,我希望自那年以来有所改变。
是否可以使用C ++编写ASP.NET应用程序?如果是的话,我可以用这种语言使用视觉设计器吗?

When I go to New -> Web site, in the drop-down menu "Language" there are only 2 languages: Visual C# and Visual Basic. No Visual C++. Maybe, I'm using wrong version of Visual Studio? (mine is 9.0.21022)
I tried to google this problem. I found a topic which tells that using C++ in ASP.NET is impossible. But it was posted in 2002 and I hope that something has changed since that year. Is it possible to write ASP.NET applications using C++? If it does, can I use visual designer with this language?

推荐答案

Visual Studio生成C#和VB代码,你只有那些选项,因为视觉设计师从中生成代码不了解C ++。没有什么能阻止你创建一个使用托管的.NET代码库的C ++项目,如System,System.Web。*命名空间等。你不会有设计师或代码生成器为你工作,这意味着更多的代码为你;但是可以说C ++程序员习惯于没有很多的视觉设计支持。

Visual Studio generates C# and VB code and that's why it provides you only those options, because the visual designers from which code is generated don't understand C++. There's nothing preventing you from creating a C++ project that uses the managed .NET codebase like the System, System.Web.* namespaces, etc. You won't have the designers or code generators working for you, which means comparatively more coding for you; however arguably a C++ programmer is accustomed to not having a lot of visual design support.

Microsoft提供了有关使用C ++编程.NET

Microsoft provides information about ways of programming .NET using C++.

注意事项无法使用您要使用的Visual Studio版本。最糟糕的情况是您使用文本编辑器并从命令行调用编译器。

The caveat is you might not be able to use the version of Visual Studio you wanted to use. Worst case scenario is you use a text editor and invoke the compiler from the command-line.

这篇关于ASP.NET支持C ++吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆