The “GetReferenceNearestTargetFrameworkTask” task was not found

前端 未结 5 431
无人共我
无人共我 2020-12-03 09:29

I have problem with autocompletion in VS 2017 Community.

Previously I had VS 2017 Enterprise from school, but key expired. So I moved to community.

Before,

5条回答
  •  死守一世寂寞
    2020-12-03 10:07

    I was seeing this issue with msbuild 15.6.82 on a build environment that does not have VisualStudio 2017, only VS Build Tools.

    Here's a PowerShell script that resolves this issue, it pretty much does the equivalent of previous answers in the VS Installer, but silently and waiting for completion.

    Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList 'modify --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" --quiet --add Microsoft.VisualStudio.Component.NuGet.BuildTools --add Microsoft.Net.Component.4.5.TargetingPack --norestart --force' -Wait -PassThru

提交回复
热议问题