I have downloaded sample Asp.net project from the git repository and try to build in the local machine VS 2017 below is the error it is showing

Error CS8032 An instance of analyzer Microsoft.AspNetCore.Mvc.Analyzers.AvoidHtmlPartialAnalyzer cannot be created from C:\Users\avinash.nuget\packages\microsoft.aspnetcore.mvc.analyzers\3.0.0-alpha1-10670\analyzers\dotnet\cs\Microsoft.AspNetCore.Mvc.Analyzers.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. MusicStore E:\LearningTools\sampleapp\MusicStore-master\MusicStore-master\samples\MusicStore\CSC 1 Active
And here is the link for the git repo: https://github.com/aspnet/MusicStore for project reference.
What may be the issue in my machine or any missing file/lib in the framework?
masterbranch, you are getting the latest version for the latest .NET Core SDK/Runtime, right now that would be .NET Core 3.0 which is in a very very very early development stage. If you want the project for a specific .NET Core runtime, use therelease/x.ytags, i.e. github.com/aspnet/MusicStore/tree/release/2.1 for .NET Core 2.1 or github.com/aspnet/MusicStore/tree/release/2.2 for .NET Core 2.2 (still preview as of time of writing) - Tseng