Skip to content

Update target frameworks #2341

Update target frameworks

Update target frameworks #2341

Triggered via pull request February 19, 2025 21:50
Status Failure
Total duration 2m 48s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
Analyze (csharp)
Member 'System.Threading.Tasks.ValueTask<V> BitFaster.Caching.IAsyncCache<K, V>.GetOrAddAsync<TArg>(K, System.Func<K, TArg, System.Threading.Tasks.Task<V>>, TArg)' exists on
Analyze (csharp)
Member 'bool BitFaster.Caching.IAsyncCache<K, V>.TryRemove(K, out V)' exists on
Analyze (csharp)
Member 'bool BitFaster.Caching.IAsyncCache<K, V>.TryRemove(System.Collections.Generic.KeyValuePair<K, V>)' exists on
Analyze (csharp)
Cannot add interface member 'System.Threading.Tasks.ValueTask<V> BitFaster.Caching.IAsyncCacheExt<K, V>.GetOrAddAsync<TArg>(K, System.Func<K, TArg, System.Threading.Tasks.Task<V>>, TArg)' to lib/netstandard2.0/BitFaster.Caching.dll because it does not exist on
Analyze (csharp)
Cannot add interface member 'bool BitFaster.Caching.IAsyncCacheExt<K, V>.TryRemove(K, out V)' to lib/netstandard2.0/BitFaster.Caching.dll because it does not exist on
Analyze (csharp)
Cannot add interface member 'bool BitFaster.Caching.IAsyncCacheExt<K, V>.TryRemove(System.Collections.Generic.KeyValuePair<K, V>)' to lib/netstandard2.0/BitFaster.Caching.dll because it does not exist on
Analyze (csharp)
Member 'V BitFaster.Caching.ICache<K, V>.GetOrAdd<TArg>(K, System.Func<K, TArg, V>, TArg)' exists on
Analyze (csharp)
Member 'bool BitFaster.Caching.ICache<K, V>.TryRemove(K, out V)' exists on
Analyze (csharp)
Member 'bool BitFaster.Caching.ICache<K, V>.TryRemove(System.Collections.Generic.KeyValuePair<K, V>)' exists on
Analyze (csharp)
Member 'void BitFaster.Caching.ICacheEvents<K, V>.ItemUpdated.add' exists on
Analyze (csharp)
IsTrimmable and EnableTrimAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example:
Analyze (csharp)
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
Analyze (csharp)
IsTrimmable and EnableTrimAnalyzer are not supported for the target framework. Consider multi-targeting to a supported framework to enable trimming, and set IsTrimmable only for the supported frameworks. For example:
Analyze (csharp)
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
Analyze (csharp): BitFaster.Caching/Atomic/AtomicEx.cs#L28
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): BitFaster.Caching/Atomic/AtomicEx.cs#L26
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): BitFaster.Caching/Lru/ConcurrentLru.cs#L49
Change return type of method 'CreateExpireAfter' from 'BitFaster.Caching.ICache<K, V>' to 'BitFaster.Caching.Lru.ConcurrentLruCore<K, V, BitFaster.Caching.Lru.LongTickCountLruItem<K, V>, BitFaster.Caching.Lru.DiscretePolicy<K, V>, TP>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
Analyze (csharp): BitFaster.Caching/Lru/ConcurrentLru.cs#L43
Change return type of method 'CreateExpireAfterAccess' from 'BitFaster.Caching.ICache<K, V>' to 'BitFaster.Caching.Lru.ConcurrentLruCore<K, V, BitFaster.Caching.Lru.LongTickCountLruItem<K, V>, BitFaster.Caching.Lru.AfterAccessPolicy<K, V>, TP>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
Analyze (csharp): BitFaster.Caching/Atomic/AtomicEx.cs#L26
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): BitFaster.Caching/Atomic/AtomicEx.cs#L28
Possible multiple enumerations of 'IEnumerable' collection. Consider using an implementation that avoids multiple enumerations. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1851)
Analyze (csharp): BitFaster.Caching/Lru/ConcurrentLru.cs#L49
Change return type of method 'CreateExpireAfter' from 'BitFaster.Caching.ICache<K, V>' to 'BitFaster.Caching.Lru.ConcurrentLruCore<K, V, BitFaster.Caching.Lru.LongTickCountLruItem<K, V>, BitFaster.Caching.Lru.DiscretePolicy<K, V>, TP>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)
Analyze (csharp): BitFaster.Caching/Lru/ConcurrentLru.cs#L43
Change return type of method 'CreateExpireAfterAccess' from 'BitFaster.Caching.ICache<K, V>' to 'BitFaster.Caching.Lru.ConcurrentLruCore<K, V, BitFaster.Caching.Lru.LongTickCountLruItem<K, V>, BitFaster.Caching.Lru.AfterAccessPolicy<K, V>, TP>' for improved performance (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1859)