microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

PlannerChecklistItem and PlannerCheckListItem problem in VB.NET

Open
#2,685 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:bug
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Describe the bug

Since vb.net is not case sensitive it throws 'PlannerChecklistItem' is ambiguous in 'Microsoft.Graph.Models' namespace

Expected behavior

If those two classes had different names, we could use them in vb.net

How to reproduce

Create a vb.net project and install Microsoft.Graph nuget. Try to instanciate a PlannerChecklistItem variable:

Dim checklistItem As New PlannerChecklistItem

You will see the error then.

SDK Version

5.58.0

Latest version known to work for scenario above?

No response

Known Workarounds
Dim nameOfPlannerChecklistItem As String = "Microsoft.Graph.Models.PlannerChecklistItem, Microsoft.Graph"
Dim typeOfPlannerChecklistItem As Type = Type.GetType(nameOfPlannerChecklistItem)
Dim checklistItem As Object = Activator.CreateInstance(typeOfPlannerChecklistItem)
Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the ambiguity in a VB.NET project using Microsoft.Graph SDK 5.58.0 and the Microsoft.Graph.Models namespace, starting with PlannerChecklistItem and PlannerCheckListItem. Inspect how these model types are generated or exposed, and consider the issue done when both classes can be referenced without a VB.NET name collision and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
visualbasic
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.