Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Registering multiple .NET files? (https://www.kinook.com/Forum/showthread.php?t=1020)

tyacko 04-25-2005 12:49 PM

Registering multiple .NET files?
 
Hi.

I want to register multiple .NET files within my build process. They are all located within one folder, so I thought that I could use the following steps

1. 'Process Files'
2. 'Run command'

The reason I'm using Run command is that it doesn't look like there is a way to register (using regasm) a .NET dll using a Visual Build step like you could with VB6 dlls (using the COM Register step).

My problem is this, when I try to register my .NET dlls as follows:

%DOSCMD% call "%DOTNET_DIR%\regasm.exe" %PROCFILES_FULLPATH%

the macro isn't populated with the file from the 'Process Files' step.

So, this leads me to two questions:
1. Can the 'Process Files' macros be used within a 'Run command' step?
2. If not, is there some other way to do this programmatically rather than creating run command steps for every .NET dll?

Any help would be greatly appreciated.

Thanks,
tyacko

kevina 04-25-2005 01:32 PM

Yes, the Run Program action (or any other action type) can be used in conjunction with a Process Files step (other than a nested Process Files step, which is not allowed).

My guess is that you have the "Process once for each folder" option checked, which will only "fire" once per folder containing one or more matching files (and won't populate the PROCFILES_FULLPATH macro). Your usage will need this checkbox un-checked.


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


Copyright © 1999-2023 Kinook Software, Inc.