Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-23-2007, 09:15 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Custom Actions

I have writen a few custom actions for Visual Build. I have followed the examples for VB.Net. The example included is for VS2003 can the same code work with VS2005.

I want to keep my code current and want to upgrade to the lastest framework for my custom action.

Thanks,
Craig
Reply With Quote
  #2  
Old 08-23-2007, 12:22 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Re: Custom Actions

Quote:
Originally posted by HippyCraig
I have writen a few custom actions for Visual Build. I have followed the examples for VB.Net. The example included is for VS2003 can the same code work with VS2005.
Yes.
Reply With Quote
  #3  
Old 08-28-2007, 04:40 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
I have converted my Custom action to VS2005 and I am getting warning about not being CLS-compliant.

Below is a code snippit:
<System.Runtime.InteropServices.ProgId("ACE.Visual Build.SelectVersion")> Public Class SelectVersion
Implements VisBuildSvr.ICustomAction

Public Function BuildStep(ByVal Builder As VisBuildSvr.Builder, ByVal [step] As VisBuildSvr.IStep) As VisBuildSvr.StepStatusEnum Implements VisBuildSvr.ICustomAction.BuildStep

In the function Decleration "BuildStep", "Builder", "[step]" are underlined in the VS2005 IDE with a warning about CLS-compliant. I know I can ignore the warning and everthing compiles but I was wondering why I am getting this? I found the following on MSD that describes the warning in more detail

http://msdn2.microsoft.com/en-us/lib...y6(vs.80).aspx

Any thoughts?
Reply With Quote
  #4  
Old 08-28-2007, 05:06 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I'm not really sure. I don't get any warnings when building or in the IDE after opening, converting, and building the VBNETAction sample in VS2005 SP1. I don't see any place that the function is marked CLS Compliant.
Reply With Quote
  #5  
Old 08-29-2007, 09:00 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
I have attached the source code when you open it you should see warnings about the above error
Attached Files
File Type: zip ace.zip (130.7 KB, 1788 views)
Reply With Quote
  #6  
Old 08-29-2007, 12:30 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Remove the line

<Assembly: CLSCompliant(True)>

from AssemblyInfo.vb

or add

<CLSCompliant(False)>

in front of Public Function BuildStep(... in SelectVersion.vb.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 09:52 AM.


Copyright © 1999-2023 Kinook Software, Inc.