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

后端 未结 6 1612
失恋的感觉
失恋的感觉 2020-12-06 08:11

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

6条回答
  •  青春惊慌失措
    2020-12-06 08:50

    No - the compiler needs code files in different languages to be compiled separately. A C# class library cannot contain VB.NET code, simply because the compiler can't distinguish which code files are written in which language.

提交回复
热议问题