Skip to content

Commit 4253cd9

Browse files
committed
Fix detecting Preprocessors
1 parent 1a2764c commit 4253cd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ApiCodeGenerator.MSBuild/ApiCodeGenerator.MSBuild.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<description>Adds API client generation to the project based on the NSwag file and the API description document.</description>
99
<repository type="git" url="$repository$" />
1010
<dependencies>
11-
<dependency id="Microsoft.Extensions.ApiDescription.Client" version="5.0" />
11+
<dependency id="Microsoft.Extensions.ApiDescription.Client" version="10.0" />
1212
<dependency id="NSwag.MSBuild" version="$nswagVersion$" />
1313
</dependencies>
1414
<license type="file">LICENSE</license>

src/ApiCodeGenerator.MSBuild/Console/GenerateCommand.cs

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

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

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

0 commit comments

Comments
 (0)