dotnet / dotnet/vscode-csharp

Project does not contain 'Compile' target if there's an empty TFM

Open
#5,786 12 comments 0 reactions 1 assignee Claimed by @jasonmalinowski View on GitHub
Bug Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

`CSharp: Report an issue` - finds nothing.

I'm using pre-release version: v2.0.206 on Ubuntu 22.04, VSCode installed from official apt repository.
`which dotnet` and `dotnet --list-sdks` work from code terminal.

## Environment data
`dotnet --info` output:
.NET SDK:
Version: 7.0.100
Commit: e12b7af219

Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /home/xxx/.dotnet/sdk/7.0.100/

Host:
Version: 7.0.0
Architecture: x64
Commit: d099f075e4

.NET SDKs installed:
3.1.422 [/home/xxx/.dotnet/sdk]
6.0.400 [/home/xxx/.dotnet/sdk]
7.0.100 [/home/xxx/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.28 [/home/xxx/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.8 [/home/xxx/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0 [/home/xxx/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.28 [/home/xxx/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.8 [/home/xxx/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0 [/home/xxx/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/home/xxx/.dotnet]

global.json file:
Not found
VS Code version: 1.79.0
C# Extension version: v2.0.206

## OmniSharp log

Dotnet path: /home/xxx/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.5/dotnet
Activating C# standalone...
info: LanguageServerHost[0]
Starting server...
[Info - 12:27:06 AM] [LanguageServerProjectSystem]Loaded MSBuild at /home/xxx/.dotnet/sdk/7.0.100
[Info - 12:27:06 AM] [LanguageServerProjectSystem]Loading /home/xxx/Documents/projects/xxx/xxx.sln...
[Warn - 12:27:12 AM] [LanguageServerProjectSystem]Failure while loading /home/xxx/Documents/projects/xxx/xxx.Web/xxx.Web.csproj: Project does not contain 'Compile' target.
[Info - 12:27:12 AM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:06.5244896

## Steps to reproduce

I don't know, new version just does not work no matter what.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.