我如何修复“GetReferenceNearestTargetFrameworkTask”" Visual Studio中出错? [英] How do i fix the "GetReferenceNearestTargetFrameworkTask" Error in Visual Studio?

查看:414
本文介绍了我如何修复“GetReferenceNearestTargetFrameworkTask”" Visual Studio中出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直收到此错误(找不到"GetReferenceNearestTargetFrameworkTask"任务。请检查以下内容:1。)项目文件中任务的名称与任务类的名称相同。 2.)任务类是"公共"的。
并实现Microsoft.Build.Framework.ITask接口。 3.)使用< UsingTask>正确声明任务在项目文件中,或位于"C:\Program Files(x86)\ Microsoft Visual Studio \2017 \Community \ MSBuild \ 15.0 \ Bin"中的* .tasks文件中
目录。 项目6-8-5)同时让我的游戏Project 6-8-5统一。我如何修复此错误?

I keep getting this error (The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin" directory. Project 6-8-5) While making my game Project 6-8-5 in unity. How do i fix this error?

推荐答案

您好TNTMinecart54,

Hi TNTMinecart54,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

>>> 我如何修复"GetReferenceNearestTargetFrameworkTask"" Visual Studio中的错误?

>>>How do i fix the "GetReferenceNearestTargetFrameworkTask" Error in Visual Studio?

要修复此错误,请按照以下步骤操作:

To fix this error, please follow steps:

1。再次下载并启动/运行Visual Studio安装程序。

1.Download and start/run the Visual Studio Installer again.

2.虽然Visual Studio安装程序仍在运行,但请转到"单个组件"部分。选项卡

2.While the Visual Studio Installer is still running, go to the "Individual Components" tab

3.点击"NuGet包管理器" "代码工具"下的复选框选项。

3.Tick the "NuGet package manager" check-box that is under "Code tools" option.

4.单击"安装"进行安装。

4.Click Install to install it.

此处所在的屏幕截图:

重新启动Visual Studio并测试自动完成功能,如果已经选中,请取消选中>删除,重新打开安装程序,然后重新安装nuget包管理器。

Restart Visual Studio and test the auto-completion function, if it already checked, please uncheck->remove, reopen installer, then reinstall nuget package manager.

如果它不起作用,请 查看
这个问题
的答案,因为这是完全不同的问题。 希望这会有所帮助。

If it's not working, please check the answers from this question as that is a whole different issue.Hope this helps.


这篇关于我如何修复“GetReferenceNearestTargetFrameworkTask”&quot; Visual Studio中出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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