Skip to content

Commit dcf5407

Browse files
committed
Regress. Fix detecting preprocessors
1 parent 3d6dd87 commit dcf5407

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

ApiCodeGenerator.code-workspace

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/ApiCodeGenerator.MSBuild/Console/GenerateCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private async Task ExecuteAsync(InvocationContext context)
7272

7373
private IGenerationTaskFactory GetGenerationTaskFactory(string? nswagToolsPath)
7474
{
75-
var context = new AssemblyLoadContext("Generator Context");
75+
var context = AssemblyLoadContext.GetLoadContext(Assembly.GetCallingAssembly())!;
7676

7777
// регистриуем процесс резолва сборок
7878
AssemblyResolver.Register(context);

0 commit comments

Comments
 (0)