-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
.Net: Ambiguous call in MapReduce Sample #9998
Comments
@crickman can you take a look? |
@joslat - I'm not able to reproduce this error and its not occuring in our build / release pipeline. I'm guessing there's some different between our build / development environments. In anycase, I can switch this to an array of strings to get around the ambitugity on your system. |
that would do, I changed it to this locally for it to build, for if it helps :)
|
FWIW: We get warnings/suggestions when using that syntax in our envronment. There's a strong preference for the collection initializer: |
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Fixes: #9998 ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> Use a less ambitious pattern for anyone who may have an particularly sensitive development environment. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [X ] The code builds clean without any errors or warnings - [X] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [X] All unit tests pass, and I have added new tests where possible - [X] I didn't break anyone 😄
Hi, I am having while building up the .NET Solution an error due to an ambiguous call,
I am getting: "Severity Code Description Project File Line Suppression State
Error CS0121 The call is ambiguous between the following methods or properties: 'string.Split(char[]?, StringSplitOptions)' and 'string.Split(string?, StringSplitOptions)' GettingStartedWithProcesses C:\git\joslat\semantic-kernel\dotnet\samples\GettingStartedWithProcesses\Step05\Step05_MapReduce.cs 119 Active"
Where: \semantic-kernel\dotnet\samples\GettingStartedWithProcesses\Step05\Step05_MapReduce.cs
The text was updated successfully, but these errors were encountered: