with in the sample some method and NameSpace was obsoleted ,and could not find any docs to solve this problem. CoreWebView2UpdateRuntimeResult webView.CoreWebView2.Environment.UpdateRuntimeAsync()