private static void WriteBytes(string physicalPath, string assetPath) { IOUtil.CreateFileDirectory(physicalPath); var bytes = AssemblyResource.LoadBytes(assetPath); File.WriteAllBytes(physicalPath, bytes); }