This may be due to newer versions of Visual Studio, but it appears that the "EDIT" comment support isn't working anymore. In Visual Studio 2022 (running community edition, and haven't tested this in any other versions or editions), comments are stored in the regex XML as all lowercase, so the Contains("EDIT") calls always return false.
This may be due to newer versions of Visual Studio, but it appears that the "EDIT" comment support isn't working anymore. In Visual Studio 2022 (running community edition, and haven't tested this in any other versions or editions), comments are stored in the regex XML as all lowercase, so the
Contains("EDIT")
calls always return false.This affects the following call sites:
https://github.com/stevencohn/ResxTranslator/blob/725492d1c7b75cca136c37ec1d64ff53f9169947/Translator.cs#L358 https://github.com/stevencohn/ResxTranslator/blob/725492d1c7b75cca136c37ec1d64ff53f9169947/Translator.cs#L481
and may also affect the REGEX at https://github.com/stevencohn/ResxTranslator/blob/725492d1c7b75cca136c37ec1d64ff53f9169947/Translator.cs#L468
If you retarget this to .NET 5.0+, you can use an overload on
Contains
that takes aStringComparison
parameter.