Web 浏览器不再支持 C#
webbrowser bug 我想与Web浏览器一起加入YouTube,但是我收到此消息,任何想法?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
webbrowser bug 我想与Web浏览器一起加入YouTube,但是我收到此消息,任何想法?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
Visual Studio中使用的浏览器仅是IE(Internet Explorer),并且由于大多数网站不再支持IE,因此大多数受欢迎的网站,例如YouTube,Twitch,Amazon,stack Overflow;)等。使用现代元素和HTML/JS/CSS在网站中可能无法使用IE,因此大多数网站要么尝试加载网站,要么只显示“您需要更新浏览器版本屏幕”(您现在正在遇到的内容)
编辑:我找到了如何使用WebView(不是即)这样网站可以正常工作
(注意:这是WebView1,而不是新的WebView2,请参阅 quaabaam 的答案,这是他/她给出的答案的链接”
web浏览器;指定IE版本”)
(注2:此链接是从2018年开始的,现在已经过去了4年,所以我不确定Microsoft博客文章上的代码示例是否可以使用,这是由于.NET 6以及它的方式改变您制作方法和更多内容的方式)
the browser used in visual studio is just IE (Internet Explorer) and since most websites doesn't support IE anymore, most popular sites like YouTube, Twitch, amazon, stack overflow ;) etc. use modern elements and the html/js/css in the website may not work with IE, so most websites either try to load the website or just show a "You need to update your browser version screen" (what you are experiencing right now)
EDIT: i found how to use Webview (not IE) so websites can work properly
https://blogs.windows.com/msedgedev/2018/05/09/modern-webview-winforms-wpf-apps/
(NOTE: This is WebView1, Not The Newer WebView2, Please See quaabaam 's answer, here is the link for the answer he/she gave "
Web Browser Control & Specifying the IE Version")
(NOTE 2: this link is from 2018 and its been 4 years now so im unsure if the code sample on the Microsoft blog post will work, this is due to .NET 6 and how it changes how you make methods and many more stuff)