Questions tagged [msbuild-buildengine]
17 questions
51
votes
8 answers
how to replace string in file using msbuild?
I want to replace a string such "how r u" in file test.xml with a string "i am fine" in another file xy.xml.using regular expression in ms build.
ie i have to read string from one file(xy.xml) and replace it in another file test.xml.
so please…

Nithin
- 921
- 3
- 10
- 17
3
votes
2 answers
Microsoft.Build.BuildEngine.Engine throws error when building WPF application
I am using Microsoft.Build.BuildEngine.Engine to build a WPF application. This has been working successfully for class libraries and web applications, but now trying to use it to build a WPF application I am getting the following error:
Target…

ChrisHDog
- 4,473
- 8
- 51
- 77
2
votes
0 answers
Evaluate item defined in msbuild task via C#
I am trying to generate a directed graph (dot format) of targets that will be called with an MSBuild project file path as an input. This is same as grand-ui from ggtools.net (except that I'm trying for a read only image to start with).
There are 3…

Parag Doke
- 863
- 7
- 17
2
votes
2 answers
Can you use multiple working folders with TFS?
In projects in which the workspace has only one working folder, my build scripts work great. Now that I am working with a new project that required 2 working folders, all of the checkout and checkin commands of my previous script fail, with no files…

Shire
- 639
- 1
- 14
- 28
2
votes
2 answers
Error on using custom build task in Microsoft Build Framework
I have implemented a custom BuildTask and set the build engine in it.
But while executing the code, I am getting this exception
Method not found: 'Void Microsoft.Build.Utilities.Task.set_BuildEngine(Microsoft
.Build.Framework.IBuildEngine)'.
What…

Varun Mahajan
- 7,037
- 15
- 43
- 65
2
votes
1 answer
How do I publish a ClickOnce application using Microsoft.Build.BuildEngine
I have a WPF, ClickOnce application that I am trying to build using the Microsoft.Build.BuildEngine.
I believe my question actually boils down to "how do I do the command line /target:publish using Microsoft.Build.BuildEngine"?
I've tried the…

ChrisHDog
- 4,473
- 8
- 51
- 77
2
votes
2 answers
Build and Publish (ASP.NET Web Application) using Microsoft.Build.Engine using c#
I want to Build a VS2008 project (ASP.NET Web Application) and then publish using Microsoft.Build.Engine.
I have so far successfully managed to BUild the project.
But i am unable to Publish it to a specified directory.
My build method is:
private…

M. Ali Iftikhar
- 3,125
- 2
- 26
- 36
1
vote
1 answer
Edit xml using regular expression in msbuild?
i am working with msbuild script.i want to comment particular line using regular expression in msbuild .pls help me to solve this issue??please give one example other than editing version using regular expression

Nithin
- 921
- 3
- 10
- 17
1
vote
2 answers
MSBuild: define subprojects build configuration in BuildEngine
I'm using BuildEngine as a step to create a one click build environment. The code is the following:
Engine engine = new Engine();
FileLogger logger = new FileLogger { Parameters = @"logfile=C:\builds\build.log" };
engine.RegisterLogger(logger);
var…

dcarneiro
- 7,060
- 11
- 51
- 74
1
vote
2 answers
Passing MsBuild Command Line Arguments with BuildEngine
I have the following code to build a project from another C# app:
var buildEngine = new Engine();
buildEngine.RegisterLogger(new ConsoleLogger());
var success = buildEngine.BuildProjectFile(pathToCsProjFile);
if(!success)
{
Log.LogIt("On Noes!…

ryber
- 4,537
- 2
- 26
- 50
1
vote
4 answers
Microsoft.Build.Engine Error (default targets): Target GetFrameworkPaths: Could not locate the .NET Framework SDK
I am writing a webservice, that when called should build a C# project. I'm using the framework 2 reference, Microsoft.Buld.Engine and Microsoft.Build.Framework. If you look under the '' section .csproj file, by default it has:

Yo Momma
- 8,581
- 7
- 34
- 45
1
vote
1 answer
Getting Build URi or Build number of the last build from MSBuild
I am trying to create a custom task for MSBuild so that it will send an email to the users that sais that a new version is up on the test server.
I go the email part done, what i would like to do is add the work items that are included in this…

MarkyMarc
- 45
- 6
1
vote
0 answers
How do I control where the output of a ClickOnce application is built (using Microsoft.Build.BuildEngine) to?
I have a ClickOnce WPF application that I am using Microsoft.Build.BuildEngine to build. Everything appears to be working correctly, but when doing a targeted build to publish the application it is putting the published output to…

ChrisHDog
- 4,473
- 8
- 51
- 77
0
votes
1 answer
how to do looping in msbuild to increment variable value?
i want to increment value N where n E {1...5}.how can increment value of N using msbuild.because i want to do same operation 5 times.
so can i do looping in ms build ?please help me to solve this problem

Nithin
- 921
- 3
- 10
- 17
0
votes
1 answer
documentation on how to use MSBuild Namespace in C# Source code
I am looking for some simple answers on how to use funktionality from MSBuild in a c# program. The native documentation seems to be completely useless, because I only find information like:
ConsoleLogger.ApplyParameter
Applies a parameter to the…

traveller
- 189
- 1
- 2
- 10