Reputation: 1007
I can not figure out how to copy a file into another folder before the build is done. It is a Xamarin.Forms
project.
My current approach is:
<Target Name="BeforeBuild">
<ItemGroup>
<CrossFiles Include="..\path\$(Configuration)\droid\AndroidManifest.xml;" />
</ItemGroup>
<Copy SourceFiles="@(CrossFiles)" DestinationFolder="Properties/" SkipUnchangedFiles="true" />
</Target>
It is on the bottom of the file directly above </Project>
.
This approach seems to have no effect. What I am doing wrong ? Thanks for your help.
Upvotes: 1
Views: 740
Reputation: 34
try add the output path varaible to the destination folder:
DestinationFolder="$(OutputPath)\Properties"
Upvotes: 1