Sitelet https://github.com/xamarin/mac-samples/tree/main/UseMSBuildToCopyFilesToBundleExample
Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Latest commit

 

History

History
name Xamarin.Mac - UseMSBuildToCopyFilesToBundleExample
description This sample shows you how to extend your build with msbuild to copy arbitrary files into your bundle. This is better the custom commands in your...
page_type sample
languages
csharp
products
xamarin
urlFragment usemsbuildtocopyfilestobundleexample

UseMSBuildToCopyFilesToBundleExample

This sample shows you how to extend your build with msbuild to copy arbitrary files into your bundle.

This is better the custom commands in your projects settings, as they will fire even when building via xbuild. They also fire before code signing, so they may invalidate your signature and require resigning.

You will need to edit your csproj in a text editor and add a line similar to:

<Import Project="CustomBuildActions.targets" />

for the logic to apply during your build.