novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual Studio 2019 hangs when loading project using MSBuild.Sdk.Extras

skottmckay opened this issue · comments

I have a project using MSBuild.Sdk.Extras that worked fine with VS 2019 on my old desktop that I was attempting to open on my new desktop. New desktop has clean install of VS 2019 (16.11.8) with .NET desktop development and Mobile development with .NET workloads installed (and Desktop development with C++ in case that matters). Attempting to load a csproj using MSBuild.Sdk.Extras either directly or via an sln causes VS to hang on the project load and become unresponsive. Only option is to forcibly kill VS.

Can repro by creating a new project and simply changing the Project Sdk from Microsoft.NET.Sdk to MSBuild.Sdk.Extras. csproj just has the Project Sdk and TargetFramework set.

<Project Sdk="MSBuild.Sdk.Extras/3.0.44">
<!-- <Project Sdk="Microsoft.NET.Sdk"> -->
  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
</Project>

VS 2019 msbuild from the command line can restore nuget packages and build the project.
VS 2022 can load the project fine.

Have started devenv,exe with /log but nothing useful in that.

Updated to VS 2019 16.11.9 and now it loads. Nothing obviously applicable in the 16.11.9 release notes though.