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

Intellisense is not working for vscode #32922

Closed
Anipik opened this issue Feb 27, 2020 · 2 comments
Closed

Intellisense is not working for vscode #32922

Anipik opened this issue Feb 27, 2020 · 2 comments
Assignees
Labels
area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner

Comments

@Anipik
Copy link
Contributor

Anipik commented Feb 27, 2020

The new config system broke the intellisense for vscode. This could be verified from the omnisharp log

[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'd:\runtime\src\libraries\System.IO.FileSystem.AccessControl' on host 6192.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The TargetFramework value 'netcoreapp5.0-Windows_NT' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'd:\runtime\src\libraries\System.IO.FileSystem.AccessControl\tests\System.IO.FileSystem.AccessControl.Tests.csproj'.
d:\runtime\src\libraries\System.IO.FileSystem.AccessControl\tests\System.IO.FileSystem.AccessControl.Tests.csproj
C:\Program Files\dotnet\sdk\3.1.200-preview-014971\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(93,5): Error: The TargetFramework value 'netcoreapp5.0-Windows_NT' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: d:\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The TargetFramework value 'netcoreapp5.0-Windows_NT' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'd:\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj'.
d:\runtime\src\libraries\System.IO.FileSystem.AccessControl\src\System.IO.FileSystem.AccessControl.csproj
C:\Program Files\dotnet\sdk\3.1.200-preview-014971\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(93,5): Error: The TargetFramework value 'netcoreapp5.0-Windows_NT' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: d:\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj
[fail]: OmniSharp.MSBuild.ProjectLoader
        The "ChooseBestP2PTargetFrameworkTask" task was not given a value for the required parameter "TargetFramework".
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'd:\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj'.
d:\runtime\src\libraries\System.IO.FileSystem.AccessControl\ref\System.IO.FileSystem.AccessControl.csproj
C:\Users\calope\.nuget\packages\microsoft.dotnet.build.tasks.targetframework.sdk\5.0.0-beta.20124.3\build\Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk.targets(76,5): Error: The "ChooseBestP2PTargetFrameworkTask" task was not given a value for the required parameter "TargetFramework".

cc @ericstj @ViktorHofer @safern @danmosemsft @carlossanlop @danmosemsft

@Anipik Anipik self-assigned this Feb 27, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.IO untriaged New issue has not been triaged by the area owner labels Feb 27, 2020
@ericstj
Copy link
Member

ericstj commented Feb 27, 2020

Do we know what's wrong and how to fix it? It looks like Omnisharp isn't evaluating the project to strip the TargetFramework value.

@ericstj
Copy link
Member

ericstj commented Mar 13, 2020

I believe this should be a dup of #33427.

@ericstj ericstj closed this as completed Mar 13, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-libraries untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants