Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

 

<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 in the attached text file.

 

MSBee_Error.txt

 

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

 

Thanks,

Pete

Posted

Its a standard windows form application, so it references:

 

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

 

 

Pete

  • Administrators
Posted
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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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

Posted

New Problem:

 

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

 

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:

 

msbuild [Project Path] /p:TargetFX1_1=true

 

Anyone know how to fix this one? :confused:

 

Thanks,

Pete

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...