Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Xamarin.iOS10] How to add BundleResource #169

Open
thudugala opened this issue Jun 27, 2019 · 1 comment
Open

[Xamarin.iOS10] How to add BundleResource #169

thudugala opened this issue Jun 27, 2019 · 1 comment

Comments

@thudugala
Copy link

thudugala commented Jun 27, 2019

How to add BundleResource and ImageAsset for iOS. When building Project from VS2019 16.1.4 Windows.
Can anyone help ?

in Android, it works

<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid'))">
    <AndroidResource Include="Resources\**\*.png" CopyToOutputDirectory="Never" />
    <AndroidResource Include="Resources\**\*.xml" CopyToOutputDirectory="Never" />
</ItemGroup>

Result
image

in iOS, it does not work

<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.iOS'))">
     <BundleResource Include="Image\*.png" CopyToOutputDirectory="Never" Pack="true" />
    <ImageAsset Include="Resources\Media.xcassets\AppIcons.appiconset\Contents.json" CopyToOutputDirectory="Never" Pack="true" />
    <ImageAsset Include="Resources\Media.xcassets\AppIcons.appiconset\*.png" CopyToOutputDirectory="Never" Pack="true" />
    <ImageAsset Include="Resources\Media.xcassets\LaunchImages.launchimage\Contents.json" CopyToOutputDirectory="Never" Pack="true" />
  </ItemGroup>
Result Expectation
image image

When building I get output

7>Executing SayHello Task to establish a connection to a Mac Server. 
7>						 Properties: SessionId=18b9a7c7729929acfa82b3620e3d658b, 
7>							ServerPort=, 
7>							ServerAddress=, 
7>							ServerUser=, 
7>							ServerPassword=, 
7>							SSHKey=, 
7>							SSHPassPhrase=,
7>							AppName=Abel.iOS,
7>							ContinueOnDisconnected=true
@softlion
Copy link

Any workaround ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants