digioz Posted June 19, 2008 Posted June 19, 2008 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 Quote
Administrators PlausiblyDamp Posted June 20, 2008 Administrators Posted June 20, 2008 It looks like you are missing a couple of references - errors about System.Collections.Generic etc. What libraries does it reference by default? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
digioz Posted June 20, 2008 Author Posted June 20, 2008 Its a standard windows form application, so it references: System System.Data System.Deployment System.Drawing System.Windows.Forms System.Xml Pete Quote
Administrators PlausiblyDamp Posted June 20, 2008 Administrators Posted June 20, 2008 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
digioz Posted June 20, 2008 Author Posted June 20, 2008 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 Quote
digioz Posted June 20, 2008 Author Posted June 20, 2008 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.