question

JordiSerres-8921 avatar image
0 Votes"
JordiSerres-8921 asked ·

after updating to 2019 visual studio 16.7.1 projects cannot load anumore

I just updated to the latest version of visual studio and no projects can be loaded. I receive the following errors, which don't show when the project is loaded with visual studio 2017:
D:\Projects2015\ATOExplorer\FBOExplorer\FBOExplorer.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\DBFC\DBFC.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FCMC\FCMC.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FCUI\FCUI.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FCPL\FCPL.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FBWS\FBWS.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FCPLContent\FCPLContent.contentproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\ucnTabControlNew\ucnTabControlNew.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FBOCommServerClient\FBOCommServerClient.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FBOCommServerProxy\FBOCommServerProxy.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\FCKR\FCKR.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\AAACommon\AAACommon.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

D:\Projects2015\ATOExplorer\SimpleImpersonation\src\SimpleImpersonation.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

vs-general
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you tell me if the situation occurs in specific project type? Did you install any workloads or components during the upgrade? Please repair your VS2019 via Visual Studio Installer. Then, try to reload your projects by right-clicking the project in Solution Explorer > Reload Project.

0 Votes 0 ·

Myself and a colleague have both been affected by this. Our solution has ~120 projects all of which return an error like:

C:\PathToProjectFile\Project.csproj : error : Method not found: 'System.Collections.Generic.IList`1<System.String> Microsoft.Build.Framework.SdkResult.get_AdditionalPaths()'.

To answer your questions:

  • These are Sdk style projects, some are Sdk.WindowsDesktop

  • We did not install any workloads or components as far as I'm aware, just a straight upgrade

  • Repair did not resolve the issue, all ~120 projects are still unable to load


0 Votes 0 ·
TristanPalmer-7457 avatar image
1 Vote"
TristanPalmer-7457 answered ·

Some more detail. In the end unregistering and reregistering the MsBuild package in the GAC fixed this issue for us:

 gacutil /u "Microsoft.Build.Framework, Version=15.1.0.0"
 cd C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin 
 gacutil /i Microsoft.Build.Framework.dll

The reason we needed a re-register is that we need that package in the GAC to provide access to the 'GetPathToStandardLibraries' method as part of our build process. Whether that's "correct" or not I don't know, but it's what we needed to do.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dear customer, thanks for your sharing the solution and we are so glad to hear that your issue was solved.
Would you please add your solution as an answer? That will also help other community members who meet the same or similar issue to easier search this helpful information, thanks for your cooperation. If you have any other issues in the future, please feel free to let us know and we will try our best to help.

0 Votes 0 ·
SADDAMAKHTAR avatar image
0 Votes"
SADDAMAKHTAR answered ·

You can unload and reload projects one by one in solution. Then build and run project.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.