CodeSmith Community
Your Code. Your Way. Faster!

VS 2008/Nettiers

Latest post 06-03-2008 2:03 AM by Rippo. 6 replies.
  • 05-30-2008 10:12 AM

    • jm1234
    • Not Ranked
    • Joined on 05-30-2008
    • Posts 4
    • Points 170

    VS 2008/Nettiers

    Hi,

    I want to be able to use vs 2008. ...but the latest official release of Nettiers doesn't seem to support that.  ...I don't want to use any of the untested releases since I need it to for sure work.  What I need to create is a web app that uses Infragistics 2008, vol 1. 3.5 edition (to take advantage of all their new controls).  So I'm thinking, I just keep my nettiers generated 2005 solution, which targets the 2.0 framework, and then create a brand new website from scratch in VS 2008 that just uses my dlls compiled from my 2005 solutions, so I can use my infragistics controls - I don't need to use nettiers controls, I don't like them, so I don't want to use their web stuff at all.  Does anyone see a problem with doing it this way.  I'm thinking it should work.  I really don't need .Net 3.5 for my business/data layer, I just need it for my asp.net layer.  Any feedback would be greatly appreciated.  Thanks!!!

     

    • Post Points: 65
  • 05-30-2008 10:50 AM In reply to

    • Rippo
    • Top 75 Contributor
    • Joined on 05-06-2005
    • UK
    • Posts 61
    • Points 1,455

    Re: VS 2008/Nettiers

    I dont think there has been a official release of netTiers for quite a while, from memory I think the last official release was before vs2008 came out of beta. I have been using the latest nightly builds of NetTiers for a long time now and have not found any issues using vs2008.

    I can recomend the latest nightly buillds are fine with 2008.

    Has anyone had any issues withvs2008?

     

    Richard Wilde wildesoft.net

    • Post Points: 5
  • 05-30-2008 2:01 PM In reply to

    • Aggnaught
    • Top 500 Contributor
    • Joined on 01-19-2007
    • Portland, OR
    • Posts 15
    • Points 315

    Re: VS 2008/Nettiers

    jm1234:
    I want to be able to use vs 2008. ...but the latest official release of Nettiers doesn't seem to support that.  ...I don't want to use any of the untested releases since I need it to for sure work.
     

    We had exactly the same concern that you do, so instead of using the nightly build we branched the official release and integrated the VS.2008 bits into the branch manually. Worked out perfectly. If memory serves, most of the changes are related to adding nodes to.csproj, .sln files, and adding a couple of properties to the base netTiers.cst file.

    If you open up the svn log on the trunk you can pick out which commits are related to the VS.2008 upgrade.

    Hope this helps! 

    • Post Points: 35
  • 05-30-2008 3:12 PM In reply to

    • SuperJeffe
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Tulsa, Ok
    • Posts 341
    • Points 8,575

    Re: VS 2008/Nettiers

    Also, if your more comfortable using the general release, you could generate in 2005 and just run it through the 2008 conversion wizard after generating.  It's an extra step, but if your more comfortable with that then it is an option.  If you generate as often as we do, this would get old quick.

    Aggnaught is absolutely right, you could look at the log and pick those bits out and do that.

    We will be doing another official release here soon.  We haven't finalized the issues we want to get in there, but one is coming.

    jeff

     

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
  • 06-02-2008 10:01 AM In reply to

    • jm1234
    • Not Ranked
    • Joined on 05-30-2008
    • Posts 4
    • Points 170

    Re: VS 2008/Nettiers

    Thanks for your replies everyone.  ...I really don't want to have to touch those nettiers files just to generate specifically 2008 when I really don't need that or .net 3.5 for the business/data layers - does anyone think my solution will work?  The nettiers stuff can stay 2.0, I just want to make a separate 2008 web project so I can use the new infragistics controls and asp.net 3.5 and just reference my nettiers stuff built off 2.0.  I shouldn't have any problems doing that, do you think?

    Thanks!

    • Post Points: 65
  • 06-02-2008 7:07 PM In reply to

    • donig
    • Top 100 Contributor
    • Joined on 02-16-2004
    • Virginia, USA
    • Posts 41
    • Points 1,230

    Re: VS 2008/Nettiers

    I did this for a while until I got around to upgrading the NetTiers layer to 2008. It worked fine compiled as v2.0 linked to v3.5.

    I tend to have enough changes in my database layer that I regen often, so moving it all to vs2008 made things easier.

    donig

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 5
  • 06-03-2008 2:03 AM In reply to

    • Rippo
    • Top 75 Contributor
    • Joined on 05-06-2005
    • UK
    • Posts 61
    • Points 1,455

    Re: VS 2008/Nettiers

    To speed up regen'ing I have a bat file ready to run. Basically I keep a visual studio 2005 command prompt open and just key in "RebuildDAL.bat". The bat file contains

    CLS
    @echo off
    msbuild E:\websites\Guru\Datalayer\Guru.sln /verbosity:q /p:configuration=Release

    copy E:\websites\Guru\Datalayer\Guru.Data.SqlClient\bin\Release\Guru.Data.dll E:\websites\Guru\web\bin\Guru.Data.dll
    copy E:\websites\Guru\Datalayer\Guru.Data.SqlClient\bin\Release\Guru.Data.SqlClient.dll E:\websites\Guru\web\bin\Guru.Data.SqlClient.dll
    copy E:\websites\Guru\Datalayer\Guru.Data.SqlClient\bin\Release\Guru.Entities.dll E:\websites\Guru\web\bin\Guru.Entities.dll
    copy E:\websites\Guru\Datalayer\Guru.Web\bin\Release\Guru.Web.dll E:\websites\Guru\web\bin\Guru.Web.dll
     

    Basically it builds the DAL then copies the built DLL's to the VS2008 project. This way you dont need to open VS after a regen, build then manually copy the DLL's over.

    HTH Rippo 

    Richard Wilde wildesoft.net

    • Post Points: 5
Page 1 of 1 (7 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems