msbuild-itemgroup

msbuild create itemgroup from property group

て烟熏妆下的殇ゞ 提交于 2019-12-11 00:01:36
问题 I want to pass a semi-colon separated list of strings. Each string represents a file name. <PropertyGroup> <FileNames>Newtonsoft.Json;Reactive</FileNames> <PathToOutput>C:/</PathToOutput> </PropertyGroup> Now I want to create an item group which should give me all the files in particular folder excluding list of Filename, something like: <ItemGroup> <ReleaseFiles Include="$(PathToOutput)\**\*.*" Exclude="%(identity)-> identity.contains(%FileNames)"/> </ItemGroup> How do I iterate through

Transforming multiple config files for multiple projects via MsBuildProj file

帅比萌擦擦* 提交于 2019-12-06 10:27:49
问题 I am trying to run multiple commands on a list of files based on a pattern (all files of form *.config under sub directories of a given directory), like so: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="BuildSolution" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll" /> <PropertyGroup> <Configuration Condition=" '$

Transforming multiple config files for multiple projects via MsBuildProj file

寵の児 提交于 2019-12-04 17:54:34
I am trying to run multiple commands on a list of files based on a pattern (all files of form *.config under sub directories of a given directory), like so: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="BuildSolution" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>