Base solution for your next web application
Open Closed

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


User avatar
0
kansoftware created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 8.1
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)?

We are getting following error while building the project

Please help


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @kansoftware That problem looks like related in roslyn and it should be fixed in https://github.com/dotnet/roslyn/pull/37915 (also see:https://github.com/dotnet/roslyn/issues/39676). It may be related your razor page's views(cshtml). I could not find any quick solution for that. You can try to build without views to check if it is related your cshtml. Then if it is related them. You can try to create a partial view and load them in the page needed as a workaround.