VB.net и С#
Правила форума
Пожалуйста, ознакомьтесь с правилами данного форума
Пожалуйста, ознакомьтесь с правилами данного форума
-
- Завсегдатай
- Сообщения: 213
- Зарегистрирован: 17 фев 2003, 16:05
- Откуда: NN - Montreal - Charlottetown - Montreal
VB.net и С#
Есть Class Library, написанная на VB.NET. Компилирую, вставляю assembly в VB.NET, все работает. Вставляю в проект на C#, не работает. Никак не пойму в чем дело.
- Marmot
- Графоман
- Сообщения: 39279
- Зарегистрирован: 17 фев 2003, 17:58
- Откуда: Caulfeild
- Контактная информация:
Re: VB.net и С#
Kогда вставляешь в C#, то сильно цепляется за оттопырки в #, добавь смазки, может и проскочитAlexan писал(а):Есть Class Library, написанная на VB.NET. Компилирую, вставляю assembly в VB.NET, все работает. Вставляю в проект на C#, не работает. Никак не пойму в чем дело.

-
- Завсегдатай
- Сообщения: 213
- Зарегистрирован: 17 фев 2003, 16:05
- Откуда: NN - Montreal - Charlottetown - Montreal
получаю следующую ошибку:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'MsgBox' does not exist in the class or namespace 'MsgBox.MsgBox' (are you missing an assembly reference?)
Source Error:
Line 79:
Line 80: private System.Web.UI.Control __BuildControlMsgBox1() {
Line 81: MsgBox.MsgBox __ctrl;
Line 82:
Line 83: #line 14 "http://localhost/messageVB/default.aspx"
Reference я добавил, но не помогло.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'MsgBox' does not exist in the class or namespace 'MsgBox.MsgBox' (are you missing an assembly reference?)
Source Error:
Line 79:
Line 80: private System.Web.UI.Control __BuildControlMsgBox1() {
Line 81: MsgBox.MsgBox __ctrl;
Line 82:
Line 83: #line 14 "http://localhost/messageVB/default.aspx"
Reference я добавил, но не помогло.