Questions tagged [msbuildcommunitytasks]

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.

https://github.com/loresoft/msbuildtasks

145 questions
3
votes
2 answers

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…
2
votes
1 answer

Msbuild WebDirectorySetting doesn't set enabledProtocols setting

I trying create iis7 web application by msbuild community tasks and set property "Enabled Protocols" to "http,net.tcp", but this property doesn't set (I am checking in inetmgr):
tbicr
  • 24,790
  • 12
  • 81
  • 106
2
votes
1 answer

svncommit msbuild task fails because the command line is too long

I'm using the svncommit task from the MSBuild Community Tasks Project. Unfortunately I've got a fairly large bunch of files to commit & it fails with this error: The command-line for the "SvnCommit" task is too long. Command-lines longer than…
Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165
2
votes
0 answers

Log4Net configuration error causing MSBuild to fail

I'm trying to set up a CI environment at a new client site using Team City and MSbuild and the MS build community extensions. Compiling the code seems to work fine. However, when I run my unit tests I get the following error coming from the NUnit…
dalcantara
  • 1,613
  • 2
  • 21
  • 35
2
votes
2 answers

referencing msbuild community tasks through a relative path

I have spent the last 2 days trying to figure out how to use the SvnInfo task in the MSBuild Community Tasks pack relatively. It works on my machine because I used the installer. Though surely I should be able to make it work with a relative path.…
Kevin Donde
  • 912
  • 3
  • 15
  • 32
2
votes
1 answer

How do I specify a custom build file in Visual Studio

My company uses the MSBuild Community Tasks to provide custom build scripts to our projects. Today, I created a new project and built out a custom build script to run it. I was able to set up builds on TFS, so I know my script works correctly, but…
Jeffrey Lott
  • 7,171
  • 6
  • 28
  • 28
2
votes
1 answer

Is there a way to easily output the current time in MSBuild (version 3.5)?

I'd like to output the current time (preferably before every task or at minimum when starting/completing every target) when invoking MSBuild 3.5. I tried creating a target that I would continually call that looks like:
JackAce
  • 1,407
  • 15
  • 32
2
votes
1 answer

Using XmlMassUpdate to update all appSettings

I want to use the XmlMassUpdate task in MSBuild to update appSettings in all app.configs. The problem I have is that some of the app.configs don't have an appSettings element, and I can't get XmlMassUpdate to skip those. Here's what I've got so…
Ray
  • 45,695
  • 27
  • 126
  • 169
2
votes
1 answer

MSBUILD RegexReplace get all text till 2nd last dot from end

I am working with ToolsVersion="3.5". I wanted to match from end of the string till 2-nd last dot (.). For Example for given value 123.456.78.910.abcdefgh I wanted to get 910.abcdefgh only. I tried with
Posto
  • 7,362
  • 7
  • 44
  • 61
2
votes
1 answer

MSBuild: How to access a property value set by a Target during the Post Build event in Visual Studio

I have a PostBuild event which invokes a batch file and I need to pass in a particular parameter into the batch file. This parameter is populated through another task which is invoked through a Target configured to run before the PostBuildEvent. I…
2
votes
1 answer

Cake Build Suppress MSBuild Warnings

I am trying to build my .net solution using cake build file. I am trying to use the documentation on the website here My current msbuild task looks like this: MSBuild("./solution.sln", new MSBuildSettings() …
2
votes
2 answers

XmlMassUpdate Multiple Values (MSBuild Community Tasks)

Say you have a config file with the following settings: value A value B value C For the life of me, I can't figure out how to get XmlMassUpdate to inject the…
Derek Hunziker
  • 12,996
  • 4
  • 57
  • 105
2
votes
2 answers

MSBUILD Dynamically Create Config XML Dotfuscator

I am trying to obfuscate bunch of files in a directory and every build there are more and more files being generated. I would like to know if there is a way I can dynamically create the Dotfuscator configuration xml file using a MSBUILD task that…
2
votes
0 answers

Multiple items cannot be passed into a parameter of type "Microsoft.Build.Framework.ITaskItem

I have a scenario where i need to Zip two different folders in different paths to a single Zip file using MSBuild.ExtensionPack.Compression.Zip. Is that possible, if so how i can achieve it. Ex: C:\Folder 2 and D:\Folder 1 , to a single zip file…
Vijay
  • 21
  • 1
2
votes
1 answer

How to output a timestamp in MSBuild

I am using MSBuild/yuicompressor to combine and minify JavaScript. As part of this process, I want to modify my script references so they have a timestamp in the querystring. That way, a user always gets the non-cached version of the file when a new…
frankadelic
  • 20,543
  • 37
  • 111
  • 164