I would like to use a vb.net module in my c# project. I compiled the vb.net module and I added reference to its dll in c# project, but I can't see it in c# project. The module is public, I tried to write its namespace (dll file name) before the module name, I tried to manually insert using moduleNameSpace, I checked that both projects have the same destination framework (4.5 without client profile), but I still can't see it. I have no idea about what I should do further.
Can anyone help me? Thanks!
A portion of vb.net module:
Namespace GestioneSetupFile
Public Module GestioneSetupFiles
Private Const TAB_POS As Short = 30
Dim Testo, Paragrafo As String
Dim PtrParagrafo As Integer
Public DEFAULT_APP_DIR As String = My.Application.Info.DirectoryPath
'Public DEFAULT_APP_DIR As String = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\BTSR\PC-LINK NEMO"
Public DEFAULT_CONFIG_DIR As String = DEFAULT_APP_DIR + "\Config"
Public Sub CheckConfigDir()
'Verifica la presenza della cartella Config
'Se non esiste la crea e per compatibilità con le versioni precedenti ci copia dentro tutti i files .cfg e .dat che trova
If Not My.Computer.FileSystem.DirectoryExists(DEFAULT_CONFIG_DIR) Then
'Dim NomeFile As String
My.Computer.FileSystem.CreateDirectory(DEFAULT_CONFIG_DIR)
'NomeFile = Dir(DEFAULT_APP_DIR + "\*.cfg")
'While NomeFile <> ""
' 'My.Computer.FileSystem.MoveFile(DEFAULT_APP_DIR + "\" + NomeFile, DEFAULT_CONFIG_DIR + "\" + NomeFile)
' 'per compatibilità con vecchio (se reinstallato) non sposta ma copia i file
' My.Computer.FileSystem.CopyFile(DEFAULT_APP_DIR + "\" + NomeFile, DEFAULT_CONFIG_DIR + "\" + NomeFile)
' NomeFile = Dir()
'End While
'NomeFile = Dir(DEFAULT_APP_DIR + "\*.dat")
'While NomeFile <> ""
' 'My.Computer.FileSystem.MoveFile(DEFAULT_APP_DIR + "\" + NomeFile, DEFAULT_CONFIG_DIR + "\" + NomeFile)
' 'per compatibilità con vecchio (se reinstallato) non sposta ma copia i file
' My.Computer.FileSystem.CopyFile(DEFAULT_APP_DIR + "\" + NomeFile, DEFAULT_CONFIG_DIR + "\" + NomeFile)
' NomeFile = Dir()
'End While
End If
End Sub
End Module
End Namespace
And this is my call in c# project:
using System;
/*Others using*/
using Microsoft.VisualBasic;
using GestioneSetupFile; //Compile error
namespace UltraFeederControl
{
public partial class Form1 : Form
{
private void updateConfigFile()
{
GestioneSetupFiles.CheckConfigDir();
}
}
}
Microsoft.VisualBasic