﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>minspect commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>Can anybody explain what is dynamic group? Maybe your post answers following stackoverflow question:
  
[stackoverflow.com/.../is-there-a-way-to-automat...](http://stackoverflow.com/questions/2551107/is-there-a-way-to-automatically-include-content-files-into-asp-net-project-file)</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment7</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment7</guid><pubDate>Wed, 07 Apr 2010 19:28:36 GMT</pubDate></item><item><title>Aaron Carlson commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>FYI, 
  
 You can place item groups directly in targets with msbuild 3.5 now.  The CreateItem task is actually considered deprecated.
  
  
I find it more natural to use item groups then the CreateItem task.
  
  
MSDN doc that states CreateItem is deprecated as of 3.5.
  
[msdn.microsoft.com/en-us/library/s2y3e43x.aspx](http://msdn.microsoft.com/en-us/library/s2y3e43x.aspx)  
  
MSDN doc that says ItemGroups can live in Targets as of 3.5.
  
[msdn.microsoft.com/en-us/library/646dk05y.aspx](http://msdn.microsoft.com/en-us/library/646dk05y.aspx)</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment6</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment6</guid><pubDate>Thu, 25 Mar 2010 13:37:55 GMT</pubDate></item><item><title>Ayende Rahien commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>Oh, that explains it.
  
The project I am working on has dynamic &amp; static content, which I edits.
  
When you make a modification, it seems to trigger the "to hard code" thingie
</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment5</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment5</guid><pubDate>Thu, 25 Mar 2010 11:43:37 GMT</pubDate></item><item><title>styx31 commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>Yes, it works great when VS compile and on TFS Build also.
  
  
My ItemGroup is placed at the end of the csproj, after the two MS imports : Microsoft.CSharp.targets &amp; Microsoft.WebApplication.targets, and before BeforeBuild &amp; AfterBuild targets.
  
  
The bonus is that the files are displayed well in the solution explorer.
  
  
But I never add or remove solution items using visual studio, as this projet's goal is only to merge other web applications. Perhaps when VS add a file it makes all content references static.
  
  
Can I send you my .csproj file ?
</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment4</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment4</guid><pubDate>Thu, 25 Mar 2010 11:33:51 GMT</pubDate></item><item><title>styx31 commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>Sorry for the html in my comment. Manually html encoded version :
  
  
&lt;ItemGroup&gt;
  
&lt;Content Include="**\*.asmx" /&gt;
  
&lt;Content Include="**\*.ashx" /&gt;
  
&lt;Content Include="**\*.aspx" /&gt;
  
&lt;Content Include="**\*.svc" /&gt;
  
&lt;/ItemGroup&gt;
  
  
and read "to the EmbeddedResource xml element" ?
</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment3</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment3</guid><pubDate>Thu, 25 Mar 2010 11:29:54 GMT</pubDate></item><item><title>Ayende Rahien commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>Does it keep it as dynamic? When I tried it (on both compile &amp; embedded resource), it just killed things
</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment2</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment2</guid><pubDate>Thu, 25 Mar 2010 11:28:41 GMT</pubDate></item><item><title>styx31 commented on How to setup dynamic groups in MSBuild without Visual Studio ruining them</title><description>What seems strange is that I've already used a wildcard to include all asmx in a web application. See my csproj :
  
  
&lt;itemgroup  
&lt;content  
&lt;content  
&lt;content  
&lt;content  
&gt;  
  
Perhaps the problem is only related to the 
&lt;embeddedresource element ?
&gt;</description><link>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment1</link><guid>http://ayende.com/4446/how-to-setup-dynamic-groups-in-msbuild-without-visual-studio-ruining-them#comment1</guid><pubDate>Thu, 25 Mar 2010 11:27:14 GMT</pubDate></item></channel></rss>