Adding this in some main class like Program.cs or so on top of namespace solved this for me, cause adding another file like AssemblyInfo.cs just for SupportedOSPlatformAttribute doesn't seems to fit me.
[assembly: System.Runtime.Versioning.SupportedOSPlatform("windows")]