-
-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
If the project is published as single file
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>false</PublishTrimmed>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
the services.AddCarter() fails.
In the class DependencyContextAssemblyCatalog the method 'GetAssemblies' fails. due to the fact that the 'this.dependencyContext == null'
A check for null will solve this issue
the explicit use of ICsarterModules is now required:
builder.Services.AddCarter();
builder.Services.AddTransient<ICarterModule, ActorsModule>();
builder.Services.AddTransient<ICarterModule, ...>();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels