stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.59k stars 950 forks source link

[Build] Xenko.Core.Tasks failing when run pack assets command to some projects #620

Closed xwellingtonx closed 4 years ago

xwellingtonx commented 4 years ago

Release Type: Official

Version: master/master-3.1

Platform(s): All

Describe the bug Building Xenko through Visual Studio 2019 is throwing exceptions on Xenko.Core.Tasks when trying to run the pack assets, these exceptions are caused by the Microsoft.Build.Evaluation.ProjectCollection not been able to load the projects.

image

I've figured out that the issue is due the projects are using the MSBuild.Sdk.Extras package.

Xenko.Engine image

This package is not used by others projects that runs the pack assets command as you can see below.

Xenko.Rendering image

To Reproduce Steps to reproduce the behavior:

  1. Try to build xenko into some new machine with the basic guide line.

Expected behavior The Xenko.Core.Tasks should run the pack assets without any issue

Screenshots Attached to the description of the bug.

Log and callstacks N/A

Additional context N/A

xwellingtonx commented 4 years ago

The issue just happens when you have a old version of VS 2017 running side by side with VS 2019, it's mainly related with MSBuild, the links below provide more details.

https://github.com/microsoft/msbuild/issues/2427 https://github.com/microsoft/msbuild/issues/2369 https://github.com/microsoft/msbuild/pull/2454

The solution is to update the VS 2017 to the latest version, 15.9.21.