Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OmniSharp.MSBuild.ProjectLoader The "GetReferenceNearestTargetFrameworkTask" task was not found #2510

Closed
boris-741 opened this issue Sep 11, 2018 · 11 comments

Comments

@boris-741
Copy link

boris-741 commented Sep 11, 2018

Environment data
dotnet --info output:

Пакет SDK для .NET Core (отражающий любой global.json):
 Version:   2.1.401
 Commit:    91b1c13032

Среда выполнения:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.401\

Host (useful for support):
  Version: 2.1.3
  Commit:  124038c13e

.NET Core SDKs installed:
  2.1.401 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

VS Code version:
C# Extension version:

Версия: 1.27.1 (system setup)
Фиксация: 5944e81f3c46a3938a82c701f96d7a59b074cfdc
Дата: 2018-09-06T09:21:10.934Z
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Архитектура: ia32

Steps to reproduce
after the last update Omni Sharp stopped working
log:

Starting OmniSharp server at 9/11/2018, 2:03:34 PM
    Target: c:\Project\Test\Test.sln

OmniSharp server started.
    Path: C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\OmniSharp.exe
    PID: 6744

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.1.7601.65536 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 15.0 - "C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin"
            CscToolExe = csc.exe
            CscToolPath = C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin\Roslyn
            MSBuildExtensionsPath = C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild
            MSBuildToolsPath = C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'c:\Project\Test'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.Stdio.Host
        Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'c:\Project\Test\Test.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Project\Test\Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Project\Test\Assembly-CSharp-firstpass.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Project\Test\Assembly-CSharp-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Project\Test\Assembly-CSharp-Editor-firstpass.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'c:\Project\Test'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Project\Test\Assembly-CSharp.csproj
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.Stdio.Host
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.Stdio.Host
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'c:\Project\Test' on host 5136.
[fail]: OmniSharp.MSBuild.ProjectLoader
        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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Project\Test\Assembly-CSharp.csproj'.
c:\Project\Test\Assembly-CSharp.csproj
C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Project\Test\Assembly-CSharp-firstpass.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file 'c:\Project\Test\Assembly-CSharp-firstpass.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project 'c:\Project\Test\Assembly-CSharp-firstpass.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Project\Test\Assembly-CSharp-Editor.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Project\Test\Assembly-CSharp-Editor.csproj'.
c:\Project\Test\Assembly-CSharp-Editor.csproj
C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Project\Test\Assembly-CSharp-Editor-firstpass.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Project\Test\Assembly-CSharp-Editor-firstpass.csproj'.
c:\Project\Test\Assembly-CSharp-Editor-firstpass.csproj
C:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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:\Users\borr\.vscode\extensions\ms-vscode.csharp-1.16.0\.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

[fail]: OmniSharp.MSBuild.ProjectManager
        Attemped to update project that is not loaded: c:\Project\Test\Assembly-CSharp.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Assembly-CSharp-firstpass
[fail]: OmniSharp.MSBuild.ProjectManager
        Attemped to update project that is not loaded: c:\Project\Test\Assembly-CSharp-Editor.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attemped to update project that is not loaded: c:\Project\Test\Assembly-CSharp-Editor-firstpass.csproj

OS Windows 7 SP1, Unity 2018.1 project

@johnnyreilly
Copy link

johnnyreilly commented Sep 11, 2018

I'm hitting this too - I think others maybe as well: OmniSharp/omnisharp-roslyn#1094

I think this issue may be a dupe of #2509 and #2507 also

@boris-741
Copy link
Author

boris-741 commented Sep 11, 2018

Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "C:\Users\borr.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin"

I had previously installed the MS Studio 2015 but I removed it
everything worked well on version 1.15

@DustinCampbell
Copy link
Member

@boris-741: Could you try setting the following option and then provide your OmnISharp log? That should provide quite a bit more information that might help us find the issue.

{
    "omnisharp.loggingLevel": "debug"
}

@boris-741
Copy link
Author

other system the same problem OS Win10 "omnisharp.loggingLevel": "debug"

