itemgroup

Removing a trailing slash in MSBuild / Convention based filename generation

I'm trying to search for a set of assemblies based on the following convention within a directory: {SubDirName}\{SubDirName}.dll I've started by creating an MSBuild ItemGroup [by batching another ItemGroup on the .RecursiveDir portion]. <AllAssemblies Include="$(SourceDirectory)\**\Test.*.dll" /> <Dirs Include="@(AllAssemblies->'%(Re...

how to get extension name (without dot) in MSBuild

I have an ItemGroup, and I use its metadata as identifiers in my MSBuild project for batch processing. For example: <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Name="RunUnitTestsStep-%(TestSuite.Filename)-%(TestSuite.Extension)" Message=" - Unit T...

Create an ItemGroup of strings in MSBuild

I want to create an "ItemGroup" of arbitrary strings / names in order to use MSBuild transforms, for example: <ItemGroup> <Categories>First</Categories> <Categories>Second</Categories> </ItemGroup> I then wish to pass a transform of these categories into a console app, e.g.: /c @(Categories, ' /c ') The reason why I say "It...

MSBuild ItemGroup Include/Exclude pattern issue

Problem: an ItemGroups array isn't correctly build based on the value passed in the exclude attribute. If you run this scrip it creates some sample file then tries to create an array called TheFiles based on the Include/Exclude attributes, problem is when the Exclude is anything other than hardcoded or a very simple property it gets it ...

MSBuild Package task - Web Deploy

Hi, I'm trying to add custom files to our web deployment package, per this blog posting: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx <Target Name="CustomCollectFiles"> <Message Text="AppBuildFolder = $(AppBuildFolder)"/> <ItemGroup> <_CustomFiles...