all groups > visual studio .net general > october 2005 >
You're in the

visual studio .net general

group:

change the file build action for multiple files


change the file build action for multiple files Shawn Hinsey
10/20/2005 8:19:03 AM
visual studio .net general:
My application uses files with a custom extension for stored procedures. I
would like to use the standard Installer project to deploy them, but since
the default build action for these unknown file types is "none" there's no
way that I can find to get them into the installer.

Is there a way to accomplish this? I think my preferred route would be if I
could sort of define a custom build action for all files of that extension,
similarly to how .cs files are all given the "Source" action. etc.

Thanks!
RE: change the file build action for multiple files v-garych NO[at]SPAM online.microsoft.com (
10/21/2005 6:09:05 AM
Hi Shawn,

[quoted text, click to view]

Based on my understand, your problem is those files(with a custom
extension) will not be added to the corresponding setup project as the
project output files, am I right?

If so, you don't need to specify a custom build action for those files, you
can add them to the setup project's file system manually:
1. Right click the setup project node in the Solution Explorer, then select
View/Fille System in the context menu.
2. In the File System on the Target Machine treeview window, right click
the Application Folder node and select Add/Files in its context menu.
3. Pick and add those files in the Add Files dialog.


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
RE: change the file build action for multiple files Shawn Hinsey
10/24/2005 10:16:21 AM
Gary,

Thanks. That's sort of close - my problem is that there are a large number
(around 400-500) of these files, they are in a directory hierarchy, and they
may be added or removed arbitrarily throughout development, so adding them
manually isn't really an option.

Do I have any other options?

Thanks,
Shawn

[quoted text, click to view]
RE: change the file build action for multiple files v-garych NO[at]SPAM online.microsoft.com (
10/25/2005 2:42:16 AM
Hi Shawn,

Within VS2003 IDE, I am afraid you need to add the non project ootput files
and folders manually, but you can select and add multiple files in the same
time.


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button