是否有可能在同一个asp.net网站C#和vb.net? [英] Is it possible to have C# and vb.net in the same asp.net website?

查看:158
本文介绍了是否有可能在同一个asp.net网站C#和vb.net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在同一个asp.net网站C#和vb.net?而不类库分离。

Is it possible to have C# and vb.net in the same asp.net website? without separating in class libraries.

推荐答案

试试这个在APP_ code子文件夹中创建两个新的子文件夹,一个是你的C#类,另一个用于VB.NET类。之后,在一节这样的规定,这些2个文件夹在web.config中:

Try this in the App_Code subfolder create 2 new subfolders, one for your C# classes and another for your VB.NET classes. After that specify these 2 folders in the web.config in the section like this:

<system.web>

<compilation debug="true">

<codeSubDirectories>

<add directoryName="CSharp"/>

<add directoryName="VB"/>

</codeSubDirectories>

</compilation>

或者你也可以在其他语言中创建新的项目并添加和借鉴吧。

Or you can create new project in other language and add referenc to it.

这篇关于是否有可能在同一个asp.net网站C#和vb.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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