Copies .png images into the corresponding Resources directory of Xamarin.iOS and Xamarin.Android projects and
imports them to the .csproj project files so it will be available when viewed in Visual/Xamarin Studio. If they
exist, @2x.png or @3x.png variants of the image will be imported for iOS, while *ldpi.png, *mdpi.png, *hdpi.png,
*xhdpi.png, *xxhdpi.png and *xxxhdpi.png will be imported for Android.
Add-XamarinImages C:\Images -IosProject C:\Source\MyProject.iOS\MyProject.iOS.csproj
Add-XamarinImages C:\Images -AndroidProject C:\Source\MyProject.Droid\MyProject.Droid.csproj
Add-XamarinImages -Images C:\Images -IosProject C:\Source\MyProject.iOS\MyProject.iOS.csproj -AndroidProject C:\Source\MyProject.Droid\MyProject.Droid.csproj -Move -Verbose
Get-Help Add-XamarinImages
- PowerShell 5.0
- Option A: install for the current user:
Install-Module -Name "XamarinImageImporter" -Scope CurrentUser - Option B: run as Administrator to install for all users:
Install-Module -Name "XamarinImageImporter"
git clone https://github.com/teamtam/xamarin-image-importer.git- Option A: run as is for the current PowerShell session:
Import-Module .\XamarinImageImporter\XamarinImageImporter.psd1 - Option B: install for the current and future PowerShell sessions:
Copy theXamarinImageImporterdirectory to a path defined in$Env:PSModulePath- [more info]
