Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
fixed dependency issue with non-published assemblies
Browse files Browse the repository at this point in the history
  • Loading branch information
Goncalo Oliveira committed Nov 26, 2020
1 parent 523cd93 commit 0021ea2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/AssemblyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private Assembly OnResolving( AssemblyLoadContext context, AssemblyName name )
var dependency = loadContext.LoadFromAssemblyPath( path );

Console.WriteLine( $"Loaded dependency {Path.GetFileName( path )}." );

return ( dependency );
}
catch ( Exception ex )
{
Expand Down
2 changes: 1 addition & 1 deletion src/FunctionServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal static class FunctionServiceExtensions

public static void AddFunctionServices( this IServiceCollection services, IConfiguration configuration )
{
var type = AssemblyResolver.Default.Assembly.GetType( typeName);
var type = AssemblyResolver.Default.Assembly.GetType( typeName );

if ( type == null )
{
Expand Down
2 changes: 1 addition & 1 deletion src/faas-run.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Version>1.2</Version>
<Version>1.3</Version>
<Authors>Goncalo Oliveira</Authors>
<Company>RedPanda Ltd</Company>
<Description>FaaS runner for ASPNET functions</Description>
Expand Down

0 comments on commit 0021ea2

Please sign in to comment.