File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
using System ;
11
+ using System . Collections . Generic ;
11
12
using System . Linq ;
12
13
using System . Reflection ;
13
14
using RegisterOptions = React . TinyIoC . TinyIoCContainer . RegisterOptions ;
@@ -19,6 +20,16 @@ namespace React
19
20
/// </summary>
20
21
public static class Initializer
21
22
{
23
+ /// <summary>
24
+ /// Assemblies that are ignored when finding <see cref="IAssemblyRegistration"/>
25
+ /// implementations to register dependencies.
26
+ /// </summary>
27
+ private readonly static ISet < string > _obsoleteAssemblies = new HashSet < string >
28
+ {
29
+ "React.JavaScriptEngine.VroomJs" ,
30
+ "React.JavaScriptEngine.ClearScriptV8" ,
31
+ } ;
32
+
22
33
/// <summary>
23
34
/// Intialise ReactJS.NET
24
35
/// </summary>
@@ -64,9 +75,10 @@ private static bool IsReactAssembly(Assembly assembly)
64
75
{
65
76
var nameWithoutVersion = assembly . FullName . Split ( ',' ) [ 0 ] ;
66
77
return
67
- nameWithoutVersion == "React" ||
78
+ ( nameWithoutVersion == "React" ||
68
79
nameWithoutVersion . StartsWith ( "React." ) ||
69
- nameWithoutVersion . EndsWith ( ".React" ) ;
80
+ nameWithoutVersion . EndsWith ( ".React" ) ) &&
81
+ ! _obsoleteAssemblies . Contains ( nameWithoutVersion ) ;
70
82
}
71
83
72
84
/// <summary>
Original file line number Diff line number Diff line change 21
21
<DefineConstants >DEBUG;TRACE</DefineConstants >
22
22
<ErrorReport >prompt</ErrorReport >
23
23
<WarningLevel >4</WarningLevel >
24
+ <NoWarn >1607</NoWarn >
24
25
</PropertyGroup >
25
26
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
26
27
<PlatformTarget >AnyCPU</PlatformTarget >
30
31
<DefineConstants >TRACE</DefineConstants >
31
32
<ErrorReport >prompt</ErrorReport >
32
33
<WarningLevel >4</WarningLevel >
34
+ <NoWarn >1607</NoWarn >
33
35
</PropertyGroup >
34
36
<ItemGroup >
35
37
<Reference Include =" Microsoft.Owin" >
You can’t perform that action at this time.
0 commit comments