ResX issue with winform project
Hi, i'm evaluating rider now that there's a winform designer. I have a fairly large winforms project that i dev in vs.net 2019. it's working fine in it.
i added a blank test form through rider to it and get the following error. The file it's complaining about is fine, exists, in the right spot etc. Works fine with vs.net.
The project compiles fine in rider as well. Any ideas? If it matters, i have multiple resx resource files to help break up my images i use in the project. The one it's complaining about isn't in the main one.
i don't know if they're all supposed to be this way but this path from the error
C:\GoetzeProjects\IntegrityClinical-5-1DevEx\IntegrityClinicalWindows\eDDSonWindows.csproj\Resources\Abcess_Bottom.png
technically isn't correct. it's not eDDSonWindows.csproj\resources it's just IntegrityClinicalWindows\resources etc. there shouldn't be the name of the project on it
System.ArgumentException: ResX file Could not find a part of the path 'C:\GoetzeProjects\IntegrityClinical-5-1DevEx\IntegrityClinicalWindows\eDDSonWindows.csproj\Resources\Abcess_Bottom.png'. Line 123, position 5. cannot be parsed. ---> System.Xml.XmlException: Could not find a part of the path 'C:\GoetzeProjects\IntegrityClinical-5-1DevEx\IntegrityClinicalWindows\eDDSonWindows.csproj\Resources\Abcess_Bottom.png'. Line 123, position 5. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\GoetzeProjects\IntegrityClinical-5-1DevEx\IntegrityClinicalWindows\eDDSonWindows.csproj\Resources\Abcess_Bottom.png'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Resources.ResXFileRef.Converter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)
at System.Resources.ResXResourceReader.EnsureResData()
at JetBrains.ReSharper.Features.WinForms.Designer.External.Surface.Services.Resources.ProjectResourceFile..ctor(Byte[] content, String relativePath, String strongTypeName, String projectFolder)
at JetBrains.ReSharper.Features.WinForms.Designer.External.Surface.Services.JetProjectResourceService..ctor(IEnumerable`1 resources, String projectFolder, ISignal`1 addProjectResourceItem)
at JetBrains.ReSharper.Features.WinForms.Designer.External.WinFormsDesignerEndPoint.OnDesignerModelDelivered(Lifetime lifetime, DesignerModel designerModel)
Please sign in to leave a comment.
Hi! Thanks for feedback!
Can you try Rider 2019.1.2? That problem looks like https://youtrack.jetbrains.com/issue/RIDER-27702 and should be fixed.
That fixed it TY