msbuildcommunitytasks

MSBuild, Extension Pack and TfsVersion

冷暖自知 提交于 2020-01-05 14:11:32
问题 I am trying to implement what I see in this post: TFS and msbuild version number with last changeset. That is, I am trying to get the last Changeset number at build time so I can use it in an AssemblyVersionInfo.cs. I am using VS 2008 and TFS 2008. I have installed MSBuild Extension pack v3.5.9.0 (x64). It is in C:\Program Files\MSBuild\ExtensionPack. Here is my MSBuild project: <Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

MSBuild, Extension Pack and TfsVersion

穿精又带淫゛_ 提交于 2020-01-05 14:11:28
问题 I am trying to implement what I see in this post: TFS and msbuild version number with last changeset. That is, I am trying to get the last Changeset number at build time so I can use it in an AssemblyVersionInfo.cs. I am using VS 2008 and TFS 2008. I have installed MSBuild Extension pack v3.5.9.0 (x64). It is in C:\Program Files\MSBuild\ExtensionPack. Here is my MSBuild project: <Project ToolsVersion="3.5" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

Pass list item to Properties when calling reusable msbuild target

坚强是说给别人听的谎言 提交于 2019-12-24 03:07:28
问题 I'm trying to create a reusable Target in msbuild, following the basic model outlined in How to invoke the same msbuild target twice? I'm stuck trying to pass a property that I want interpreted as a list. I haven't found an example online that deals with this situation. As I understand it, the problem is that Properties is already treated as a list item, so it doesn't like having a list item passed in as well. Is there a way to get msbuild to pack and unpack the list correctly here? Msbuild

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

梦想的初衷 提交于 2019-12-21 03:46:07
问题 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: <configuration> <nlog throwExceptions="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <targets> <target name="file" xsi:type="File" fileName="${logDirectory}\SomeLog.log" layout="${message}"/> </targets> </nlog> </configuration> and I try to replace the

TeamCity's AssemblyInfo patcher's number format

岁酱吖の 提交于 2019-12-19 02:42:15
问题 I once had TeamCity + WiX + MSBuild Community Tasks working. Now that I've upgraded to WiX 3.5, I can't remember how I had configured it. :) As I was poking through TeamCity, I came across the "AssemblyInfo Patcher". I thought, "Great! This will make my life much easier!". I used %build.vcs.number.1% for the format and built my installer. While the patcher did pull in the vcs number, it used it for the major number in the version. So instead of 1.0.0.xxxx , it made the version xxxx.0.0.0 . I

Does possibility to specify enabled protocols for web-application in IIS exist in MSBuild?

柔情痞子 提交于 2019-12-12 13:21:54
问题 I create webdirectory in IIS, using MSBuild task: <WebDirectoryCreate VirtualDirectoryName="$(VirtualDirectoryName)" VirtualDirectoryPhysicalPath="$(VirtualDirectoryPath)" AccessExecute="true"/> Now I look for possibility to specify enabled protocols (http, https, net.tcp) for this webdirectory using MSBuild. Any suggestion? 回答1: Had no luck to find any custom MSBuild task to handle above described action. Anyway I can still use appcmd.exe in order to do that: <Exec Command='%systemroot%

Can't find xsd.exe in the path during MSBuild Community Tasks BeforeBuild step in Visual Studio

為{幸葍}努か 提交于 2019-12-12 06:59:27
问题 I am using MSBuild Community Tasks to run Xsd.exe as part of my build in Visual Studio as thus: <Import Project="$(SolutionDir)Common.targets" /> <PropertyGroup> <MSBuildCommunityTasksPath>$(SolutionDir)TeamBuildTypes</MSBuildCommunityTasksPath> </PropertyGroup> <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" /> <UsingTask TaskName="XSD" AssemblyFile="$(VCTargetsPath)$(CPPTasks)" /> <Target Name="BeforeBuild"> <!--Exec Command="'$(DevEnvDir)..\Tools\vsvars32.bat

MsBuild Copy output and remove part of path

馋奶兔 提交于 2019-12-11 07:36:15
问题 I have an MsBuild project which builds various solutions and then copies the output of Web Deployment Projects into a destination folder with two sub folder as follows: The WDP output folders are copied over from the BuildFolder "Release". DestFolder/PresentationTier/MyProject.xxx0Services_deploy/**Release**/Files... DestFolder/MidTier/MyProject.xx1UI_deploy/**Release**/Files... This works but I want to remove the $(Configuration) value from the output. So the desired output folder layout is

FTP Credentials for MSBuild.ExtensionPack.Communication.Ftp

余生长醉 提交于 2019-12-11 06:36:17
问题 In my AfterBuild script I use the following method to upload the files to the deployment server: <MSBuild.ExtensionPack.Communication.Ftp TaskAction="UploadFiles" Host="localhost" FileNames="$(SomeFolder)\$(FileToUpload)" UserName="myUserName" UserPassword="myPassword" RemoteDirectoryName="/" /> How can I load these credentials from a text file or an external source? What are the alternatives? I don't want to hard-code ftp credentials into my cproj files. I used GranadaCoders method to answer

MSBuild Community Tasks Documentation [closed]

筅森魡賤 提交于 2019-12-09 07:35:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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 project's source code... 回答1: The documentation is like you say really