Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-21-2012, 09:00 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Creating Custom Actions for VBP 8

In previous version I have a custom action that I pass a list of labels to and a custom VB dialag box appears that displays that list in a drop down, once selected it updates a macro in the calling script and continues. This works fine in Version 7, I just installed Version 8 on a new workstation and I want to upgrade that action to work with the newer version of Visual Build. Now that I got the background out, I will get to my questions:

First I want to write my action using VS2010 and Framwork 4.0 is this supported?

Second, since I have to refrence VisBuildSvr, I want to create two action one to support 32 bit and one for 64 bit. Do I need to create two seperate solutions one for each since some build machines are 32 bit only. Would I need the appropreate version of VBP installed in order to build each type?

Any suggestions would be great!
Reply With Quote
  #2  
Old 03-21-2012, 12:14 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
My testing suggests you need to target .NET 2.0 (will have to investigate further to see if it's possible to support 4.0).

If you use Any CPU for the platform, the compiled .NET action can be registered and used in 32- or 64-bit Visual Build, but I suspect that actions with a user interface will not work properly in the 64-bit edition.
Reply With Quote
  #3  
Old 03-21-2012, 12:41 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Thanks, I will give it a try an let you know
Reply With Quote
  #4  
Old 04-04-2012, 12:51 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
I am working on creating a new version, when attempting to run a BLD file that registers the DLL I get the following error from within VB8

4/4/2012 1:51:20 PM: Building project step 2 - Register DLL...
RegAsm : error RA0000 : An error occurred while writing the registration information to the registry. Administrator permissions are needed to use the selected options. Use an administrator command prompt to complete these tasks.

Process completed with exit code 100
4/4/2012 1:51:20 PM: Step '2 - Register DLL' failed
4/4/2012 1:51:20 PM: Build ended (elapsed = 00:00:00).
Reply With Quote
  #5  
Old 04-04-2012, 12:56 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
I fogot to add the acutal command line thats run, it appears to defualt to the highest framword version installed on the box. The assembly is trageting the 2.0 framwork

C:\Windows\Microsoft.NET\Framework\v4.0.30319\rega sm.exe C:\TFS\SCM\Dev\ACE.VisualBuild.Solution-DEV1\ACE.VisualBuild.SelectVersion\bin\Release\ACE .VisualBuild.SelectVersion.dll /nologo /s /codebase
Reply With Quote
  #6  
Old 04-04-2012, 01:03 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
regasm does require elevated privileges to register a COM assembly.
http://kinook.com/Forum/showthread.php?t=2258

The COM Register action use the highest installed framework version that is found for locating regasm.exe. You can override the regasm.exe on the Register tab.
http://www.kinook.com/VisBuildPro/Ma...omregister.htm
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 12:25 PM.


Copyright © 1999-2023 Kinook Software, Inc.