microsoft / GraphEngine

Microsoft Graph Engine
http://www.graphengine.io/
MIT License
2.19k stars 328 forks source link

Updated Build Fails #324

Closed TaviTruman closed 3 years ago

TaviTruman commented 4 years ago

I just performed a fresh download, ran the build and the Service Fabric projects fail:

image Here's what my "dotnet" environment looks likes:

image

"dotnet" version:

image

Service Fabric SDK version:

image

TaviTruman commented 4 years ago

I was able to get a partial fix this problem by doing the following: I tried these things incrementally:

  1. Ran this command from Powershell: "dotnet nuget locals all --clear" image

  2. Cleared All Nuget Cache(s) within VS-2019 because the first command did not completely clear the Nuget Cache;

  3. I had to de-select all Nuget Packages except for "nuget.org" and "Graph Engine OSS Local"; otherwise, the Graph Engine build tries to look for packages and fails. NOTE: the build does not use a "nuget.config" file so it will pick-up what's been cached.

image

This improved the quality of the build; the GraphEngine.ServiceFabric section ran executed without error; however, a new build error occurred:

image

TaviTruman commented 4 years ago

I just re-ran the build after the last error - I made no changes and the build ran to completion without error. So, it looks like things are cached and put in place incrementally during each run of the build and it finally ran to completion.

XiaAlexFang commented 4 years ago

Hey TaviTruman, I ran into another issue when I tried to run .\tools\build.ps1. Do you have any idea about it? Thanks a lot. Xia

Screenshot 2020-06-18 at 15 01 43
TaviTruman commented 4 years ago

@XiaAlexFang Yikes - Yeah, I just got the same thing. I working to understand to resolve the problem now,

msylvestre commented 4 years ago

I got it to build by running the cmake command directly, skipping the remaining of the build.ps1 script....

TaviTruman commented 4 years ago

Yeah - I was able to do that too but the build script does some other important task; I think I've found the problem and the solution so I will update here later on.

TaviTruman commented 4 years ago

Okay, I was able to resolve the problem by doing the following:

  1. download the "dotnet" uninstaller and remove all dotnet runtimes and SDKs. https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-tool-uninstall
  2. Uninstall VS 2019
  3. Re-install VS 2019

The build works!