所以使用await关键字调用async方法不会有问题。因为UI线程没有阻塞,UI的消息队列还有机会处理Post来的http异步请求结束的消息。
修复windows 7系统无法自动更新的问题
下载下面的小程序运行就好。
Reset Windows Update Components. Short link
<<http://go.microsoft.com/?linkid=9665683>>
This tool automates the most common fixes to issu?s with the Windows Update site.
Note this Fix it 50202 Solution has two modes Default and Aggressive.
You should run the Fix it solution in Default mode and determine if it resolves your problem with Windows Update before running it inAggressive mode.
The Update History section at <<http://windowsupdate.microsoft.com>> will be blank/empty after running the Fix It in AGGRESSIVEmode.
使用.net core 2.0的坑

2. 新的.NetStandard类型的Library才是未来,它可以同时被桌面App和CoreApp使用。特别是如果用了.NetStandard2.0的LIbrary,因为nuget restore的时候可以有兼容模式,这种Library就可以引用一些没有满足.NetStandard的老的NugetPackage.
建立Library项目是不要选.NetCore下面的项目,因为它们只能用这些Framework,

而如果选了.Net Standard项目,则可以用以下framework列表,这样它就可以被桌面项目使用了。

但是这个.Net Standard Library引用的其他NugetPackage不会自动被输出到桌面项目里,运行时会报错文件找不到。所以Library用到的NugetPackage还要自己手动加。 这里感觉应该有个选项开关类似于copy to local这样的才行啊。