Bug 27512 - Compiler crash with code 1 : Microsoft.CSharp.Targets ( caused by <> in the editor
Summary: Compiler crash with code 1 : Microsoft.CSharp.Targets ( caused by <> in the e...
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.10.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2015-02-27 11:42 UTC by Pierre-luc
Modified: 2015-02-27 13:35 UTC (History)
2 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 GitHub or 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-luc 2015-02-27 11:42:44 UTC
The compiler crashed was caused by these two characters <> in the editor.

The line was:  rs = serializer.Deserialize<>(jsonTextReader) as String ;

Here is the complete  code using json.net

public static String JSONDeserializeString(Stream repContent)
                String rs = null;

                JsonSerializer serializer = new JsonSerializer();

                    using (StreamReader sr = new StreamReader(repContent))
                        using (JsonTextReader jsonTextReader = new JsonTextReader(sr))
                            rs = serializer.Deserialize<>(jsonTextReader) as String ;

                catch (Exception ex )
                  throw new Exception(ex.Message, ex);

                return rs;
Comment 1 Pierre-luc 2015-02-27 11:43:30 UTC
this line should be equal to rs = serializer.Deserialize(jsonTextReader) as String ;
Comment 2 Jeffrey Stedfast 2015-02-27 11:54:58 UTC
I don't understand what this has to do with the debugger? Sounds like you meant compiler...
Comment 3 Pierre-luc 2015-02-27 12:04:28 UTC
Yeah sorry!
Comment 4 Marek Safar 2015-02-27 13:30:11 UTC
I cannot reproduce the issue using master or mono 4.0
Comment 5 Pierre-luc 2015-02-27 13:35:41 UTC
i was using Xamarin studio 5.7.1 on MAC os