msbuildcommunitytasks

"File Not Found" in MSBuild Community Tasks -- Which File?

I'm trying to use the VssGet task of the MSBuild Community Tasks, and the error message "File or project not found" is beating me with a stick. I can't figure out what in particular the error message is referring to. Here's the task: <LocalFilePath Include="C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\As...

MSBuild ReadLinesFromFile all text on one line.

When I do a ReadLinesFromFile on a file in MSBUILD and go to output that file again, I get all the text on one line. All the Carriage returns and LineFeeds are stripped out. <Project DefaultTargets = "Deploy" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" > <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MS...

How to email multiple address with MSbuild

I have a target in my build script that will send an email with an attachment detailing svn changes for a module. This works if I hard code a single email address however I now want to email multiple developers and the script is failing. Below is the code <Target Name="MailInformationUpdate" DependsOnTargets="ZipArtifact" Condition=...

How best to update an XML node in MSBuild

I have been using the Tigris community tasks to update various AppSettings keys using the XMLUpdate task. Now, however I want to add a node to the system.net section to set up the proxy. I declared a property <PropertyGroup> <proxy>&lt;defaultProxy&gt; &lt;proxy usesystemdefault="False" proxyaddress="http://IPADDRESS:PORT" /&gt;...

Pre-build MSBuild task to update AssemblyInfo not in sync with built exe

I am using a pre-build task in Visual Studio 2008 that invokes msbuild: C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe $(MSBuildProjectDirectory)\version.targets /p:Configuration=$(ConfigurationName) Inside version.targets, I am updating the AssemblyInfo.cs file to replace version information: <FileUpdate Encoding="ASCII...

MSBuild MSBuildCommunityTasks Task Time

I have a MSBuild project and I want the current date to be added to a zip file that I am creating. I am using the MSBuildCommunityTasks. '' '<'Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"'/>' On the website http://msbuildtasks.tigris.org/ I can see a task called time. I hav...

Master pages missing from Web Deployment Project output

We seem to be having an issue when running our deployment project in that, when it compiles, it seems to miss our master pages from the output. Is there any way to 'force' the project to include .master files, either through editing the .wdproj file, or via another method? Also, I've been reading up on the MSBuildTasks community projec...

MSBuild: adding/copying empty folders via Zip/Copy task

Hi, I'm trying to create copy/zip a pre-compiled site which is contains empty folders(after pre-compilation). Looks like empty folders is not included to the list of items after CreateItem task. How I can care of empty folders? thanks ...

How do I update XML attribute with msbuild

I am currently using Msbuild and Msbuild.community.tasks using XMLUpdate and XMLMassUpdate to update various sections of my Web.Config one thing has me stumped though. If I have: <configuration> <nlog throwExceptions="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

AppController error: Index out of bounds

I overrode the following target in my TFS build file to run various tasks that set up databases, import data, etc., etc. in Visual Studio 2008 - the aim was to stop only the website associated with an application pool on the server instead of stopping the entire W3SVC service on the entire machine (see alternate task for example): <Targ...

XmlMassUpdate - how NOT to add xmlns ?

I'm using Nightly build 1.3.0.477 of MSBuild Community Tasks and I'm having problem with XmlMassUpdate. Here's what I want to do: for each project, if it does not reference CommonAssemblyInfo.cs file, add that reference. I'm doing it like this: <Message Text="Path is $(MSBuildCommunityTasksPath)" Importance="normal" /> <!---->...

How to get a property from a task in a TFS build?

I made a custom task in my TFS build to examine my project's GlobalAssemblyInfo.cs file in order to extract an attribute (AssemblyInformationalVersion to be exact) in order to use its value in naming a zip file that I make with the build. <UsingTask TaskName="GetAssemblyInformationalVersion.GetAssemblyInformationalVersionTask" ...

Cruise Control.NET File Merge NUnit File - Getting XmlException

I am new to Cruise Control. I'm running a project where I use an MSBuild file to build my project. I'm using the NUNit task in the MSBuild Community Tasks project to run all of my unit tests and output an xml file with the test results with this command: <NUnit Assemblies="@(OutputFiles)" WorkingDirectory="$(UnitTestResultsLocation)" ...

Zip task of MSBuild Community Tasks changes file attribute

I have found that creating a zip file using the Zip task provided by MSBuild Community Tasks changes (or rather, deletes) any file attributes of the files being zipped. Here is one of my calls to the Attrib task to make DLLs inside a folder have the read-only attribute: <Attrib ReadOnly="true" Normal="true" Files="@(DLLsToReadOnly)" /> ...

MSBuild.Community.Tasks.Attrib on x64 machine failing

I'm having an issue with the Attrib task from the MSBuild Community Tasks Project when running on a 64 bit build machine. I've put together this small test project to show what the problem is: <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <Import Project=...

How can I use MSBuild to export another project as a Visual Studio template project?

Here's what I'm trying to achieve. I have a number of projects in C# and VB which I wish to export as template projects as part of my automated build process. Exporting templates is easy to do interactively, but I need to do it as part of my automated build process. Further, the template projects must actually be built prior to exporting...

CSC task in Msbuild aborts with namespace errors

I have attempted the following: <!-- Specify the inputs by type and file name --> <ItemGroup> <CSFile Include = "$(MSBuildProjectDirectory)\..\Mine.cs"/> </ItemGroup> <Target Name = "Compile"> <!-- Run the Visual C# compilation using input files of type CSFile --> <Csc Sources="@(CSFile)" /> <!-- Log the file name o...

How to create a web site with an application using MSBuild Extension Pack

What is the correct way to create a web site using the MSBuild Extension Pack? I'm trying to use the MSBuild Extension Pack to create a web site using the following target. Unfortunately I don't have the syntax correct. This target will throw an exception saying "InvalidOperationException: The specified path already exists.\r". This is...

Is it possible to access files stored in TFS’s source control from the TFSBuild.proj file before the “Get” build task?

I’m using a few custom MSBuild tasks that are checked into source control. I would like to import these tasks into my TFSBuild.proj file that TFS uses to build the project. Right now I have created a 2nd project file that includes all of the uses of these custom tasks. I do this because I can run this project file after the workspace has...

Xslt task not working as expected

I have an XSLT transform that I developed in VS. It works great when I use VS to run it (via XML->Show Xslt Output). However, when I execute it via the MsBuildCommunityTasks Xslt task I get wildly different results. Specifically, the output is only the contents of a handful of elements I don't even reference in my XSLT. I guess the def...