dotnet / dotnet/wcf

Generated code won't compile if a property named "System" exists

Open
#4,215 1 comment 0 reactions 1 assignee Assigned to @dasetser View on GitHub
priority 2 tooling
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

I have create a connected service from a wsdl provided by a customer.
The generated code won't compile because the code contains a class with an object called System. This breaks the XmlElementAttribute since the compiler tries to use the property System instead of the namespace System.

![grafik](https://user-images.githubusercontent.com/3062329/77315729-574c3700-6d08-11ea-9d9d-3b73d8140ec0.png)

Manually prefixing the namespace with global:: fixed the issue for now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.