当我将 windows 10 通用应用程序的应用程序放入商店时,平铺图像未显示

Tile Images are not Showing when i put app in store for windows 10 universal app

我使用下面的代码固定磁贴,这里我使用 TileNotificationsPack.dll 更新磁贴。

Uri Squarelogo = new Uri(ms-appx:///TileImages/150x150.jpg, UriKind.RelativeOrAbsolute);
Uri Widelogo = new Uri(ms-appx:///TileImages/310x150.jpg, UriKind.RelativeOrAbsolute);
Uri smalllogo = new Uri(ms-appx::///TileImages/30x30.jpg, UriKind.RelativeOrAbsolute);
SecondaryTile secondaryTile = new SecondaryTile(ShowId, title, ProjectName, tileActivationArguments, TileOptions.ShowNameOnLogo, Widelogo);
secondaryTile.ForegroundText = ForegroundText.Light;              
secondaryTile.WideLogo = Widelogo;
secondaryTile.Logo = Squarelogo;
secondaryTile.SmallLogo = smalllogo;
await secondaryTile.RequestCreateAsync();       

仅当我将应用程序放入商店时才在调试模式下显示的平铺图像不显示..

我在下面使用了这个代码,上次我为 150x150.jpg 和 30x30.jpg 使用了 250x250 大小的图像,现在我为图像使用了精确大小现在当应用程序在商店时磁贴正在工作..

Uri Squarelogo = new Uri(ms-appx:///TileImages/150x150.jpg, UriKind.RelativeOrAbsolute);
Uri smalllogo = new Uri(ms-appx::///TileImages/30x30.jpg, UriKind.RelativeOrAbsolute);
var tileActivationArguments = "MySecondaryTile Was Pinned At " + DateTime.Now.ToLocalTime().ToString();

SecondaryTile secondaryTile = new SecondaryTile(ShowId, title, tileActivationArguments, Squarelogo, TileSize.Square150x150);
secondaryTile.VisualElements.ForegroundText = ForegroundText.Light;
secondaryTile.VisualElements.Wide310x150Logo = Squarelogo;
secondaryTile.VisualElements.Square30x30Logo = smalllogo;
secondaryTile.VisualElements.ShowNameOnSquare150x150Logo = true;
secondaryTile.VisualElements.ShowNameOnWide310x150Logo = true;

await secondaryTile.RequestCreateAsync();