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
Summary: CodeDom doesn't handle snippets correctly, breaks Razor
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-12-13 18:28 UTC by mhutch
Modified: 2012-12-15 06:48 UTC (History)
2 users (show)

See Also:
Tags:


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

Description mhutch 2012-12-13 18:28:52 UTC
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 UTC
Fixed in master

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