@@ -66,22 +66,18 @@ public static Summary[] Run(BenchmarkRunInfo[] benchmarkRunInfos)
66
66
return RunWithExceptionHandling ( ( ) => RunWithDirtyAssemblyResolveHelper ( benchmarkRunInfos ) ) ;
67
67
}
68
68
69
- /// <summary>
70
- /// Supported only on Full .NET Framework. Not recommended.
71
- /// </summary>
72
69
[ PublicAPI ]
73
70
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
71
+ [ Obsolete ( "This method will be removed soon as it is not supported in .NET Core" ) ]
74
72
public static Summary RunUrl ( string url , IConfig config = null )
75
73
{
76
74
using ( DirtyAssemblyResolveHelper . Create ( ) )
77
75
return RunWithExceptionHandling ( ( ) => RunUrlWithDirtyAssemblyResolveHelper ( url , config ) ) ;
78
76
}
79
77
80
- /// <summary>
81
- /// Supported only on Full .NET Framework. Not recommended.
82
- /// </summary>
83
78
[ PublicAPI ]
84
79
[ EditorBrowsable ( EditorBrowsableState . Never ) ]
80
+ [ Obsolete ( "This method will be removed soon as it is not supported in .NET Core" ) ]
85
81
public static Summary RunSource ( string source , IConfig config = null )
86
82
{
87
83
using ( DirtyAssemblyResolveHelper . Create ( ) )
@@ -115,6 +111,7 @@ private static Summary[] RunWithDirtyAssemblyResolveHelper(Type[] types, IConfig
115
111
private static Summary [ ] RunWithDirtyAssemblyResolveHelper ( BenchmarkRunInfo [ ] benchmarkRunInfos )
116
112
=> BenchmarkRunnerClean . Run ( benchmarkRunInfos ) ;
117
113
114
+ #pragma warning disable CS0618 // Use of obsolete symbol
118
115
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
119
116
private static Summary RunUrlWithDirtyAssemblyResolveHelper ( string url , IConfig config = null )
120
117
=> RuntimeInformation . IsFullFramework
@@ -126,6 +123,7 @@ private static Summary RunSourceWithDirtyAssemblyResolveHelper(string source, IC
126
123
=> RuntimeInformation . IsFullFramework
127
124
? BenchmarkRunnerClean . Run ( BenchmarkConverter . SourceToBenchmarks ( source , config ) ) . Single ( )
128
125
: throw new InvalidBenchmarkDeclarationException ( "Supported only on Full .NET Framework" ) ;
126
+ #pragma warning restore CS0618 // Use of obsolete symbol
129
127
130
128
private static Summary RunWithExceptionHandling ( Func < Summary > run )
131
129
{
0 commit comments