Closed knstntn closed 1 year ago
I made new namespace Microsoft.Omex.Metrics.ApiClient and used this namespace for ApiClient generated using nswag https://github.com/RicoSuter/NSwag
Microsoft.Omex.Metrics.ApiClient
Result is shown on this picture
Compilation failed because System resolved to Microsoft.Omex.System
System
Microsoft.Omex.System
Compilation is fine.
I think proper solution would be to update nswag to generate code using global:: alias for System, and I plan to send report to them
global::
But you cannot change all generators in the world, so I think it is appropriate to rename Microsoft.Omex.System to avoid namespace conflicts.
NSwag version 11.20.1
Added PR for NSwag https://github.com/RicoSuter/NSwag/pull/2356
Omex.System deprecated and we are not using Omex.System namespace anymore, thank you for pointing this out.
Context
I made new namespace
Microsoft.Omex.Metrics.ApiClient
and used this namespace for ApiClient generated using nswag https://github.com/RicoSuter/NSwagResult is shown on this picture
Current Behavior
Compilation failed because
System
resolved toMicrosoft.Omex.System
Expected Behavior
Compilation is fine.
Possible Solution
I think proper solution would be to update nswag to generate code using
global::
alias forSystem
, and I plan to send report to themBut you cannot change all generators in the world, so I think it is appropriate to rename Microsoft.Omex.System to avoid namespace conflicts.
Environment
NSwag version 11.20.1