CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

Problems with csla-build

Last post 01-05-2009, 7:28 PM by DanEssin. 5 replies.
Sort Posts: Previous Next
  •  12-31-2008, 5:27 PM 29431

    Problems with csla-build

    Hi Rocky,
    It's been a while since I've worked on csla and am now trying to get up to speed on 3.6
    I have the latest download and am trying to get the setup project in csla-build to build.
    This is what I've run into so far and I could use some help.
    1 - I guess powershell is a dependency.
    2 - "out of the box" the prebuild call to powershell threw an "unknown error" type of message and exited with an error code 1
    3 - I went to work on the ps script in PowerGUI and discovered that $root was set to windows system despite the cd command in the prebuild event preceeding the poiwershell call. to I rewrote the script thus:
    #Visual Studio Templates folder location - BATCH file will be calling this script from that location
    $args |Out-Host
    $root = (Get-Location).Path
    Set-Location -Path $args[0]
    Get-Location | Out-Host
    Write-Host "Starting"
    #Load Zip Library
    [System.Reflection.Assembly]::LoadFrom($args[0] + "\Build\Ionic.Utils.Zip.dll")
    #Delete Generated Item Templates
    #del ($root + "\Item Templates\cs\Generated Templates\*.zip")
    #del ($root + "\Item Templates\vb\Generated Templates\*.zip")
    del ($args[0] + "\Item Templates\cs\Generated Templates\*.zip")
    del ($args[0] + "\Item Templates\vb\Generated Templates\*.zip")
    and so on.

    Thie script now executes correctly if run directly with the appropriate arg but when called as the prebuild event it neither faults nor finishes - so I have not more clue about this.
    4 - Since I got the prebuild event handled in advance, I remed out the event and tried to complete the setup build. It then complained that www.lhotka.net was not a valid URL and wannted the http:// to be included.
    5 - After that, it issues the following errors about missing files:
    ERROR: Unable to build module 'Progress' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'License Agreement' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'License Agreement' because the resource specified for 'LicenseFile' was not found in the project.
    ERROR: Unable to build module 'Confirm Installation' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'Welcome' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'Installation Folder' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'Checkboxes   (A)' because the resource specified for 'BannerBitmap' was not found in the project.
    ERROR: Unable to build module 'Finished' because the resource specified for 'BannerBitmap' was not found in the project.
    Build process cancelled
    I guess that I cah phony-up some files to satisfy the build configuration but I assume you intended that the download would actually work.

    Your help would be appreciated,
    Dan
  •  12-31-2008, 6:41 PM 29432 in reply to 29431

    Re: Problems with csla-build

    I got thie setup to build (maybe). When running it, when it got to the first item in content installation (CommandObject) it threw the following null-reference exception:
    System.NullReferenceException was unhandled
      Message="Object reference not set to an instance of an object."
      Source="System.Windows.Forms"
      StackTrace:
           at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
           at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
           at VSContentInstaller.Form.ThreadFunc()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException:

    tia
  •  01-05-2009, 12:22 AM 29467 in reply to 29431

    Re: Problems with csla-build

    csla-build is a work in progress and doesn't currently work (to my knowledge). This is something Nermin was working on a couple months ago on his own time, but then he got busy and hasn't been able to continue.

    It would be really nice to have an msi for CSLA, but it turns out to be a lot of work to create and maintain, and it hasn't floated anywhere near the top of my to-do list. I welcome Nermin's help - but understand that this isn't his job, so anything he does is snuck in between work, family and anything else in his life :)


    Rocky
  •  01-05-2009, 6:34 PM 29485 in reply to 29467

    Re: Problems with csla-build

    Hi,
    Thanks for the info - it certainly helps. I guess I made relatively good progress with it considering I got the prebuild stuff to execute, and got the vsi to install the templates..

    Based on your guidance I will leave it at that and get to work on the basics. Any tips on the choice of a data-aware template generator?

    Thanks again,
    Dan
  •  01-05-2009, 6:47 PM 29486 in reply to 29485

    RE: Problems with csla-build

    http://www.lhotka.net/cslanet/codegen.aspx

     

     

    From: DanEssin [mailto:cslanet@lhotka.net]
    Sent: Monday, January 05, 2009 6:34 PM
    To: rocky@lhotka.net
    Subject: Re: [CSLA .NET] Problems with csla-build

     

    Hi,
    Thanks for the info - it certainly helps. I guess I made relatively good progress with it considering I got the prebuild stuff to execute, and got the vsi to install the templates..

    Based on your guidance I will leave it at that and get to work on the basics. Any tips on the choice of a data-aware template generator?

    Thanks again,
    Dan



    Rocky
  •  01-05-2009, 7:28 PM 29491 in reply to 29486

    Re: Problems with csla-build

    Thanks again

    Rockford Lhotka wrote:

    http://www.lhotka.net/cslanet/codegen.aspx

     

     

    From: DanEssin [mailto:cslanet@lhotka.net]
    Sent: Monday, January 05, 2009 6:34 PM
    To: rocky@lhotka.net
    Subject: Re: [CSLA .NET] Problems with csla-build

     

    Hi,
    Thanks for the info - it certainly helps. I guess I made relatively good progress with it considering I got the prebuild stuff to execute, and got the vsi to install the templates..

    Based on your guidance I will leave it at that and get to work on the basics. Any tips on the choice of a data-aware template generator?

    Thanks again,
    Dan





View as RSS news feed in XML

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems