httpruntime targetframework将在控制台应用程序中运行 [英] httpruntime targetframework will it work in console application

查看:234
本文介绍了httpruntime targetframework将在控制台应用程序中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在.NET Framework 4.5中构建了一个控制台应用程序,它通过HTTPWebRequest交换数据。

I have built a console app in .NET Framework 4.5, which is exchanging data via HTTPWebRequest.

现在由于某些TLS更新,我需要将我的框架更新到4.6。

Now due to certain TLS update, I need to update my framework to 4.6.

如果我们在web.config中的httpruntime中更改目标框架,我已经看到基于Web的项目,它可以工作很好。

I have seen that for web-based project if we change the targetframework in httpruntime inside web.config, it works fine.

我的问题是:它是否适用于控制台应用程序?

My question is: will it work for console app too?

感谢您的帮助

请记得在帮助您或"投票"的帖子上点击"标记为答案"有用的"

Please remember to click 'Mark as Answer' on the post that helps you or "Vote As Helpful"

推荐答案

尝试失败是没有害处的,你已经学到了什么而不仅仅是想到它: - )
There is no harm in trying as if it fails you have learn something rather than just thinking about it :-)


这篇关于httpruntime targetframework将在控制台应用程序中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