Skip to content

Commit 8dcd1ff

Browse files
committed
Fix CLS Compliance error in System.Composition test library
dotnet/roslyn#4293 CLS Compliance warning CS3016 is reported on non-public members
1 parent 2a4bd6a commit 8dcd1ff

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/System.Composition/perftests/WebBenchmarks.cs

+2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ internal class LightweightWebBenchmark : WebBenchmark
6565
[Export]
6666
private class WebServer
6767
{
68+
#pragma warning disable 3016
6869
[Import, SharingBoundary(Web.Boundaries.Web)]
70+
#pragma warning restore 3016
6971
public ExportFactory<Web.OperationRoot> WebScopeFactory { get; set; }
7072
}
7173

src/System.Composition/scenarios/TestLibrary/TestClass.cs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace TestLibrary
1212
{
1313
[Export]
14+
[CLSCompliant(false)]
1415
public class ClassWithDependecy
1516
{
1617
public TestDependency _dep;
@@ -22,6 +23,7 @@ public ClassWithDependecy(TestDependency dep)
2223
}
2324

2425
[Export]
26+
[CLSCompliant(false)]
2527
public class ClassWithDependecyAndSameBaseType
2628
{
2729
public IDependency _dep;

0 commit comments

Comments
 (0)