diff --git a/src/Microsoft.DocAsCode.Metadata.ManagedReference/ExtractMetadataWorker.cs b/src/Microsoft.DocAsCode.Metadata.ManagedReference/ExtractMetadataWorker.cs index 78d7baad612..062a899fa9f 100644 --- a/src/Microsoft.DocAsCode.Metadata.ManagedReference/ExtractMetadataWorker.cs +++ b/src/Microsoft.DocAsCode.Metadata.ManagedReference/ExtractMetadataWorker.cs @@ -23,7 +23,10 @@ namespace Microsoft.DocAsCode.Metadata.ManagedReference public sealed class ExtractMetadataWorker : IDisposable { - private readonly Lazy _workspace = new Lazy(() => MSBuildWorkspace.Create()); + private readonly Lazy _workspace = new Lazy(() => MSBuildWorkspace.Create(new Dictionary + { + { "Configuration", "Release" } + })); private static readonly string[] SupportedSolutionExtensions = { ".sln" }; private static readonly string[] SupportedProjectName = { "project.json" }; private static readonly string[] SupportedProjectExtensions = { ".csproj", ".vbproj" };