#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
|
|