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

Mominul Islam 0 Reputation points
2024-10-23T14:44:28.9366667+00:00

we have a .net core 6 MVC area based project. There are 10 area here. Project size about 5 gb. we have used visual studio 22 community version 64byte. Dapper is used for database access.

Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-10-23T15:30:00.9333333+00:00

    String literals go into pool, so if duplicated there is only one copy. You are hitting the max size of literal pool supported by the compiler. Move some of your larger string literals to resource strings.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.