Add compilation options to dependency context
This commit is contained in:
parent
697e99ea6e
commit
e39d30ba9c
8 changed files with 223 additions and 30 deletions
|
@ -255,8 +255,11 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
|
||||
if (compilationOptions.PreserveCompilationContext == true)
|
||||
{
|
||||
var dependencyContext = DependencyContextBuilder.FromLibraryExporter(
|
||||
libraryExporter, context.TargetFramework.DotNetFrameworkName, context.RuntimeIdentifier);
|
||||
var dependencyContext = DependencyContextBuilder.Build(compilationOptions,
|
||||
libraryExporter,
|
||||
args.ConfigValue,
|
||||
context.TargetFramework,
|
||||
context.RuntimeIdentifier);
|
||||
|
||||
var writer = new DependencyContextWriter();
|
||||
var depsJsonFile = Path.Combine(intermediateOutputPath, context.ProjectFile.Name + "dotnet-compile.deps.json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue