This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 8927 - CodeDom doesn't handle snippets correctly, breaks Razor
: CodeDom doesn't handle snippets correctly, breaks Razor
Status: RESOLVED FIXED
Product: Class Libraries
Classification: Mono
Component: System
: Trunk
: PC Mac OS
: --- normal
: ---
Assigned To: Bugzilla
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-12-13 18:28 EST by Michael Hutchinson
Modified: 2012-12-15 06:48 EST (History)
2 users (show)

See Also:
Tags:
Test Case URL:
External Submit: ---


Attachments
Demonstrates broken code generation on Mono. (828 bytes, application/octet-stream)
2012-12-13 18:28 EST, Michael Hutchinson
Details

Description Michael Hutchinson 2012-12-13 18:28:52 EST
Created attachment 3094 [details]
Demonstrates broken code generation on Mono.

The C# CodeDOM provider does not ensure that a CodeSnippetTypeMember and a
CodeMemberMethod are separated when
CodeGeneratorOptions.BlankLinesBetweenMembers=false.

This breaks Razor because it generates this exact pattern.

The attached sample demonstrates this. It works on .NET but generates broken
code on Mono.
Comment 1 Marek Safar 2012-12-15 06:48:20 EST
Fixed in master

Note You need to log in before you can comment on or make changes to this bug.