I have just migrate on my PC visual studio 2008 towards visual studio 2012.
Trying to generate my asp.net app after conversion to new version, i got many errors about some primitive Visual basic functions :
Chr, vbCrlF, on-so-on doesn't work and the error message is "Chr not declared....". I try to add visual basif reference to my project without any success.
AFAIK, the VB legacy features are still available. You might want to verify that you are referencing the current version of the Microsoft.VisualBasic assembly.
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
Into my solution explorer i right click on my project and do Add references... command. I selected :
Microsoft.Visual basic
Microsoft.Visualbasic.Compatibilty
Microsoft.Visualbasic.Compatibily.Data
Microsoft.Visual basic.PowerPacks.Vs (version 9.x and 10.x)
Microsoft Visual basic.Vsa
and validate but i have always many errors for examples :
MsgBox is not declared. it may be inaccessible due to its protection level
FormatDateTime is not declared. it may be inaccessible due to its protection level
Now is not declared. it may be inaccessible due to its protection level
Chr is not declared. it may be inaccessible due to its protection level
VbcrlF is not declared. it may be inaccessible due to its protection level
IsDate is not declared. it may be inaccessible due to its protection level
IsNothing is not declared. it may be inaccessible due to its protection level
cheickna
Member
144 Points
96 Posts
Some VB commands don't recongnize in visual Studio 2012
Jan 02, 2013 02:29 PM|LINK
Hello,
I have just migrate on my PC visual studio 2008 towards visual studio 2012.
Trying to generate my asp.net app after conversion to new version, i got many errors about some primitive Visual basic functions :
Chr, vbCrlF, on-so-on doesn't work and the error message is "Chr not declared....". I try to add visual basif reference to my project without any success.
How can i do to avoid this errors?
Thank's in advance
Careed
All-Star
18764 Points
3637 Posts
Re: Some VB commands don't recongnize in visual Studio 2012
Jan 02, 2013 03:14 PM|LINK
AFAIK, the VB legacy features are still available. You might want to verify that you are referencing the current version of the Microsoft.VisualBasic assembly.
"The oxen are slow, but the earth is patient."
cheickna
Member
144 Points
96 Posts
Re: Some VB commands don't recongnize in visual Studio 2012
Jan 02, 2013 03:46 PM|LINK
Hello,
Into my solution explorer i right click on my project and do Add references... command. I selected :
Microsoft.Visual basic
Microsoft.Visualbasic.Compatibilty
Microsoft.Visualbasic.Compatibily.Data
Microsoft.Visual basic.PowerPacks.Vs (version 9.x and 10.x)
Microsoft Visual basic.Vsa
and validate but i have always many errors for examples :
MsgBox is not declared. it may be inaccessible due to its protection level
FormatDateTime is not declared. it may be inaccessible due to its protection level
Now is not declared. it may be inaccessible due to its protection level
Chr is not declared. it may be inaccessible due to its protection level
VbcrlF is not declared. it may be inaccessible due to its protection level
IsDate is not declared. it may be inaccessible due to its protection level
IsNothing is not declared. it may be inaccessible due to its protection level
thank's for any help
cheickna
Member
144 Points
96 Posts
Re: Some VB commands don't recongnize in visual Studio 2012
Jan 02, 2013 04:15 PM|LINK
Hello,
I put this imports :
Imports Microsoft.VisualBasic
all my errors are fixed now!