how to build MSBuild Community Tasks source

746 views
Skip to first unread message

Anthony Valencia

unread,
Mar 6, 2013, 12:37:09 PM3/6/13
to msbuil...@googlegroups.com
I have been unable to locate the document to build the source.  The document Documentation/DevelopersGuide.txt under the git repository does not seem current.  i cannot locate MSBuildTasks.proj from the step:

- Run "msbuild MSBuildTasks.proj";

in the current downloaded zip archive.

Eugene Dorofeyev

unread,
Mar 6, 2013, 3:28:41 PM3/6/13
to msbuil...@googlegroups.com
Hello,

May be this documentation file is indeed outdated, or there's a typo. The build file of MSBuild Community Tasks is Master.proj and it is located in the root directory of the extracted zip archive.

When you run msbuild against this file, it will trigger building of solution file Source\MSBuild.Community.Tasks.sln which contains reference to C# project Source\MSBuild.Community.Tasks\MSBuild.Community.Tasks.csproj. This project produces output DLL file MSBuild.Community.Tasks.dll.
Message has been deleted

Anthony Valencia

unread,
Mar 6, 2013, 4:20:02 PM3/6/13
to msbuil...@googlegroups.com
Thanks!  Now i am getting the project to build up to the following point:

Version:
  C:\Program Files (x86)\Git\bin\git.exe rev-parse --verify --short HEAD
  fatal: Needed a single revision
C:\Users\AValencia\Downloads\msbuildtasks-master\msbuildtasks-master\Master-helper.proj(53,5): error MSB6006: "git.exe" exited with code 128.
Done Building Project "C:\Users\AValencia\Downloads\msbuildtasks-master\msbuildtasks-master\Master-helper.proj" (Build target(s)) -- FAILED.

Done Building Project "C:\Users\AValencia\Downloads\msbuildtasks-master\msbuildtasks-master\Master.proj" (default targets) -- FAILED.

when i try to run:
C:\Program Files (x86)\Git\bin\git.exe rev-parse --verify --short HEAD

alone i get,
fatal: Needed a single revision

Eugene Dorofeyev

unread,
Mar 6, 2013, 4:56:19 PM3/6/13
to msbuil...@googlegroups.com
Anthony,

I have no idea what is this error about.

Did you try to build it from unzipped archive you downloaded? I guess that in this case you need to clone git repository from github, and then try building from local repo. This git command is probably trying to retireve commit hash which in your case is unavailable, because there's no such information in unzipped content.

Also, what exactly are you expecting to get by building against Master.proj? This file does a lot of things, and is probably used mainly by project maintainers. For you local needs you may probably just open solution file with Visual Studio, or run msbuild command against solution file only.
Message has been deleted

Anthony Valencia

unread,
Mar 7, 2013, 5:33:21 PM3/7/13
to msbuil...@googlegroups.com
Building the solution works well.  thanks!
Reply all
Reply to author
Forward
0 new messages