platform-compat
platform-compat copied to clipboard
false PC001 warnings for MemoryMappedFile.CreateFromFile
All overloads trigger a "not supported on Linux+OSX" warning. But to my knowledge (which might be wrong) only the usage of named maps is unsupported on Linux.
From the source it looks implemented to me: https://github.com/dotnet/corefx/blob/master/src/System.IO.MemoryMappedFiles/src/System/IO/MemoryMappedFiles/MemoryMappedFile.Unix.cs and https://github.com/dotnet/corefx/blob/master/src/System.IO.MemoryMappedFiles/src/System/IO/MemoryMappedFiles/MemoryMappedView.Unix.cs
Hi @springy76 - yes you are correct, the tool is lacking context information in this case: since it depends on the value of a parameter passed to the methods.
This depends on #73, once we implement it, we can do this one.
Kind question: Is this project dead?
The latest NuGet package 0.2.12-alpha was released 1.5 years ago. Did this project get integrated into some other project I'm not aware of?
Currently I'm using:
- Microsoft.CodeAnalysis.FxCopAnalyzers 2.9.7
- Microsoft.DotNet.Analyzers.Compatibility 0.2.12-alpha
- Microsoft.VisualStudio.Threading.Analyzers 16.4.16
Could you at Microsoft please decide how you build your Namespaces? Canonically?
Where do I find a complete list of official Microsoft Analyzers?