Skip to content

Commit 22e191b

Browse files
committed
fix: Add using directives so that docfx does not generate warnings
It is necessary to add the "using" explicitly in each file .cs so that docfx(v2.59.4) can recognize the types such as IEnumerable or ArgumentNullException.
1 parent ad87611 commit 22e191b

6 files changed

Lines changed: 23 additions & 6 deletions

File tree

src/Attributes/PluginAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace CPlugin.Net;
1+
using System;
2+
3+
namespace CPlugin.Net;
24

35
/// <summary>
46
/// This attribute is required so that the plugin loader can create the instance of the type that implements the contract.

src/Core/Configuration/CPluginConfigurationBase.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace CPlugin.Net;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
5+
namespace CPlugin.Net;
26

37
/// <summary>
48
/// Represents a configuration source to obtain the plugin files.

src/Core/Configuration/CPluginEnvConfiguration.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace CPlugin.Net;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
5+
namespace CPlugin.Net;
26

37
/// <summary>
48
/// Represents a configuration to get the plugin files from an environment variable.

src/Core/Configuration/CPluginJsonConfiguration.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.Extensions.Configuration;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using Microsoft.Extensions.Configuration;
25

36
namespace CPlugin.Net;
47

src/Core/PluginLoadContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Reflection;
1+
using System;
2+
using System.Reflection;
23
using System.Runtime.Loader;
34

45
namespace CPlugin.Net;

src/Core/PluginLoader.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Reflection;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Reflection;
25

36
namespace CPlugin.Net;
47

0 commit comments

Comments
 (0)