Is there an msbuild-specific discussion group? Also, is there an msbee
discussion group that is active?
Is there a good resource for info about using
Microsoft.Build.BuildEngine.Engine class? A lot of msbuild topics are
about using msbuild.exe from the command line, but I need to know more
about using Engine class members.
What I want to know about is how to set properties for the BuildEngine
object - the same properties that you can set via the command line
following msbuild.exe.
I know I can set the binpath and a couple other exposed properties.
I know I can set file logging properties via the FileLogger class,
including setting the Verbosity level via the logger's Verbosity
property, and the filename of the log file via setting the logger's
Parameters string value = "logfile=filename.log" and using the Engine
class' RegisterLogger method.
But that is not enough for me. I need to set other parameters. Heck,
I might even want to set the name of a parameters file (.rsp) that the
build engine should use to get other parameters. I can do that with
msbuild.exe @paramfile.rsp, but how do I pass the paramfile to the
Engine class so it will be used when I execute the
Engine.BuildProjectFile method?
I am wondering if I can use GlobalProperties for this purpose, if so,
what is the code syntax to create properties and add them to a property
group and assign to the engine's GlobalProperties collection? Can you
provide an example?
BTW, I want to use some MSBee properties such as TargetFX1_1=true and
CustomAfterMicrosoftCommonTargets=myfile.targets. I know I can use
"/p:TargetFX1_1=true" etc on the command line but I want to use the
BuildEngine Engine class' BuildProjectFile method, so I need a way to
pass these parameters/properties to the build engine.