2012-12-14 20 views
5

Tôi biết vấn đề MSApp.execUnsafeLocalFunction khi nói đến thao tác DOM trong jQuery, nhưng ngay cả một phiên bản sửa đổi của jQuery link here xác minh không thành công với cửa hàng Windows.Tại sao bên thứ ba của tôi không hoạt động như KnockoutJS vượt qua Windows App Certification Kit?

Dường như mẫu ở đây là tất cả các tập lệnh Nuget đã kéo không xác minh được. Ai cũng hiểu tại sao?

Error Found: The bytecode generation test detected the following errors: 

File \\?\C:\Program Files\...\Scripts\require.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\r.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\knockout-2.2.0.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\knockout-2.2.0.debug.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\knockout.mapping-latest.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\knockout.mapping-latest.debug.js has JavaScript syntax or other problems. 
File \\?\C:\Program Files\...\Scripts\jquery-1.8.3.js has JavaScript syntax or other problems. 

Trả lời

5

Thử lưu tệp của bạn bằng mã hóa đánh dấu thứ tự byte UTF8 (BOM). Tôi đã có một vấn đề tương tự và đã giải quyết được vấn đề.

trong VS> Menu File> Advanced Save Options> chọn UTF-8 với chữ ký bảng mã 65001

http://msdn.microsoft.com/en-us/library/windows/apps/hh849088.aspx Không cụ thể đối với vấn đề của bạn, nhưng bytecode bộ nhớ đệm.

HTH

+0

Được rồi! Nó hoạt động! –

Các vấn đề liên quan