To work around the limitation, try an alternative. Add the file to your project (not to resources) using Add Existing command. The file will appear in Solution Explorer. Select it, go to its properties, and specify “Build Action: Embedded resource”.
Then use this code:
Dim stream As Stream = Assembly.GetEntryAssembly().GetManifestResourceStream("MyNamespace.MyFile.ext")
Dim bytes As Byte() = New BinaryReader(stream).ReadBytes(stream.Length)
Replace MyNamespace, MyFile and ext with corresponding program namespace, filename, extension. (To clarify the resource names, see the Dim names = Assembly.GetEntryAssembly().GetManifestResourceNames()
variable during debugging).