// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem;
usingSystem.Collections.Immutable;
usingSystem.Globalization;
usingSystem.Globalization;
usingMicrosoft.CodeAnalysis.CSharp;
usingMicrosoft.CodeAnalysis.CSharp;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.Scripting.CSharp
namespaceMicrosoft.CodeAnalysis.Scripting.CSharp
{
{
...
@@ -44,12 +46,12 @@ public override Compilation CreateSubmission(Script script)
...
@@ -44,12 +46,12 @@ public override Compilation CreateSubmission(Script script)
scriptClassName:submissionTypeName,
scriptClassName:submissionTypeName,
usings:script.Options.Namespaces,
usings:script.Options.Namespaces,
optimizationLevel:OptimizationLevel.Debug,// TODO
optimizationLevel:OptimizationLevel.Debug,// TODO
checkOverflow:false,// TODO
checkOverflow:false,// TODO
allowUnsafe:true,// TODO
allowUnsafe:true,// TODO
platform:Platform.AnyCpu,
platform:Platform.AnyCpu,
warningLevel:4,
warningLevel:4,
xmlReferenceResolver:null,// don't support XML file references in interactive (permissions & doc comment includes)
xmlReferenceResolver:null,// don't support XML file references in interactive (permissions & doc comment includes)
sourceReferenceResolver:SourceFileResolver.Default,// TODO