Bug 36817 - Access to the path (csproj) is denied when ios project is opened in XSMac then VS2015 w assets catalogs
Summary: Access to the path (csproj) is denied when ios project is opened in XSMac the...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.1.0 (C7)
Assignee: Emanuel
: 30600 ()
Depends on:
Reported: 2015-12-10 10:58 UTC by softlion
Modified: 2018-02-07 01:31 UTC (History)
8 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description softlion 2015-12-10 10:58:53 UTC
When my solution is opened in Xamarin Studio Mac, the asset catalog which originally was this in csproj file:

    <ImageAsset Include="Resources/Images.xcassets/AppIcons.appiconset/Contents.json">
    <ImageAsset Include="Resources/Images.xcassets/AppIcons.appiconset/icon-58@2x.png">
    <ImageAsset Include="Resources/Images.xcassets/AppIcons.appiconset/icon-58@3x.png">

becomes this:

    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-58%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-58%403x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-80%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-80%403x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-iphone-120-%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-iphone-180-%403x.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\Contents.json" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\Default.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\Default%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\Default-568h%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\launch-image-i6plus.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\launch-image-i6.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\splash-2208-1242.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\splash-640-1136.png" />
    <ImageAsset Include="Resources\Images.xcassets\LaunchImages.launchimage\splash-640-960%402x.png" />
    <ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-29.png" />

It compiles ok in Xamarin Studio Mac.

If this solution if reopened in visual Studio 2015, the project won't load with an error:

Microsoft Visual Studio
Access to the path 'C:\Users\me\Repos\ac\Ac.Touch\Ac.Touch.csproj' is denied.
Comment 1 softlion 2015-12-10 12:02:15 UTC
solution: replace again all backslahes by slashes in ImageAsset entries.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-10 19:08:31 UTC
*** Bug 30600 has been marked as a duplicate of this bug. ***
Comment 3 xamarin-release-manager 2016-05-11 18:38:55 UTC
Fixed in version (cycle7)

Author: Jose Gallardo
Commit: f1a7f29174ad2cf52c446fb36f73710d42460246 (xamarin/XamarinVS)
Comment 4 jpdc8800 2018-02-07 01:31:46 UTC
I've encountered this in Xamarin version and replacing all backslahes by slashes in ImageAsset entries fixed it.