Error while compiling Windows Form using MSBee

digioz

Newcomer
Joined
Oct 12, 2005
Messages
18
Location
Chicago, IL
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):

Code:
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />

the following:

Code:
<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:

Code:
msbuild C:\Temp\WindowsApplication1\WindowsApplication1\WindowsApplication1.vbproj /p:TargetFX1_1=true

I get the errors and warnings in the attached text file.

View attachment MSBee_Error.txt

Anyone know what's wrong with it? Any help would be appreciated!

Thanks,
Pete
 
Its a standard windows form application, so it references:

Code:
System
System.Data
System.Deployment
System.Drawing
System.Windows.Forms
System.Xml


Pete
 
Looking properly at the errors generated it looks like the applicationj is trying to use .Net 2 functionality (Generics etc.) but targeting the 1.1 framework. I would imagine you need to ensure you are only using 1.1 functionaily for this to work.
 
You are right! It looks like the issue was being caused by any new Windows Forms that are added to the project using VS 2005! :eek:

It looks like if I simply copy an existing VS 2003 created form, rename all reference to it in both resx and .vb files it compiles successfully! Even though that would be a pain to do on an ongoing basis, I think it would be worth it if it means I don't have to maintain 2 seperate versions of my application.

Thanks a bunch for your help!

Pete
 
New Problem:

When trying to compile an Application where there are multiple sub-projects within the main solution, I get the following error:

Code:
MSBUILD: error MSB1008: Only one project can be specified. 
Switch: ProjectName.vbproj

I have already added all the target imports to each sub project's .vbproj and .csproj files, and am using the command line command:

Code:
msbuild [Project Path] /p:TargetFX1_1=true

Anyone know how to fix this one? :confused:

Thanks,
Pete
 
Back
Top