Bug 14311 - Xamarin systematically add the Xamarin.MonoTouch.CSharp.Targets line add the end of the csproj even if already included
Summary: Xamarin systematically add the Xamarin.MonoTouch.CSharp.Targets line add the ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.4.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Vinicius Jarina
Depends on:
Reported: 2013-08-28 23:47 UTC by pierre
Modified: 2013-10-10 15:36 UTC (History)
7 users (show)

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

sample for the bug (39.99 KB, application/octet-stream)
2013-09-30 21:58 UTC, pierre

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 pierre 2013-08-28 23:47:24 UTC
Xamarin systematically add the line "<Import Condition="$(Test) == 'a'" Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />" add the end of the csproj even if it has already been imported by some subImported targets, resulting in warnings during compilations.
Comment 1 Dominique Louis 2013-09-03 06:38:17 UTC
Jarina, this looks to be part of the MonoTouchProjectFixer? Could you confirm if this is happening.
Comment 2 Vinicius Jarina 2013-09-30 15:15:36 UTC
Hi pierre, can you gist or attach your csproj ?

Thank you.
Comment 3 pierre 2013-09-30 21:58:58 UTC
Created attachment 5028 [details]
sample for the bug
Comment 4 pierre 2013-09-30 22:00:24 UTC
Hi jarina,

here is a simple sample.
Comment 5 Oleg Demchenko 2013-10-08 13:05:51 UTC
explored MTVS version
got warning
Comment 6 Vinicius Jarina 2013-10-10 15:36:54 UTC
Fixed on master 557a10f82091cc649265d4947e99d2672bedd8e1