Add the following line in <Application>node to the runtime directive file (usually named Default.rd.xmland found in the folder Properties).
<Namespace Name="System.Linq" Dynamic="Required All" Serialize="Required All" XmlSerializer="Required All"/>
Release .NET Native. , . , . runtime .
PS: runtime :
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Application>
<Assembly Name="*Application*" Dynamic="Required All" />
<Namespace Name="System.Linq" Dynamic="Required All" Serialize="Required All" XmlSerializer="Required All" />
</Application>
</Directives>