Visual Studio 2017 - 如何更改现有项目的 .NET 版本? [英] Visual Studio 2017 - how to change .NET version of existing project?

查看:94
本文介绍了Visual Studio 2017 - 如何更改现有项目的 .NET 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了新的 VS 并打开了现有项目.

I just installed new VS and opened existing project.

显示错误:

"The C# project "..." is targeting ".NETFramework,Version 4.7" which is not installed on this machine...

但我刚刚安装了新的 VS(2018 年 11 月)并且很确定它带有更新的 .NET.

But I just installed new VS (November 2018) and pretty sure it comes with newer .NET.

我应该更改哪些配置设置才能使其正常工作(使用正确的 .NET 版本打开现有项目)?

What configuration settings I should change to make this work (open existing project with correct .NET version)?

推荐答案

右键单击项目,Properties -->应用程序 -->目标框架.目标框架下拉列表显示您机器上安装的框架列表.

Right click on project, Properties --> Application --> Target framework. Target framework dropdown displays list of frameworks installed on your machine.

这篇关于Visual Studio 2017 - 如何更改现有项目的 .NET 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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