Error importing R# 8 file layout into R# 9

I have an old file layout pattern that I've been using for ages.  I get an error when I try and put it into R# 9.  Is there a way to import this?

The steps to reporduce the error are:

  • R# Options | Code Editing | C# | File Layout
  • Click XAML, select all and paste.
  • Click Designer and I get:

System.Windows.Markup.XamlParseException: 'Cannot create unknown type '{urn:shemas-jetbrains-com:member-reordering-patterns}Patterns'.' Line number '36' and line position '2'. ---> System.Xaml.XamlObjectWriterException: 'Cannot create unknown type '{urn:shemas-jetbrains-com:member-reordering-patterns}Patterns'.' Line number '36' and line position '2'.
   at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, Boolean skipJournaledProperties, Uri baseUri)
   at System.Windows.Markup.XamlReader.Load(XamlReader xamlReader, ParserContext parserContext)
   at System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode)
   at System.Windows.Markup.XamlReader.Load(XmlReader reader)
   at System.Windows.Markup.XamlReader.Parse(String xamlText)
   at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.MemberReordering.FileLayoutPatternSerializer.JetBrains.UI.LayoutDesigner.Components.ILayoutDesignerSerializer.Deserialize(String value)
   at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.MemberReordering.FileLayoutPatternSerializer.Deserialize(String serializedValue)
   at JetBrains.ReSharper.Features.Altering.CodeFormatter.CSharp.FileLayout.FileLayoutDesigner.Load(String serializedValue)


The old layout is here:

https://www.dropbox.com/s/p8cej2w9yn60a5j/resharper.txt

R# version is:

JetBrains ReSharper Platform 6 Build 6.0.20141204.190160 on 2014-12-04 19:29:31Z
JetBrains ReSharper 9.0 Build 9.0.20141204.190166 on 2014-12-04 19:49:19Z

2 comments
Comment actions Permalink

Hello Sean

  Please try the workaround from here https://youtrack.jetbrains.com/issue/RSRP-428764.

Thanks!

0
Comment actions Permalink

Thanks, that worked fine.

0

Please sign in to leave a comment.