Skip to content

Commit

Permalink
feat: add MetadataImportOptions.All to compilation options
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jul 29, 2020
1 parent bd285cd commit eeec095
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ protected override INamespaceSymbol CommonCreateErrorNamespaceSymbol(INamespaceS
Debug.Assert(options != null);
Debug.Assert(!isSubmission || options.ReferencesSupersedeLowerVersions);

// Modify compilation options.
options = options
.WithAllowUnsafe(true) // Allow unsafe.
;

var validatedReferences = ValidateReferences<CSharpCompilationReference>(references);

// We can't reuse the whole Reference Manager entirely (reuseReferenceManager = false)
Expand Down

0 comments on commit eeec095

Please sign in to comment.