Bug 38526 - AutoMapper fires up Google Maps
Summary: AutoMapper fires up Google Maps
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: Tools and Addins ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2016-02-07 12:06 UTC by Brian Westrupp
Modified: 2016-03-03 14:46 UTC (History)
1 user (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 or GitHub 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 ANSWERED

Description Brian Westrupp 2016-02-07 12:06:01 UTC
AutoMapper 4.2.0 now requires a MapperConfiguration instance having deprecated using Mapper.CreateMap etc.  Since converting my code to the new requirement, every time my app runs it works fine with the object mapping but now fires up an instance of Google Maps.
CODE SAMPLE:
MapperConfiguration ppglMapperConfig = new MapperConfiguration(mapCfg => {
	mapCfg.CreateMap<mysource, mydestination>()
	.ForMember (dest => dest.LoanedDate, opt => opt.NullSubstitute(""))
	.ForMember(dest => dest.LoanedTo, opt => opt.NullSubstitute(""))
	.ForMember(dest => dest.LoanedStatus, opt => opt.NullSubstitute(""))
	.ForMember(dest => dest.Id, opt => opt.Ignore());
	});

// perform mapping
IMapper mdaMapper = ppglMapperConfig.CreateMapper ();

// map mysource to my destination format <source,Dest> (source)
mydestinationObject glCldResult = mdaMapper.Map<mysource, mydestination> (glCld);

Somewhere in this code the Google Map app fires off.

=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: (deleted)

Runtime:
	Microsoft .NET 4.0.30319.42000
	GTK+ 2.24.23 (MS-Windows theme)
	GTK# 2.12.30

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.0.1.10 (Indie Edition)
Android SDK: C:.....\Android\android-sdk
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1

SDK Platform Tools Version: 23.1

SDK Build Tools Version: 23.0.2


Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_39
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)

=== Xamarin Android Player ===

Not Installed

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 15:49:39-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-windows-cycle6-c6sr1

=== Operating System ===

Windows 10.0.10586.0 (64-bit)
Comment 1 Jonathan Pryor 2016-03-03 14:46:58 UTC
This is an AutoMapper question -- why is AutoMapper creating an instance of Google Maps? I don't know; you'd have to ask them.