wcf icon indicating copy to clipboard operation
wcf copied to clipboard

Regional Settings Impact Soap Client generation

Open SurushS opened this issue 8 years ago • 6 comments

I have an issue on the Wcf Client generator on Dotnet Core projects. When generating the code, if you have your computer regional settings set to something non english ( comma used in decimals or dots). the generated code will not compile.

If i put my regional settings to dutch, this is the output (will not compile):

this.initial_Costs_AmountField = ((decimal)(0,0m));

and if i put my regional settings to english (united states) this is the output (does compile):

this.initial_Costs_AmountField = ((decimal)(0.0m));

Is this a configuration thing or a bug?

SurushS avatar Mar 26 '18 11:03 SurushS

Hi @SurushS Thank you for reporting this issue. We will investigate as soon as we have a chance. Miguel Lacouture

mlacouture avatar Mar 29 '18 21:03 mlacouture

Hi @SurushS Is it possible for you to provide us with a wsdl file to reproduce this issue? thank you!

mlacouture avatar Sep 15 '18 00:09 mlacouture

Hi @mlacouture . I will see if i can facilitate it to you this week. I have to go back in time a bit and find out which service it was. I'll keep you posted :)

SurushS avatar Sep 19 '18 07:09 SurushS

Hi @SurushS, don't worry, I was able to reproduce the problem. thank you for your help!

mlacouture avatar Sep 19 '18 10:09 mlacouture

Hi @SurushS, don't worry, I was able to reproduce the problem. thank you for your help!

Great 👍 If there is anything else you need just let me know!

SurushS avatar Sep 19 '18 11:09 SurushS

This is now fixed in dotnet-svcutil v1.0.4.

dasetser avatar Oct 31 '18 17:10 dasetser