platform-compat icon indicating copy to clipboard operation
platform-compat copied to clipboard

false PC001 warnings for MemoryMappedFile.CreateFromFile

Open springy76 opened this issue 7 years ago • 3 comments

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

springy76 avatar Nov 22 '17 11:11 springy76

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.

pjanotti avatar Dec 13 '17 23:12 pjanotti

This depends on #73, once we implement it, we can do this one.

OliaG avatar Jan 08 '18 19:01 OliaG

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?

springy76 avatar Nov 01 '19 15:11 springy76