locked
Trying to compile big project and get error MSB1025 RRS feed

  • Question

  • Hello! I am trying to compile a big project and each time I get error MSB1025

    MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
    System.OutOfMemoryException: Array dimensions exceeded supported range.
       at System.Text.StringBuilder.set_Length(Int32 value)
       at Microsoft.Build.Shared.ReuseableStringBuilder.ReuseableStringBuilderFactory.Release(StringBuilder returningBuilder)
       at Microsoft.Build.Shared.ReuseableStringBuilder.System.IDisposable.Dispose()
       at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties)
       at Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties)
       at Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options, IElementLocation elementLocation)
       at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyElement(ProjectPropertyElement propertyElement)
       at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement propertyGroupElement)
       at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
       at Microsoft.Build.Evaluation.Evaluator`4.Evaluate()
       at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
       at Microsoft.Build.Execution.ProjectInstance.Initialize(ProjectRootElement xml, IDictionary`2 globalProperties, String explicitToolsVersion, String explicitSubToolsetVersion, Int32 solutionVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext)
       at Microsoft.Build.Execution.ProjectInstance..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext buildEventContext)
       at Microsoft.Build.BackEnd.RequestBuilder.LoadProjectIntoConfiguration()
       at Microsoft.Build.BackEnd.RequestBuilder.BuildProject()
       at Microsoft.Build.BackEnd.RequestBuilder.<BuildAndReport>d__47.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.Build.BackEnd.RequestBuilder.<RequestThreadProc>d__46.MoveNext()
    MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
    System.OutOfMemoryException: Array dimensions exceeded supported range.
       at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean debugger, Boolean detailedSummary)
       at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)

    Thursday, October 15, 2020 11:35 AM

All replies

  • Hi Elina,

    Thank you for posting here.

    Since this thread is related to msbuild. I suggest that you can post your question in the Microsoft Q&Aforum with the tag vs-msbuild.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, October 16, 2020 1:36 AM