Skip to content

[ERROR:OmniSharp#ProjectFileInfo] The target "ResolveReferences" does not exist in the project. #1325

@psoszynski

Description

@psoszynski

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0)

Product Information:
Version: 1.0.0
Commit SHA-1 hash: e53429feb4

Runtime Environment:
OS Name: Windows
OS Version: 6.3.9600
OS Platform: Windows
RID: win81-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0

VS Code version: 1.10.2

C# Extension version:

Steps to reproduce

In cmd:
dotnet new console
dotnet restore
code .
open output window

Expected behavior

No error

Actual behavior

Starting OmniSharp server at 14.3.2017, 19.25.51
Target: c:\Users\psoszyns\programming\test

OmniSharp server started
Path: C:\Users\psoszyns.vscode\extensions\ms-vscode.csharp-1.6.0-beta2\bin\omnisharp\OmniSharp.exe
PID: 25172

OmniSharp: -s c:\Users\psoszyns\programming\test --hostPID 25664 --stdio DotNet:enablePackageRestore=false --encoding utf-8
[INFORMATION:OmniSharp.Startup] Omnisharp server running using Stdio at location 'c:\Users\psoszyns\programming\test' on host 25664.
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in c:\Users\psoszyns\programming\test
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp#MSBuild] No solution files found in 'c:\Users\psoszyns\programming\test'
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[ERROR:OmniSharp#ProjectFileInfo] The target "ResolveReferences" does not exist in the project.
[WARNING:OmniSharp#MSBuild] Failed to process project file 'c:\Users\psoszyns\programming\test\test.csproj'.
c:\Users\psoszyns\programming\test\test.csproj

[INFORMATION:OmniSharp.Startup] Configuration finished.

I tried running restore from Visual Studio Code but got error: "No .NET Core projects found".

dotnet restore was ok from cmd though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions