project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Install Missing Features dialog shows when project contains misplaced ProjectReference

Open tmat opened this issue 6 years ago • 2 comments

Visual Studio Version:

image

Steps to Reproduce:

  1. Create C# project with the following content:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ProjectReference Include="Foo.csproj"/>

</Project>
  1. When opened in VS it will be unloaded. Reload it.

Expected Behavior:

Error is reported that ProjectReference element is misplaced (not inside an ItemGroup).

Actual Behavior: image

User Impact:

tmat avatar Feb 20 '19 00:02 tmat

This will occur for any csproj that fails to load.

This will be the whole "we're missing a single component from the .NET desktop development workload so assume this is the problem". You probably won't be able to repro this on a new install, it might take an upgrade to a build that added a component to the desktop workload.

davkean avatar Feb 20 '19 00:02 davkean

Any update on this issue

sumit84mca avatar Dec 12 '23 06:12 sumit84mca