Problems with csla-build

Problems with csla-build

Old forum URL: forums.lhotka.net/forums/t/6071.aspx


DanEssin posted on Wednesday, December 31, 2008

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

DanEssin replied on Wednesday, December 31, 2008

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

RockfordLhotka replied on Monday, January 05, 2009

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

DanEssin replied on Monday, January 05, 2009

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

RockfordLhotka replied on Monday, January 05, 2009

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


DanEssin replied on Monday, January 05, 2009

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





Copyright (c) Marimer LLC