Starting OmniSharp server at 9/11/2018, 10:02:04 PM
Target: c:\Project\Unity\MatchMgrGibrid\MatchMgrGibrid.sln

OmniSharp server started.
Path: C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\OmniSharp.exe
PID: 8252

Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to 'C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\MSBuild.exe'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 15.0 - "C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin"
CscToolExe = csc.exe
CscToolPath = C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Roslyn
MSBuildExtensionsPath = C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild
MSBuildToolsPath = C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Project\Unity\MatchMgrGibrid'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.Stdio.Host
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\Project\Unity\MatchMgrGibrid\MatchMgrGibrid.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp-Editor.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Project\Unity\MatchMgrGibrid'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.Stdio.Host
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp.csproj
info: OmniSharp.Stdio.Host
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Project\Unity\MatchMgrGibrid' on host 4076.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp-Editor.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
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 in the project file, or in the *.tasks files located in the "C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp-Editor.csproj'.
c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp-Editor.csproj
C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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 in the project file, or in the *.tasks files located in the "C:\Users\Boris.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

Update project: Assembly-CSharp
[fail]: OmniSharp.MSBuild.ProjectManager
Attemped to update project that is not loaded: c:\Project\Unity\MatchMgrGibrid\Assembly-CSharp-Editor.csproj

@OliverAge24
Copy link

I'm getting the same problem, I think.

Starting OmniSharp server at 9/11/2018, 11:37:55 PM
Target: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Twitch Game 2 Repo.sln

OmniSharp server started.
Path: C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\OmniSharp.exe
PID: 15908

Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to 'C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\MSBuild.exe'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 15.0 - "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin"
CscToolExe = csc.exe
CscToolPath = C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Roslyn
MSBuildExtensionsPath = C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild
MSBuildToolsPath = C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.Stdio.Host
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Twitch Game 2 Repo.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-firstpass.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor-firstpass.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo'.
info: OmniSharp.MSBuild.ProjectManager
Loading project: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp.csproj
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.Stdio.Host
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
info: OmniSharp.Stdio.Host
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo' on host 5708.
fail: OmniSharp.MSBuild.ProjectLoader
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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp.csproj'.
f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp.csproj
C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

Loading project: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-firstpass.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-firstpass.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-firstpass.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor.csproj
fail: OmniSharp.MSBuild.ProjectLoader
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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor.csproj'.
f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor.csproj
C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

Loading project: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor-firstpass.csproj
fail: OmniSharp.MSBuild.ProjectLoader
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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor-firstpass.csproj'.
f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor-firstpass.csproj
C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): 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 in the project file, or in the *.tasks files located in the "C:\Users\super.vscode\extensions\ms-vscode.csharp-1.16.0.omnisharp\1.32.4\msbuild\15.0\Bin" directory.

Attemped to update project that is not loaded: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp.csproj
info: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp-firstpass
fail: OmniSharp.MSBuild.ProjectManager
Attemped to update project that is not loaded: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attemped to update project that is not loaded: f:\Unity Games\Twitch Game 2\Twitch Game 2 Repo\Assembly-CSharp-Editor-firstpass.csproj

@JoeKazz
Copy link

JoeKazz commented Sep 12, 2018

Totally blows you out of the water from using Omnisharp 1.16 on any level. Is there an easy way to rollback to 1.15 until this is fixed? (I'm new to GitHub world, so I'm used to just going to a different install package to backtrack. Any chance on that happening here?)

@rchande
Copy link

rchande commented Sep 12, 2018

We believe we have identified the issue and we've created a beta of the C# extension that includes the fix. Please install the beta VSIX (https://github.com/OmniSharp/omnisharp-vscode/releases/download/v1.16.1-beta1/csharp-1.16.1-beta1.vsix) and let us know if that resolves the problem

@liranjulia
Copy link

@rchande The fix seems to be working here, thanks!!

@OliverAge24
Copy link

Brilliant, that was fast, thanks!

I'll test tonight, cheers!

@boris-741
Copy link
Author

fix with 1.16.1

@vlab22
Copy link

vlab22 commented Apr 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants