msbuildcommunitytasks

Can't get MSBuild Community Task RegexReplace to work

。_饼干妹妹 提交于 2019-12-07 17:33:56
问题 I'm trying to copy a bunch of files whose names begin with the prefix DR__ , but the copies must have that prefix removed. That is, DR__foo must be copied as foo . I'm trying this, which is based in the example provided in the documentation (the .chm): <Target Name="CopyAuxiliaryFiles"> <MakeDir Directories="$(TargetDir)Parameters" Condition="!Exists('$(TargetDir)Parameters')" /> <ItemGroup> <ContextVisionParameterFiles Include="$(SolutionDir)CVParameters\DR__*" /> </ItemGroup> <Message Text=

MSBuild ItemGroup with condition

丶灬走出姿态 提交于 2019-12-07 01:00:41
问题 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 should I use? Example Anders = true Peter = false Michael = false Gustaf = true My ItemGroup should then have Anders and Gustaf. Is that possible or how should I solve that? 回答1: Since you have a bunch of items, it would be better to store them in an

msbuild fileupdate setup project

核能气质少年 提交于 2019-12-06 11:56:26
问题 I'm looking to use the fileUpdate task from msbuildtasks.tigris.org to modify image src's as part of our web setup project so that they will point to a static img sub domain (or later a CDN) I can run a task within a given project with: <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> <Target Name="AfterBuild"> <FileUpdate Files="basic.css" Regex="/images/([^\)]*)" ReplacementText="http://img.domain.com/images/$1" /> </Target> However, I dont

Can't get MSBuild Community Task RegexReplace to work

旧城冷巷雨未停 提交于 2019-12-06 00:39:35
I'm trying to copy a bunch of files whose names begin with the prefix DR__ , but the copies must have that prefix removed. That is, DR__foo must be copied as foo . I'm trying this, which is based in the example provided in the documentation (the .chm): <Target Name="CopyAuxiliaryFiles"> <MakeDir Directories="$(TargetDir)Parameters" Condition="!Exists('$(TargetDir)Parameters')" /> <ItemGroup> <ContextVisionParameterFiles Include="$(SolutionDir)CVParameters\DR__*" /> </ItemGroup> <Message Text="Files to copy and rename: @(ContextVisionParameterFiles)"/> <RegexReplace Input="@

TeamCity + WiX + MSBuild workflow suggestions needed

六眼飞鱼酱① 提交于 2019-12-05 00:02:34
问题 I've been working on the next step of my continuous integration project, which is to get TeamCity to build my application, automatically change the version number of all assemblies, and then create an installer. A little background first: I've been running TeamCity successfully for the past several months, and it builds my configurations and runs my NUnit and NCover tests just fine. I took a little time researching installers -- I have always hated InstallShield and never considered it for my

msbuild fileupdate setup project

房东的猫 提交于 2019-12-04 16:44:22
I'm looking to use the fileUpdate task from msbuildtasks.tigris.org to modify image src's as part of our web setup project so that they will point to a static img sub domain (or later a CDN) I can run a task within a given project with: <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> <Target Name="AfterBuild"> <FileUpdate Files="basic.css" Regex="/images/([^\)]*)" ReplacementText="http://img.domain.com/images/$1" /> </Target> However, I dont want to overwrite the original css source file, but want to run this as part of our deployment project

MSBuild and creating ZIP files

天涯浪子 提交于 2019-12-04 01:15:55
问题 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

TeamCity + WiX + MSBuild workflow suggestions needed

*爱你&永不变心* 提交于 2019-12-03 15:46:22
I've been working on the next step of my continuous integration project, which is to get TeamCity to build my application, automatically change the version number of all assemblies, and then create an installer. A little background first: I've been running TeamCity successfully for the past several months, and it builds my configurations and runs my NUnit and NCover tests just fine. I took a little time researching installers -- I have always hated InstallShield and never considered it for my current application. I like NSIS, but then happened to come across WiX . I don't have any intimate

Intellisense for MSBuild Community Tasks doesn't work

怎甘沉沦 提交于 2019-12-03 12:16:46
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 Files\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.xsd to C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\1033\MSBuild\MSBuild.Community.Tasks.xsd I start VS and create a project (build) file as below: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" > <_ </Project> As starting to type a Target, I have no Intellisense

MSBuild Community Tasks Documentation [closed]

给你一囗甜甜゛ 提交于 2019-12-03 09:30:55
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. 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... Benjamin Baumann The documentation is like you say really scarce. The best I found is to download the latest source code here : https://github.com