#
chrisortman
Here's a few changes you can make to the project files if you want.... basically just removed the post build command line stuff and replaced with MSBuild ... reason being is that $(SolutionDir) isn't valid if you don't give MSBuild the solution file....which often times you don't want to do.
These are just snippets found near abouts the bottom of each project file...
The Downloads Module Project ------
<ItemGroup>
<BuildOutputs Include="$(OutputPath)*.dll" />
<BuildOutputs Include="$(OutputPath)*.pdb" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(None)"
DestinationFiles="@(None->'..\web\modules\Downloads\%(Identity)')"
SkipUnchangedFiles="true" />
<Copy SourceFiles="@(Content)"
DestinationFolder="..\web\Modules\Downloads"
Condition="%(Content.RelativeDir) == 'Web\'"
SkipUnchangedFiles="true" />
<Copy SourceFiles="@(Content)"
DestinationFolder="..\Web\Modules\Downloads\Images"
Condition="%(Content.Extension) == '.gif'"
SkipUnchangedFiles="true" />
<Copy SourceFIles="@(BuildOutputs)" DestinationFolder="..\Web\bin" SkipUnchangedFiles="true"/>
</Target>
The Modules Project -----
<ItemGroup>
<BuildOutputs Include="$(OutputPath)*.dll" />
<BuildOutputs Include="$(OutputPath)*.pdb" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild">
<Copy SourceFiles="@(Content)" DestinationFiles="@(Content->'..\web\modules\%(Identity)')" SkipUnchangedFiles="true" />
<Copy SourceFIles="@(BuildOutputs)" DestinationFolder="..\Web\bin" SkipUnchangedFiles="true" />
</Target>
Changes to Web Project
<Target Name="AfterBuild">
<Copy SourceFiles="@(CopyLocal)" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" />
</Target>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent></PostBuildEvent>
</PropertyGroup>
These are just snippets found near abouts the bottom of each project file...
The Downloads Module Project ------
<ItemGroup>
<BuildOutputs Include="$(OutputPath)*.dll" />
<BuildOutputs Include="$(OutputPath)*.pdb" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(None)"
DestinationFiles="@(None->'..\web\modules\Downloads\%(Identity)')"
SkipUnchangedFiles="true" />
<Copy SourceFiles="@(Content)"
DestinationFolder="..\web\Modules\Downloads"
Condition="%(Content.RelativeDir) == 'Web\'"
SkipUnchangedFiles="true" />
<Copy SourceFiles="@(Content)"
DestinationFolder="..\Web\Modules\Downloads\Images"
Condition="%(Content.Extension) == '.gif'"
SkipUnchangedFiles="true" />
<Copy SourceFIles="@(BuildOutputs)" DestinationFolder="..\Web\bin" SkipUnchangedFiles="true"/>
</Target>
The Modules Project -----
<ItemGroup>
<BuildOutputs Include="$(OutputPath)*.dll" />
<BuildOutputs Include="$(OutputPath)*.pdb" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="AfterBuild">
<Copy SourceFiles="@(Content)" DestinationFiles="@(Content->'..\web\modules\%(Identity)')" SkipUnchangedFiles="true" />
<Copy SourceFIles="@(BuildOutputs)" DestinationFolder="..\Web\bin" SkipUnchangedFiles="true" />
</Target>
Changes to Web Project
<Target Name="AfterBuild">
<Copy SourceFiles="@(CopyLocal)" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="true" />
</Target>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent></PostBuildEvent>
</PropertyGroup>