Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit f8b972d

Browse files
Merge pull request #9178 from mono/backport-pr-9176-to-master
[master] Set `DesignTimeBuild` when evaluating SourceFiles
2 parents 8c21c8f + b1e5078 commit f8b972d

File tree

1 file changed

+1
-0
lines changed
  • main/src/core/MonoDevelop.Core/MonoDevelop.Projects

1 file changed

+1
-0
lines changed

main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ public async Task<CoreCompileEvaluationResult> GetItemsFromCoreCompileDependenci
782782
ctx.LoadReferencedProjects = false;
783783
ctx.BuilderQueue = BuilderQueue.ShortOperations;
784784
ctx.LogVerbosity = MSBuildVerbosity.Quiet;
785+
ctx.GlobalProperties.SetValue ("DesignTimeBuild", "true");
785786

786787
var evalResult = await project.RunTargetInternal (monitor, dependsList, config.Selector, ctx);
787788
if (evalResult != null && evalResult.Items != null) {

0 commit comments

Comments
 (0)