Using RESX-files inside of Revit macros

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Revit 2017.1.1.
Usually I use RESX-files for localization of my applications. I work with their content through ResourceManager class. Of course, I create the default resources which are built-in into my target assembly.
Later, if I need then I will add some count of special localized resources: .\en\MyAssemblyName.resources.dll, .\ru\MyAssemblyName.resources.dll, etc. It is very convenient and I add new localizations quickly and without problems (when I need it).
As I mentioned earlier, I create the macroses inside of SharpDevelop as the first step of add-in's developing. Of course, I want to use RESX-files at this case too (at least the default resources). But built-in SharpDevelop can't handle such files. I added RESX-file manually but it doesn't work still. I get the compilation error:
> Inadmissible Resx file. Inadmissible data at the root level., line 1, line item 1.
> (MSB3103) - C:\ProgramData\Autodesk\Revit\Macros\2017\Revit\AppHookup\Sandbox\Source\Sandbox\ThisApplication.resx:1
Is it possible to solve this problem?
Look my attached screens, please.