File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/WebJobs.Script/Description/DotNet
test/WebJobs.Script.Tests/Description/DotNet Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ private static bool IsMinorMatchOrLowerPolicyEvaluator(AssemblyName requestedAss
155
155
{
156
156
AssemblyName runtimeAssemblyName = AssemblyNameCache . GetName ( runtimeAssembly ) ;
157
157
158
- return requestedAssembly . Version . Major == runtimeAssemblyName . Version . Major &&
159
- requestedAssembly . Version . Minor <= runtimeAssemblyName . Version . Minor ;
158
+ return requestedAssembly . Version == null || ( requestedAssembly . Version . Major == runtimeAssemblyName . Version . Major &&
159
+ requestedAssembly . Version . Minor <= runtimeAssemblyName . Version . Minor ) ;
160
160
}
161
161
162
162
private bool IsRuntimeAssembly ( AssemblyName assemblyName )
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public class FunctionAssemblyLoadContextTests
28
28
[ InlineData ( "Microsoft.Azure.WebJobs.Script, Version=3.0.0.0" ) ]
29
29
[ InlineData ( "Microsoft.Azure.WebJobs.Script.Grpc, Version=3.0.0.0" ) ]
30
30
[ InlineData ( "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0" ) ]
31
- [ InlineData ( "Microsoft.Azure.WebSites.DataProtection, Version=0.0.0.0 " ) ]
32
- [ InlineData ( "System.IO, Version=0.0.0.0 " ) ] // System.*
31
+ [ InlineData ( "Microsoft.Azure.WebSites.DataProtection" ) ]
32
+ [ InlineData ( "System.IO" ) ] // System.*
33
33
public void RuntimeAssemblies_AreLoadedInDefaultContext ( string assemblyName )
34
34
{
35
35
var functionContext = new FunctionAssemblyLoadContext ( AppContext . BaseDirectory ) ;
You can’t perform that action at this time.
0 commit comments