Results 1 to 5 of 5

Thread: Compiling on 2008

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    11

    Compiling on 2008

    Im having trouble using my program i made on 2008. The one i questioned about a few days ago. I did it at home and im trying to pull it up at school. We have an earlier edition at school so i will need to compile it so it opens. im confused on how to do that in VB 2008 Express. So can I please get directions on how to do that. Thank you.

    Also how do you mark a thread as resolved?

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Compiling on 2008

    So what you're saying is that at home, you created a program or dll in Visual Studio 2008 but at school, you only have Visual Studio 2005, 2003 or 2002?

    If my assumption is correct and you're using Visual Studio 2005 at school, then you can change the properties of your project to target .Net 2.0 at home within Visual Studio 2008. Once you do that and remove the 2008 specific references (LinkQ and I think there is one more typically), you should be able to compile it in Visual Studio 2005. However, you may not be able to open the project itself within 2005 (I'm not sure on the compatability) so you may need to create a new project at school and import all of your existing code.

    If you have 2003/2002 (.Net 1.1, .Net 1.0) at school then you're out of luck. You can try to import your existing code into a new project setup at school but it may or may not compile. If it doesn't, you can always go through and attempt to resolve each error.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Compiling on 2008

    If you're using VB 2005 Express at school then you should use VB 2005 Express at home too. There's nothing to stop you having both installed at home, so you can still use 2008 for your own interest but for stuff you are working on at school you can use 2005. Otherwise it's just going to be a hassle as you'd have to hand-edit your SLN a VBPROJ files each time you go back to school.

    Also, I'm not sure that VB Express 2008 does let you choose which .NET Framework to target the way VS 2008 does.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Compiling on 2008

    Quote Originally Posted by jmcilhinney
    Also, I'm not sure that VB Express 2008 does let you choose which .NET Framework to target the way VS 2008 does.
    C# Express allows you to target different framework versions so I would assume VB Express would do so as well.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Compiling on 2008

    Quote Originally Posted by kasracer
    C# Express allows you to target different framework versions so I would assume VB Express would do so as well.
    I just found out that it definitely does. As far as I can tell you can't choose a Framework when you create a project in the first place but you can change it from the Advanced Compile Options once it exists.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width