Hello all,
I am trying to compile a simple VB.NET Windows Form project which was converted from VS 2003 to VS 2005 using the .NET 1.1 framework from VS 2005 by utilizing MSBee. Based on the instructions, I have added bellow this line (in .vbproj file):
the following:
When I run the following command from VS 2005 command line:
I get the errors and warnings bellow:
Anyone know what's wrong with it? Any help would be appreciated!
Thanks,
Pete
DigiOz Multimedia
I am trying to compile a simple VB.NET Windows Form project which was converted from VS 2003 to VS 2005 using the .NET 1.1 framework from VS 2005 by utilizing MSBee. Based on the instructions, I have added bellow this line (in .vbproj file):
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" /> |
the following:
<Import Project="$(MSBuildExtensionsPath)\MSBee\MSBuildExtras.FX1_1.VisualBasic.targets" Condition="'$(BuildingInsideVisualStudio)' == '' AND '$(TargetFX1_1'=='true'" /> |
When I run the following command from VS 2005 command line:
msbuild C:\Temp\WindowsApplication1\WindowsApplication1\WindowsApplication1.vbproj /p:TargetFX1_1=true |
I get the errors and warnings bellow:
Setting environment for using Microsoft Visual Studio 2005 x86 tools. |
C:\Program Files\Microsoft Visual Studio 8\VC>msbuild C:\Temp\ClassLibrary1\Clas |
sLibrary1\ClassLibrary1.vbproj /p:TargetFX1_1=true |
Microsoft (R) Build Engine Version 2.0.50727.42 |
[Microsoft .NET Framework, Version 2.0.50727.42] |
Copyright (C) Microsoft Corporation 2005. All rights reserved. |
Build started 6/19/2008 8:50:42 AM. |
__________________________________________________ |
Project "C:\Temp\ClassLibrary1\ClassLibrary1\ClassLibrary1.vbproj" (default targ |
ets): |
Target GetVisualStudioSearchPaths: |
"HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\7.1\AssemblyFolders" doe |
s not exist in the local machine's registry. |
Target CoreResGen: |
Copying file from "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data. |
dll" to "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\tmp6F\Syste |
m.Data.dll". |
Copying file from "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" |
to "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\tmp6F\System.dll |
". |
Copying file from "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.d |
ll" to "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\tmp6F\System |
.Xml.dll". |
Copying file from "C:\Program Files\Microsoft.NET\SDK\v1.1\bin\Resgen.exe" t |
o "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\tmp6F\Resgen.exe" |
. |
C:\Documents and Settings\pedram.soheil\Local Settings\Temp\tmp6F\Resgen.exe |
/compile "My Project\Resources.resx",obj\FX1_1\Debug\ClassLibrary1.Resources.re |
sources |
Deleting file "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\t |
mp6F\Resgen.exe". |
Deleting file "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\t |
mp6F\System.Data.dll". |
Deleting file "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\t |
mp6F\System.dll". |
Deleting file "C:\Documents and Settings\pedram.soheil\Local Settings\Temp\t |
mp6F\System.Xml.dll". |
Deleting directory "C:\Documents and Settings\pedram.soheil\Local Settings\T |
emp\tmp6F\". |
Target CoreCompile: |
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Vbc.exe /imports:Microsoft.Visu |
alBasic,System,System.Collections,System.Collections.Generic,System.Data,System. |
Diagnostics /rootnamespace:ClassLibrary1 /define:"CONFIG=\"Debug\",DEBUG=-1,TRAC |
E=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\",FX1_1=-1" /reference:C:\WINDOWS\Mic |
rosoft.NET\Framework\v1.1.4322\System.Data.dll,C:\WINDOWS\Microsoft.NET\Framewor |
k\v1.1.4322\System.dll,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Xml.d |
ll /debug+ /debug:full /out:obj\FX1_1\Debug\ClassLibrary1.dll /resource:obj\FX1_ |
1\Debug\ClassLibrary1.Resources.resources /target:library Class1.vb "My Project\ |
AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Desi |
gner.vb" "My Project\Settings.Designer.vb" |
vbc : error BC30464: Namespace or type 'Generic' in the project-level Import |
s 'System.Collections.Generic' cannot be found. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(24): er |
ror BC30002: Type 'Global.System.CodeDom.Compiler.GeneratedCodeAttribute' is not |
defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(25): er |
ror BC30002: Type 'Global.System.Diagnostics.DebuggerNonUserCodeAttribute' is no |
t defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(26): er |
ror BC30002: Type 'Global.System.Runtime.CompilerServices.CompilerGeneratedAttri |
bute' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(27): er |
ror BC30002: Type 'Global.Microsoft.VisualBasic.HideModuleNameAttribute' is not |
defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(30): er |
ror BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(32): er |
ror BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(37): er |
ror BC30002: Type 'Global.System.ComponentModel.EditorBrowsableAttribute' is not |
defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(38): er |
ror BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(41): er |
ror BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(52): er |
ror BC30002: Type 'Global.System.ComponentModel.EditorBrowsableAttribute' is not |
defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(53): er |
ror BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(57): er |
ror BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(20): err |
or BC32035: Attribute specifier is not a complete statement. Use a line continua |
tion to apply the attribute to the following statement. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(21): err |
or BC30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(23): err |
or BC30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(40): err |
or BC30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(56): err |
or BC30460: 'End Class' must be preceded by a matching 'Class'. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(61): err |
or BC30002: Type 'Global.Microsoft.VisualBasic.HideModuleNameAttribute' is not d |
efined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(62): err |
or BC30002: Type 'Global.System.Diagnostics.DebuggerNonUserCodeAttribute' is not |
defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(63): err |
or BC30002: Type 'Global.System.Runtime.CompilerServices.CompilerGeneratedAttrib |
ute' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(66): err |
or BC30002: Type 'Global.System.ComponentModel.Design.HelpKeywordAttribute' is n |
ot defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(67): err |
or BC30002: Type 'Global.ClassLibrary1.My.MySettings' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(69): err |
or BC30451: Name 'Global' is not declared. |
Done building target "CoreCompile" in project "ClassLibrary1.vbproj" -- FAILED. |
Done building project "ClassLibrary1.vbproj" -- FAILED. |
Build FAILED. |
vbc : error BC30464: Namespace or type 'Generic' in the project-level Imports 'S |
ystem.Collections.Generic' cannot be found. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(24): error |
BC30002: Type 'Global.System.CodeDom.Compiler.GeneratedCodeAttribute' is not def |
ined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(25): error |
BC30002: Type 'Global.System.Diagnostics.DebuggerNonUserCodeAttribute' is not de |
fined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(26): error |
BC30002: Type 'Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute |
' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(27): error |
BC30002: Type 'Global.Microsoft.VisualBasic.HideModuleNameAttribute' is not defi |
ned. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(30): error |
BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(32): error |
BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(37): error |
BC30002: Type 'Global.System.ComponentModel.EditorBrowsableAttribute' is not def |
ined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(38): error |
BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(41): error |
BC30002: Type 'Global.System.Resources.ResourceManager' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(52): error |
BC30002: Type 'Global.System.ComponentModel.EditorBrowsableAttribute' is not def |
ined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(53): error |
BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Resources.Designer.vb(57): error |
BC30002: Type 'Global.System.Globalization.CultureInfo' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(20): error B |
C32035: Attribute specifier is not a complete statement. Use a line continuation |
to apply the attribute to the following statement. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(21): error B |
C30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(23): error B |
C30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(40): error B |
C30001: Statement is not valid in a namespace. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(56): error B |
C30460: 'End Class' must be preceded by a matching 'Class'. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(61): error B |
C30002: Type 'Global.Microsoft.VisualBasic.HideModuleNameAttribute' is not defin |
ed. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(62): error B |
C30002: Type 'Global.System.Diagnostics.DebuggerNonUserCodeAttribute' is not def |
ined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(63): error B |
C30002: Type 'Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute' |
is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(66): error B |
C30002: Type 'Global.System.ComponentModel.Design.HelpKeywordAttribute' is not d |
efined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(67): error B |
C30002: Type 'Global.ClassLibrary1.My.MySettings' is not defined. |
C:\Temp\ClassLibrary1\ClassLibrary1\My Project\Settings.Designer.vb(69): error B |
C30451: Name 'Global' is not declared. |
0 Warning(s) |
24 Error(s) |
Time Elapsed 00:00:06.04 |
C:\Program Files\Microsoft Visual Studio 8\VC> |
Anyone know what's wrong with it? Any help would be appreciated!
Thanks,
Pete
DigiOz Multimedia