views:

387

answers:

1

Can a Visual Studio 2008 custom tool be passed additional parameters from the custom tool property grid in VS?

A: 

Yes and no. You'd fix this by adding the custom tool as a custom build rule instead. The (built-in) build rule for C++ files causes the property sheets for C++ files; the build rule for IDL files causes those property sheets. Your own custom build rule can define its own property sheets.

MSalters
Does this work for C# too?
SDX2000
C# is the language, not the IDE. So, in Visual Studio, there is a built-in build rule for C# (.cs) files.
MSalters
Ok yes, that was a stupid question. The real question would be how do I add custom build rules from within visual studio?
SDX2000
Hmm - seems that the .Net term is a custom build *action*, not rule. And this is done behind the scenes through MSBuild. C++ is the odd one out.
MSalters