Bug 22428 - Visual Studio: iOS projects don't compile if a Portable Class Library is referenced.
Summary: Visual Studio: iOS projects don't compile if a Portable Class Library is refe...
Status: RESOLVED DUPLICATE of bug 22415
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.6
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-27 15:51 UTC by Fabio Garagiola
Modified: 2014-08-28 06:10 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED DUPLICATE of bug 22415

Description Fabio Garagiola 2014-08-27 15:51:23 UTC
Windows dev machine:
- Windows 8.1
- Visual Studio Professional 2013 Version 12.0.30723.00 Update 3
- Xamarin 4.0.8.0 (Alpha Channel)

Mac Build Host:
- Mac OS X 10.9.4
- Xamarin.iOS Build Host 7.9.3.53 (Alpha Channel)
- Xamarin.iOS 7.9.3.53 (Business Edition) (Alpha Channel)
- Xcode6-Beta5.app


Repro 1

- Start the build host on the Mac.
- In Visual Studio, create a new Xamarin.Forms project: Blank App (Xamarin.Forms Portable).
- Set the iOS project as startup project.
- Build the solution.

Result, the following error is displayed:
error MSB4057: The target "GetBundleResourceWithLogicalNameItems" does not exist in the project.

Repro 2

- Start the build host on the Mac.
- In Visual Studio, create a new iOS project: Single View App (iPhone).
- Add a new project to the solution: Class Library (Portable). [1]
- In the iOS project add a reference to the portable class library.
- Configure the dependencies for the build if required.
- Build the solution.

Result, the following error is displayed:
error MSB4057: The target "GetBundleResourceWithLogicalNameItems" does not exist in the project.

The offending file seems to be:
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.After.targets


[1] You can leave the default targets for the PCL or change it to any targets that include iOS, the result is the same.
Comment 1 CraigD 2014-08-27 16:10:01 UTC
Likely duplicate of #22415
Comment 2 Sadik Ali 2014-08-28 06:10:25 UTC

*** This bug has been marked as a duplicate of bug 22415 ***