Hi all:
How do I capture/read DOS input for use in MsBuild?
EDITED for clarification
Currently I have 2 files. One batch file, the other is the core.msbuild file which contains the msbuild stuff. I want to be able to capture an extra user input e.g. an output directory, from the windows command prompt (when the build file is execute...
We are using MSBuild to run our build which compiles and outputs a number of .NET projects/assemblies. Now we are faced with the need to also include a java version of on of our assemblies and are unsure how we should go about integrating the building of this java source into MSBuild.
There is always the option to shell out to a command...
We have a powershell build script that calls out to other scripts that is giving me trouble under Windows 7 64 bit. It works fine under XP. I've run set-executionpolicy to RemoteSigned (and also tried it with Bypass and Unrestricted). I can pull the command line from the error message and run it myself and it all runs fine.
Build err...
I need a list of changesets (or Work Items) that were made betweend builds (I can label builds if its necessary).
I need that list for our test team (and to publish 'changelist')
Is MSBuild task able to retrieve that list and save as file (then I can process that list further.
Or maybe I need to connect to TFS from C# code and retrieve ...
I have a custom MSBuild task, which processes a set of files and returns a modified subset of this. Basically, I just create a new ITaskItem array out of the input, skipping some items.
However, the RecursiveDir metadata disappears when this result set is returned to MSBuild! It is still with the correct values at the end of my custom t...
I've got a solution with two projects, A and B. A references an external dll C.dll from an external /lib folder.
When I build B, C.dll is ending up in its /bin folder.
B does not reference A or C.dll (but A does reference B).
There is no mention (reference) to/of C.dll anywhere in project B, why is it in its /bin? How can I determine...
I have tried adding <Message> elements to tasks in a VS project file, in order to debug the build process. However, the elements have no effect on the text that is written to the VS output window.
Is there a way to write messages to the VS output window, by adding markup to the project being built?
...
I'm trying to copy multiple files from a deep source tree that have the same file name. For example TestResults.trx. I want to copy them into a single directory (i.e. flattened). Problem is they just overwrite each other and I just end up with a single TestResults.trx in the directory.
<ItemGroup>
<SilverlightTestResults Include=".\...
Just jointed a new project which they are using VC#2008 to build an application. There are several components and many files under one project now. I was asked to setup a build machine to start dailly build. The frist thing I was told to do is write a batch file to call csc.exe to create an executable manually without the VC#2008 install...
I have the following build script, which I run with MSBuild:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Compile" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion ="3.5">
<PropertyGroup>
<BuildDir Condition=" '$(BuildDir)'==' ' ">$(BaseDir)/build</BuildDir>
<ProdDir >$(BuildDir)/prod</...
I have been stuggling to get the MSBuild to successfully build my .dproj file for the last few days on a build machine.
First, I needed the EnvOptions.proj file from the developer's machine, which got me clear of the missing system.pas file, but now I am getting a compile error for a missing .dcu
C:\Program Files\CodeGear\RAD Studio...
I'd like to automatically update the AssemblyFileVersion on each build, though not the AssemblyVersion.
Is there any easy way that don't require every developer to install the MSBuild community tasks ?
(I'd basically like AssemblyVersion("1.0.*") but for the AssemblyFileVersion )
...
Hi,
I am writing an msbuild file to run tests using galio.Now, I need to give
<UsingTask AssemblyFile="..\dll\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
This does not work, when I give full path c:\program file\galio\bin,it works.But, I want to give path to my dll folder in source control where Gallio.MSBuildTasks.dl is located.Ho...
I would like my MSbuild build script to be able to detect which server it is running on, if it is a local developers machine then run the targets that install the results on the local machine, if it is running on the build server then run the target that installs on the remote staging server.
What is the best strategy to achieve this?
...
If you publish a Clickonce application from within visual studio, it will generate publish.htm .This seems to be Visual Studio generated, and not part of the publish target if the app is built with msbuild from a command line.
How do people handle automatic(e.g. as part of a build server) clickonce publishing, including a publish.htm ?
...
I have a teambuild setup that builds a solution that has several projects in it. When the build is done all the binaries are lumped in to a single location.
Is there a good way to get these to go in project specific folders? (Similar to what you get when you build in Visual Studio?)
Example:
MySolution
|
+-> Project 1
|
...
I have a build process which takes my VS 2008 .NET 2.0 ASP.NET project and builds it using MSBuild. The project contains ASPX files, plus a web service, and also connects to another web service ;)
All seems to work well except MSBuild puts the *.XmlSerializers.dll assembly file into the folder _PublishedWebsites\MySite rather than in _P...
Hi,
I am using an MSBuild build file to build and test my application. As part of the process I would like to change the path and name of the log file (setting in app.config). What is the easiest way to do it (I have the xpath to the value that needs to be changed)?
...
I'm looking for a db script tool which can do the following:
Create "create-scripts" for each table in the database and place them in separate files. Note: these files should not contain relational constraints.
Create scripts for relational constraints (as one file or many, doesn't matter)
Create insert scripts for populating tables.
...
I'm trying to set up my environment for developing, debugging and deploying Windows Desktop Gadgets. I've hit a bit of a roadblock in my project, where I can't run a build on my gadget when the configuration is set to "Debug". If the configuration is set to "Release", the build goes through the following custom tasks:
Copy gadget con...