用VS2013 做了個WP8.1的APP ,提交商店出錯:
-
The debug configuration test detected the following errors:
- The binary Note.dll is built in debug mode.
-
Windows Phone Store doesn’t allow a debug version of an app.
-
Please make sure the app isn't linking to any debug versions of a framework and it is built with the release configuration.
需要生成release 模式下的包、
但是更改爲release 模式後出錯:
警告 1 未能解析此引用。未能找到程序集“microsoft.phone.controls.toolkit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b772ad94eb9ca604, processorArchitecture=MSIL”。請檢查磁盤上是否存在該程序集。 如果您的代碼需要此引用,則可能出現編譯錯誤。
錯誤 3 The property 'IsTiltEnabled' does not exist on the type 'PhoneApplicationPage' in the XML namespace 'clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit'. F:\Users\Zeashon\Documents\Visual Studio 2013\Projects\Remember1\Remember\Remember\Remember\AddPage.xaml 16 5
錯誤 2 The property 'IsTiltEnabled' does not exist on the type 'PhoneApplicationPage' in the XML namespace 'clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit'. F:\Users\Zeashon\Documents\Visual Studio 2013\Projects\Remember1\Remember\Remember\Remember\MainPage.xaml 17 5
balabala
解決方法就是添加里面缺少的引用 dll 文件。
做法:把原本 debug 文件夾中的 microsoft.phone.controls.toolkit.dll 和 Microsoft.Phone.Controls.dll 文件粘貼到release 文件夾裏面(缺少什麼文件貼什麼、本例中缺少的是這兩個)