Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

wwwxxxapc, wwwxxxapc, wwwxxxapc, sslengine vs sslproxyengine, WWWXXXAPC, ftp_get() 'RETR' not understood , wwwxxxdoco, wwwxxxdoco, wwwxxxdoco, WWWXXXAPC



#1: MSBuild TargetOutputs Question.

Posted on 2008-04-21 21:23:10 by Satish

I'm rather new to MSBuild. I'm trying to build a project and copy the
build result to a deploy folder. Here is the target I created for this.

<Target Name="BuildModelEvaluator" >
<MSBuild Projects="ModelEvaluator\ModelEvaluator.csproj"
Targets="Rebuild" >
<Output ItemName="ModelAssemblies" TaskParameter="TargetOutputs"/>
<Copy SourceFiles="@(ModelAssemblies)"
DestinationFolder="$(OutputFolder)\ModelEvaluator" />

Now my problem is that this one copies only the exe file. It does not
copy the dlls of other projects that the exe depends on and also the
config file. My question is aren't those a part of the TargetOutputs as
well or do I have to include those separately?

I added an Itemgroup section into the target as follows

<ModelAssemblies Include="ModelEvaluator\bin\$(Env)\*.dll" />
<ModelAssemblies Include="ModelEvaluator\bin\$(Env)\*.config" />
This seems to work but I'm not sure if this is the right approach.


Report this message