New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembly suffix not supported by xsi:type and NLog.xsd #4978
Comments
AFAICS, the only place this new capability of including the assembly name is mentioned is in the list of NLog 5.0 changes:
It would be useful if this could be added to the documentation of the |
If you have found a NLog-wiki-page that needs to be updated, then you are wellcome to make the change yourself, or you can point out where something is missing. |
Looks like So abusing |
When reading through all of the different issues spread across repositories about this issue, I think that I have come to the conclusion that the I can see how this could be implemented:
But I'm not sure it's a good idea or even parses schema validation. Also, parsing this string could be bit of a problem since In the end, the idea behind the feature (if I remember correctly) was to avoid having to declare the Just a bit of input. There are definitely adults out there with more XML Schema knowledge than me so maybe something is possible there that I couldn't manage to dig up in the XML Schema docs 🤷♂️ |
I think I will step away from the crime-scene, and let those who with knowledge about Think my contribution is just showing how one should not do it :) |
When using this format:
Then one gets the following XML schema-validation error:
Maybe add support for having assembly-name as prefix:
Curious is the XML Schema validation is still able to validate properties for the SysLog-target when using
NLog.Targets.Syslog:
as prefix? (Seems intellisense works when doing thisxsi:type="NLog:File"
)See also #4300 + #4308
See also: luigiberrettini/NLog.Targets.Syslog#307
The text was updated successfully, but these errors were encountered: