msbuildcommunitytasks

MSBuild and creating ZIP files

旧巷老猫 提交于 2019-12-01 04:14:58
Here is my build script: <?xml version="1.0" encoding="utf-8" ?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/> <PropertyGroup> <!-- Path where the solution file is located (.sln) --> <ProjectPath>W:\Demo</ProjectPath> <!-- Location of compiled files --> <DebugPath>W:\Demo\bin\Debug</DebugPath> <ReleasePath>W:\Demo\bin\Release</ReleasePath> <!-- Name of the solution to be compiled without the .sln extension --> <ProjectSolutionName>DemoTool</ProjectSolutionName> <!-- Path

MSBuild MSBuildCommunityTasks Task Time

為{幸葍}努か 提交于 2019-11-30 06:42:40
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 the CommunityTasks Helpper --> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> On the website http://msbuildtasks.tigris.org/ I can see a task called time. I have not been able to find doc on how to use Time. In msbuild 4 you can now $([Namespace.Type]::Method(..parameters…)) $([Namespace.Type]::Property) $([Namespace.Type]::set_Property(value)) so I am using $([System.DateTime]::Now.ToString(

MSBuild MSBuildCommunityTasks Task Time

£可爱£侵袭症+ 提交于 2019-11-29 06:24:21
问题 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 the CommunityTasks Helpper --> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> On the website http://msbuildtasks.tigris.org/ I can see a task called time. I have not been able to find doc on how to use Time. 回答1: In msbuild 4 you can now $([Namespace.Type]::Method(..parameters…)) $([Namespace

tf.exe on tfspreview

青春壹個敷衍的年華 提交于 2019-11-29 04:41:13
I need to get the ChangeSetId in tfspreview for our continuous integration. I just need this single number nothing else. I tried all possible MSBuild tasks that I could find, but there is always another smaller issue stopping me. For MSBuild.ExtensionPack.Tfs.TeamBuild I get : Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and for TfsClient -task in community-pack (which is generating following exec: tf.exe history . /StopAfter:1 /noprompt /format:detailed /recursive ) I get: The specified task executable

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

非 Y 不嫁゛ 提交于 2019-11-29 02:07:40
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 is trying to use the relative file path internally, which won't work as it is re-evaluated relative to the imported target! Effectively I am trying to work around the documented behaviour of imported projects: All relative paths in imported projects are interpreted relative to the directory of the imported project. Therefore, if a project file is

MSBuild ReadLinesFromFile all text on one line

纵饮孤独 提交于 2019-11-28 07:39:05
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\MSBuild.Community.Tasks.Targets"/> <ItemGroup> <MyTextFile Include="$(ReleaseNotesDir)$(NewBuildNumber).txt"/> </ItemGroup> <Target Name="ReadReleaseNotes"> <ReadLinesFromFile File="@(MyTextFile)" > <Output TaskParameter="Lines" ItemName="ReleaseNoteItems"/> <

tf.exe on tfspreview

倖福魔咒の 提交于 2019-11-27 22:26:19
问题 I need to get the ChangeSetId in tfspreview for our continuous integration. I just need this single number nothing else. I tried all possible MSBuild tasks that I could find, but there is always another smaller issue stopping me. For MSBuild.ExtensionPack.Tfs.TeamBuild I get : Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and for TfsClient -task in community-pack (which is generating following exec: tf.exe

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

一世执手 提交于 2019-11-27 16:25:21
问题 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 is trying to use the relative file path internally, which won't work as it is re-evaluated relative to the imported target! Effectively I am trying to work around the documented behaviour of imported projects: All relative paths in imported projects

MSBuild ReadLinesFromFile all text on one line

妖精的绣舞 提交于 2019-11-26 22:58:06
问题 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\MSBuild.Community.Tasks.Targets"/> <ItemGroup> <MyTextFile Include="$(ReleaseNotesDir)$(NewBuildNumber).txt"/> </ItemGroup> <Target Name="ReadReleaseNotes">