Share via

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
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 83,421 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.