2

我已經設置了Visual Studio 2012 windows phone開發環境,除了應用內購買以外,一切運行良好。我遇到的問題是,當我使用Windows.ApplicationModel.Store.CurrentApp我沒有得到任何錯誤,但進行測試,如果我使用Windows.ApplicationModel.Store.CurrentAppSimulator,我得到以下錯誤:CurrentAppSimulator不適用於測試應用程序內購買

The type or namespace name 'CurrentAppSimulator' could not be found (are you missing a using directive or an assembly reference?) 

看來CurrentAppSimulator類在Windows.ApplicationModel.Store包中不可用。 有人知道什麼是錯的?

我會很感激任何幫助。

謝謝。

回答

3

Windows Phone 8沒有像Windows Store應用程序那樣的CurrentAppSimulator(請注意支持的平臺在http://bit.ly/15HdfbR的底部)。

相反,你需要使用這裏列出的技術: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689%28v=vs.105%29.aspx

這些步驟描述瞭如何下載和使用模擬應用程序內購買圖書館在Windows Phone仿真應用內購買8

模擬程序內購買圖書館可在這裏:http://code.msdn.microsoft.com/wpapps/Mock-In-App-Purchase-33080f0c

祝你好運!

+0

感謝加里的解釋。 – Jeet 2013-02-27 09:20:33