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
28
votes
5 answers

MSBuild Community Tasks Documentation

Is it just me or is the documentation on this project really scarce? I'm trying to find how to use the FtpCreateRemoteDirectory and FTP functionality in general, but can't seem to find anything. Googling FtpCreateRemoteDirectory, only shows the…
Bertvan
  • 4,943
  • 5
  • 40
  • 61
24
votes
5 answers

How can I use msbuild to download a file?

Is there a built in way to download a file to a local directory using HTTP? I can shell out to wget or write a custom task, but I wanted to make sure there wasn't an existing way to accomplish this. Thanks in advance!
Michael
  • 1,919
  • 2
  • 16
  • 26
17
votes
3 answers

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.
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
17
votes
4 answers

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.
evilhomer
  • 8,946
  • 4
  • 24
  • 21
13
votes
4 answers

date format in msbuild script?

In my msbuild script I'm creating a zip file with year/month/day in the zip filename, but month and day are always written with no leading zero. Is there a way to add leading zero to my zip filename?
12
votes
3 answers

MSBuild Extension Pack vs MSBuild Community Tasks

I am just starting to make custom MSBuild scripts for the first time. I see that there are two standard options for extending the features: MSBuild Extension Pack and MSBuild Community Tasks. I am looking for some guidance about what the…
12
votes
3 answers

How do I update an XML attribute from an MSBuild script?

I am 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:
Dean
  • 5,896
  • 12
  • 58
  • 95
10
votes
3 answers

Intellisense for MSBuild Community Tasks doesn't work

I'm using VS 2010 RC1. I download MSBuild Community Tasks (MCT) and install it. (To give full information, I have also installed MSBuild Extension Pack) Then, in order to have Intellisense work for MCT 's tasks, I copied the file C:\Program…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
9
votes
6 answers

How do I import the msbuildcommunitytasks project from another msbuild project with a relative file path?

Please go easy I am new to msbuild and msbuildtasks! How can I set a property which represents a relative file path to a targets file which I want to import? I need relative references so it will work on all dev machines. But the target for import…
Noel Kennedy
  • 12,128
  • 3
  • 40
  • 57
9
votes
1 answer

Using XmlUpdate to set Version information from an Assembly

Using MSBuild and MSBuild Community Tasks I am trying to do something very simple: Get version information from an assembly. Update a .nuspec file with that version information. My MSBuild target looks like this:
James
  • 697
  • 5
  • 23
9
votes
3 answers

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:
Scott
  • 4,113
  • 6
  • 37
  • 49
9
votes
1 answer

MSBuild ItemGroup with condition

I don't know if ItemGroup is the right type to use. I will get 4 different booleans that will be true or false depending on choice. I would like to fill up an ItemGroup with this "strings" depending on the true or false. Is that possible or what…
8
votes
1 answer

The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild

In VS2019, I have MVC dotnet framework project and while doing dotnet build got the issue error MSB4801: The task factory "CodeTaskFactory" is not supported on the .NET Core version of MSBuild error MSB4175: The task factory "CodeTaskFactory" could…
Himan
  • 125
  • 3
  • 12
8
votes
2 answers

MSBuild Task for setting custom attribute in AssemblyInfo.cs

Is there a MSBuild task for setting custom attribute in AssemblyInfo.cs? I found AssemblyInfo task but it seems that it cannot set custom attributes, only predefined ones. I'd like to set 3 custom properties I have added into this file. Any…
Vajda
  • 1,795
  • 6
  • 39
  • 49
7
votes
3 answers

MSBuild and creating ZIP files

Here is my build script:
hs2d
  • 6,027
  • 24
  • 64
  • 103
1
2 3
9 10