microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Error CS8103 after upgrading the Sdk from 4.18.0 to 5.x.x

Open
#2,163 6 comments 2 reactions 1 assignee View on GitHub

@andrueastman is already working on this.

Since Oct 17, 2023.

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

Description

I recently upgraded from 4.18.0 to any of the versions 5.x.x. I have been getting Error CS8103 while building my project.

image

I wanted to be sure of the problem so I downgraded to version 4.54.0 and the project was able to build.
image

I have also read the guide on upgrading to v5. There seems to be nothing that points to this compile time error.

In addition, I have also tried to search online on a work around that is relevant to my use case, nothing seems to solve the issue. However, I am very sure the problem was from the v5.x.x of the Microsoft.Graph Sdk.

Error CS8103: Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

Please help as I am currently blocked.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.