473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

MSBuild BuildEngine.Engine and MSBee Question

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.

Jan 10 '07 #1
1 3770
"Divided Sky" <pu****@appelyx.comwrote in message
news:11*********************@77g2000hsv.googlegrou ps.com...
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.

Post your Msbuild and related questions to:
http://forums.microsoft.com/MSDN/Sho...ID=27&SiteID=1

Willy.

Jan 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: minorguy | last post by:
I have a general question about MSBuild (which I know little about so far) and I hope this is the right newsgroup. I can read the reference documentation about MSBuild, but it's not really telling...
3
by: jrett | last post by:
I've got a source tree with over 100 projects, some depending on others and I'd like to set this up on an automated nightly build, or where devs can do private builds of the entire source tree to...
1
by: Joe | last post by:
Hi anyone use the BuildEngine Class I cannot get code from MSDN to compile. I get the following error. I am trying to us it to parse csproj file thanks at line engine = new...
0
by: jrett | last post by:
I've got a handfull of .NET 1.1 solutions each with multiple ASP.NET web projects and dependencies on one another. I'm trying to automate the build process here at work and I've initially...
2
by: Daniel Knöpfel | last post by:
Hi all I need to adapt an Msbuild script to compile a visual studio 2005 solution (including several projects and a website). The application is written in C# and using .NET 2.0. Due to late...
2
by: AdrianDev | last post by:
Hi, Is MSBuild.exe available for Visual Studio 2003 projects using .NET1.1 and if so where is is available from? thanks,
0
by: bill gates | last post by:
I was trying to use msbee to build an old project. I don't want to upgrade to dotnet2.0. Is there any way to get this to compile using DevStudio 2005 using dotnet1.1. ? Build FAILED....
0
by: Mark W. Schumann | last post by:
Hi, all. I've been working with Visual Studio 2003 for a long time but am upgrading now to VS2005. I have an existing (C#) Web Service project that still needs to work with .NET Framework 1.1. ...
7
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.