Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaking the build target to use new MSBuild 4.0 features; should be …

…more reliable
  • Loading branch information...
commit 3330707f40a253fa58c7b3295bca024c9f659b22 1 parent 6be90d2
@jbogard jbogard authored
Showing with 6 additions and 12 deletions.
  1. +6 −12 src/AutoMapper.targets
View
18 src/AutoMapper.targets
@@ -3,7 +3,7 @@
<!-- Build sequence modification -->
<Target Name="CopyAutoMapperAssembly"
- DependsOnTargets="ResolveAssemblyReferences">
+ AfterTargets="ResolveAssemblyReferences">
<CreateItem Include="%(ReferencePath.FullPath)"
Condition="$([System.String]::new('%(ReferencePath.Filename)').StartsWith('AutoMapper.'))">
<Output TaskParameter="Include"
@@ -12,16 +12,10 @@
<Message Importance="low" Text="AutoMapper Platform Extension Assembly: %(_AutoMapperReference.FullPath)"/>
- <CreateItem Include="%(_AutoMapperReference.FullPath)" AdditionalMetadata="CopyToOutputDirectory=PreserveNewest">
- <Output ItemName="Content" TaskParameter="Include" />
- </CreateItem>
+ <ItemGroup>
+ <Content Include="%(_AutoMapperReference.FullPath)" Condition="'%(_AutoMapperReference.FullPath)' != ''">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
</Target>
-
- <PropertyGroup>
- <CoreBuildDependsOn>
- CopyAutoMapperAssembly;
- $(CoreBuildDependsOn)
- </CoreBuildDependsOn>
- </PropertyGroup>
-
</Project>
Please sign in to comment.
Something went wrong with that request. Please try again.