Hi Ann,

i think this should be possible. But I found it much easier to just list
all projects.

I just did "dir *.cproj /s/b" at the commandline to get all projects and
wrapped it in <MSBuild Projects=...>-tags. Then I removed the projects
which should not be build.

If you really want it to be automatic may be this helps:
"RegexMatch: Task to filter an Input list with a Regex expression.
Output list contains items from Input list that matched given expression"
 
http://msbuildtasks.tigris.org/

Greetings,
Lennart

Ann Chaplinskaya wrote:
> Hi Lennart,
>
> Thanks a lot!
> Is any tag that allows to compile all .proj files in one line? I need
> something like this:
>
> ' compile = "C:\path\**\*.cproj"
> but don't compile "C:\path\to\**\*.cproj" '
>
> Is it possible?
>
> Ann
>
>
> 2010/3/5 Lennart Wagner <[email protected]
> <mailto:[email protected]>>
>
>     Hi Ann,
>
>     you can create a separate msbuild script for this:
>
>     <Project DefaultTargets="" ToolsVersion="3.5"
>     xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
>
>        <PropertyGroup>
>            <Configuration Condition=" '$(Configuration)' == ''
>     ">Debug</Configuration>
>            <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
>        </PropertyGroup>
>
>        <Target Name="Build">
>            <MSBuild
>     Projects="..\path\to\project_one\project_one.vbproj" />
>            <MSBuild
>     Projects="..\path\to\project_two\project_two.vbproj" />
>            <MSBuild
>     Projects="..\path\to\project_three\project_three.vbproj" />
>        </Target>
>
>     </Project>
>
>     Regards,
>     Lennart
>
>     Ann Chaplinskaya wrote:
>     > Hello,
>     >
>     > I have several project files, each within their own sub-directory. I
>     > need to compile them all using MSBuild tag in config file of CCnet.
>     > But not all of them referenced to each other. Is it possible to
>     do it
>     > using one tag
>     >          <msbuild>
>     >
>     >
>     
> <executable>c:\WINDOWS\Microsoft.NET\Framework\v4.0.30128\MSBuild.exe</executable>
>     >             <workingDirectory>c:\Projects\WTS\</workingDirectory>
>     >
>     >
>     
> <projectFile>TherapyDeviceManager\TherapyDeviceManager.csproj</projectFile>
>     >
>     >
>     >
>      
> <logger>c:\Programme\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
>     >
>     >         </msbuild>
>
>

Reply via email to