icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

System IO Exception #43

Closed Dracarys-Ensoul closed 6 years ago

Dracarys-Ensoul commented 6 years ago

ads When I adding a control program gives me that error. Please help me

jogibear9988 commented 6 years ago

I could not reproduce this.

Can you create small sample showing the problem? Which Framework Version do you use?

Dracarys-Ensoul commented 6 years ago

sda

I think 3.0

jogibear9988 commented 6 years ago

No, it's default that the 3.0 DLL is loaded

jogibear9988 commented 6 years ago

what is the %c4%b1 in the xaml file name?

kivannc commented 4 years ago

I had the same problem. It is related to CultureInfo when the function below is called ToLower() function creates the wrong file name. I have added the 'CultureInfo.InvariantCulture' and its fixed.

public static string GetXamlNameForType(Type t) { return _uriStart + t.FullName.Substring(_subLength).Replace(".","/").ToLower() + ".xaml"; }

public static string GetXamlNameForType(Type t) { return _uriStart + t.FullName.Substring(_subLength).Replace(".","/").ToLower(CultureInfo.InvariantCulture) + ".xaml"; }

Before fileName was "wrapıtemcontextmenu.xaml" and after changing it was correct "wrapitemcontextmenu.xaml"