我想知道如何打开官方Facebook应用程序,以便从Windows Phone上的C#代码共享URI.常见的Uri-Scheme "fb://"可能会打开App,但似乎没有参数可行.我有这样的想法,但它对我不起作用:
LaunchUriAsync(new Uri("fb://publish/profile/me?text=foo"));
Run Code Online (Sandbox Code Playgroud)
当然我知道我可以使用ShareTask但不是我想要的.你可以看看Spotfy应用程序,它确切地说,我想做什么,共享一首歌.
感谢您的帮助和解答!
PS:顺便提一下Twitter ......
我想创建一个可以在Windows的Azure应用服务上托管的Docker映像。我的应用程序基于ASP.NET Core 2.1,根据.NET图像图像的官方列表,我应该可以简单地使用microsoft/dotnet:2.1-aspnetcore-runtime。
我可以在Windows计算机上成功构建Dockerfile,并且能够在其中运行它而不会出现问题。但是在将其上传到Docker Hub并将其设置为App Service的Docker映像后,我收到以下错误消息:
无法在Windows容器中运行此操作系统/版本。支持的最大操作系统版本是10.0.14393.9999。
根据Azure App Services文档,它应支持microsoft/dotnet:2.1-aspnetcore-runtime作为预安装的父映像之一。
在检查Docker映像时,我发现对于Azure App Services而言,所使用的映像似乎太新了:
"Architecture": "amd64",
"Os": "windows",
"OsVersion": "10.0.17134.285" <-- too new
Run Code Online (Sandbox Code Playgroud)
经过研究,我在这篇博客文章中发现 Windows上的Azure App Services可能仅接受microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-sac2016图像。所以我试图用这些来重建Docker镜像。
这次,App Service接受了图像,但无法启动它,并引发了以下日志:
02/10/2018 14:15:09.437 ERROR - Site: rothiewindockerdemo - Image pull reported error. Image: robinmanuelthiel/contosomaintenance-api:latest-windows-sac2016. failed to register layer: re-exec error: exit status 1: output: remove \\?\C:\DockerData\windowsfilter\93b716197958ceb58006ff3d978fcb3202f7866d00d6d8d69513cf0478a17a7f\UtilityVM\Files\Windows\servicing\Packages\Microsoft-UtilityVM-Core-Package~31bf3856ad364e35~amd64~~10.0.14393.0.cat: The process cannot access the file because it is being used by another process. …Run Code Online (Sandbox Code Playgroud) 我想通过后台任务更新我的辅助磁贴.我的问题是,迭代所有固定的瓷砖SecondaryTile.FindAllAsync();失败并退出我的背景任务代码1.
我不知道,为什么不可能这样做,为什么我没有任何例外以及为什么这在主应用程序中有效.这可能是一个记忆问题吗?
我的代码看起来像这样:
public sealed class SecondaryTileUpdater : IBackgroundTask
{
public async void Run(IBackgroundTaskInstance taskInstance)
{
var list = await SecondaryTile.FindAllAsync(); // Here it fails :(
foreach (SecondaryTile liveTile in list)
{
// Update Secondary Tiles
// (...)
}
}
}Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
The program '[5644] backgroundTaskHost.exe: Managed (v4.0.30319)' has exited with code 1 (0x1).Run Code Online (Sandbox Code Playgroud)
任何想法,可能是什么原因?感谢您的任何帮助!