C# 项目更新到Windows Phone 8后,反射停止工作

C# 项目更新到Windows Phone 8后,反射停止工作,c#,windows-phone-7,windows-phone-8,C#,Windows Phone 7,Windows Phone 8,以下是微软在wp 7.8中使用宽瓷砖的官方示例: // Get the new FlipTileData type. Type flipTileDataType = Type.GetType( "Microsoft.Phone.Shell.FlipTileData, Microsoft.Phone" ); // Get the ShellTile type so we can call the new version of "Update" that takes the new Tile te

以下是微软在wp 7.8中使用宽瓷砖的官方示例:

// Get the new FlipTileData type.
Type flipTileDataType = Type.GetType( "Microsoft.Phone.Shell.FlipTileData, Microsoft.Phone" );

// Get the ShellTile type so we can call the new version of "Update" that takes the new Tile templates.
Type shellTileType = Type.GetType( "Microsoft.Phone.Shell.ShellTile, Microsoft.Phone" );

它在wp7.8和wp8中工作,当编译为wp7应用程序时。但在将项目目标转换为wp8之后,两个请求都返回null。为什么?

你可以直接调用这些类型,你不需要在WP8上对它们使用反射。我知道,但我想为wp7.1-WP8保留一个tile manager类。然后我推荐一些类似MangoPollo的东西,在71上不起作用。已经测试过了。我的课堂将会更加实用。