{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/840","repository_url":"https://api.github.com/repos/Azure/service-fabric-issues","labels_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/840/comments","events_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/840/events","html_url":"https://github.com/Azure/service-fabric-issues/issues/840","id":296170800,"number":840,"title":"Service Fabric project nuget packages are not getting restored in VSTS","user":{"login":"ravindraaditya","id":26783264,"avatar_url":"https://avatars2.githubusercontent.com/u/26783264?v=4","gravatar_id":"","url":"https://api.github.com/users/ravindraaditya","html_url":"https://github.com/ravindraaditya","followers_url":"https://api.github.com/users/ravindraaditya/followers","following_url":"https://api.github.com/users/ravindraaditya/following{/other_user}","gists_url":"https://api.github.com/users/ravindraaditya/gists{/gist_id}","starred_url":"https://api.github.com/users/ravindraaditya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravindraaditya/subscriptions","organizations_url":"https://api.github.com/users/ravindraaditya/orgs","repos_url":"https://api.github.com/users/ravindraaditya/repos","events_url":"https://api.github.com/users/ravindraaditya/events{/privacy}","received_events_url":"https://api.github.com/users/ravindraaditya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"NCarlsonMSFT","id":14239288,"avatar_url":"https://avatars3.githubusercontent.com/u/14239288?v=4","gravatar_id":"","url":"https://api.github.com/users/NCarlsonMSFT","html_url":"https://github.com/NCarlsonMSFT","followers_url":"https://api.github.com/users/NCarlsonMSFT/followers","following_url":"https://api.github.com/users/NCarlsonMSFT/following{/other_user}","gists_url":"https://api.github.com/users/NCarlsonMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/NCarlsonMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCarlsonMSFT/subscriptions","organizations_url":"https://api.github.com/users/NCarlsonMSFT/orgs","repos_url":"https://api.github.com/users/NCarlsonMSFT/repos","events_url":"https://api.github.com/users/NCarlsonMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/NCarlsonMSFT/received_events","type":"User","site_admin":false},"assignees":[{"login":"NCarlsonMSFT","id":14239288,"avatar_url":"https://avatars3.githubusercontent.com/u/14239288?v=4","gravatar_id":"","url":"https://api.github.com/users/NCarlsonMSFT","html_url":"https://github.com/NCarlsonMSFT","followers_url":"https://api.github.com/users/NCarlsonMSFT/followers","following_url":"https://api.github.com/users/NCarlsonMSFT/following{/other_user}","gists_url":"https://api.github.com/users/NCarlsonMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/NCarlsonMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCarlsonMSFT/subscriptions","organizations_url":"https://api.github.com/users/NCarlsonMSFT/orgs","repos_url":"https://api.github.com/users/NCarlsonMSFT/repos","events_url":"https://api.github.com/users/NCarlsonMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/NCarlsonMSFT/received_events","type":"User","site_admin":false},{"login":"raunakpandya","id":18751774,"avatar_url":"https://avatars0.githubusercontent.com/u/18751774?v=4","gravatar_id":"","url":"https://api.github.com/users/raunakpandya","html_url":"https://github.com/raunakpandya","followers_url":"https://api.github.com/users/raunakpandya/followers","following_url":"https://api.github.com/users/raunakpandya/following{/other_user}","gists_url":"https://api.github.com/users/raunakpandya/gists{/gist_id}","starred_url":"https://api.github.com/users/raunakpandya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raunakpandya/subscriptions","organizations_url":"https://api.github.com/users/raunakpandya/orgs","repos_url":"https://api.github.com/users/raunakpandya/repos","events_url":"https://api.github.com/users/raunakpandya/events{/privacy}","received_events_url":"https://api.github.com/users/raunakpandya/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2018-02-11T08:07:38Z","updated_at":"2018-03-12T16:44:13Z","closed_at":null,"author_association":"NONE","body":"On latest Service Fabric SDK / .NET Core SDK / VS2017 community edition, we have 1 package reference Microsoft.VisualStudio.Azure.Fabric.MSBuild for service fabric project. I have checkin the solution and triggered build in VSTS it is failing to restore packages for .sfproj\r\n\r\n> 2018-02-08T04:51:51.4074522Z C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\15.0\\bin\\msbuild.exe \"D:\\a\\_temp\\NuGetScratch\\azh3fxfq.a3u.nugetinputs.targets\" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets=\"D:\\a\\_temp\\NuGetScratch\\mcjmon3n.xty.nugetrestore.targets\" /p:RestoreTaskAssemblyFile=\"D:\\a\\_tool\\NuGet\\4.5.1\\x64\\nuget.exe\" /p:RestoreSolutionDirectory=\"D:\\a\\3\\s\\xyz\" /p:RestoreConfigFile=\"D:\\a\\3\\Nuget\\tempNuGet_23.config\" /p:SolutionDir=\"D:\\a\\3\\s\\xyz\"\r\n> 2018-02-08T04:51:51.4075226Z D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj(59,5): error : Unable to find the '..\\packages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.4\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package.\r\n> 2018-02-08T04:51:51.4075606Z D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj : warning NU1503: Skipping restore for project 'D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj'. The project file may be invalid or missing targets required for restore. [D:\\a\\_temp\\NuGetScratch\\azh3fxfq.a3u.nugetinputs.targets]\r\n> 2018-02-08T04:51:51.4075817Z \r\n> 2018-02-08T04:51:51.4075948Z All packages listed in packages.config are already installed.\r\n\r\n> 2018-02-08T04:52:39.3020087Z ##[error]xyz\\xyz\\xyz.sfproj(59,5): Error : Unable to find the '..\\packages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.4\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package.\r\n> 2018-02-08T04:52:39.3020738Z Project \"D:\\a\\3\\s\\xyz\\xyz.sln\" (1) is building \"D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj\" (4) on node 1 (Clean target(s)).\r\n> 2018-02-08T04:52:39.3022703Z D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj(59,5): error : Unable to find the '..\\packages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.4\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package.\r\n> 2018-02-08T04:52:39.3023682Z Done Building Project \"D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj\" (Clean target(s)) -- FAILED.\r\n> 2018-02-08T04:52:39.3024211Z Done Building Project \"D:\\a\\3\\s\\xyz\\xyz.sln\" (Clean target(s)) -- FAILED.\r\n> 2018-02-08T04:52:39.3566326Z \r\n> 2018-02-08T04:52:39.3567113Z Build FAILED.\r\n> 2018-02-08T04:52:39.3614454Z \r\n> 2018-02-08T04:52:39.3628772Z \"D:\\a\\3\\s\\xyz\\xyz.sln\" (Clean target) (1) ->\r\n> 2018-02-08T04:52:39.3628987Z \"D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj\" (Clean target) (4) ->\r\n> 2018-02-08T04:52:39.3629188Z (ValidateMSBuildFiles target) -> \r\n> 2018-02-08T04:52:39.3629452Z   D:\\a\\3\\s\\xyz\\xyz\\xyz.sfproj(59,5): error : Unable to find the '..\\packages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.4\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package.\r\n> 2018-02-08T04:52:39.3629651Z \r\n> 2018-02-08T04:52:39.3630272Z     0 Warning(s)\r\n> 2018-02-08T04:52:39.3630552Z     1 Error(s)\r\n> 2018-02-08T04:52:39.3633535Z \r\n> 2018-02-08T04:52:39.3633896Z Time Elapsed 00:00:21.14\r\n> 2018-02-08T04:52:39.7984353Z ##[error]Process 'msbuild.exe' exited with code '1'.\r\n\r\n\r\nTo expel this issue, i have checkin the packages folder manually as a work around.\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/comments/372378409","html_url":"https://github.com/Azure/service-fabric-issues/issues/840#issuecomment-372378409","issue_url":"https://api.github.com/repos/Azure/service-fabric-issues/issues/840","id":372378409,"user":{"login":"dbreshears","id":3432571,"avatar_url":"https://avatars3.githubusercontent.com/u/3432571?v=4","gravatar_id":"","url":"https://api.github.com/users/dbreshears","html_url":"https://github.com/dbreshears","followers_url":"https://api.github.com/users/dbreshears/followers","following_url":"https://api.github.com/users/dbreshears/following{/other_user}","gists_url":"https://api.github.com/users/dbreshears/gists{/gist_id}","starred_url":"https://api.github.com/users/dbreshears/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbreshears/subscriptions","organizations_url":"https://api.github.com/users/dbreshears/orgs","repos_url":"https://api.github.com/users/dbreshears/repos","events_url":"https://api.github.com/users/dbreshears/events{/privacy}","received_events_url":"https://api.github.com/users/dbreshears/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T16:44:13Z","updated_at":"2018-03-12T16:44:13Z","author_association":"NONE","body":"@alexwilsh,  Any reason why you are using dotnet build?    Building the solution with .sfproj will require using MSBuild in the VSTS build definition.   Also, you should make sure to use \"Use Nuget 4.3.0\" and \"NuGet restore\" tasks prior to the Build solution task   "}}
{"actor":{"display_login":"dbreshears"}}