为什么不能总是在Mac的Visual Studio中更改目标框架? [英] Why can I not always change Target Framework in Visual Studio for Mac?

查看:101
本文介绍了为什么不能总是在Mac的Visual Studio中更改目标框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Visual Studio for Mac,由于某些原因,在我做的某些项目中,我可以更改目标框架,但是大多数情况下它都是灰色的:

I just downloaded Visual Studio for Mac and for some reason in some projects I've made, I can change the target framework, but most of the time it's greyed out:

有人知道如何始终能够更改目标框架吗?

Does anyone know how to always be able to change the target framework?

推荐答案

事实证明,当我第一次创建解决方案时,我使用了错误的模板.我应该使用了这个:

It turns out I had used the wrong template when I was first creating the solution. I should have used this one:

使用时,它使我可以选择适当的目标框架.

When used, it allows me to select the proper Target Framework.

这篇关于为什么不能总是在Mac的Visual Studio中更改目标框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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