Visual studio team services build .net core 1.1

前端 未结 6 2405
离开以前
离开以前 2020-12-10 03:15

I\'m trying to build a .net core 1.1 project on vsts. The project is developed in vs2017 and it uses the csproj instead of project.json. I have tried multiple options to bui

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 03:25

    In my case, I have a .NET Core web app and four library projects, all targeting the full framework since I'm using EF 6.

    I tried all of the suggestions here and none of them worked. Building with Visual Studio Build on Hosted Agent 2017 does build the project, but doesn't output any binaries. And all the options above did build as well but didn't generate the output files.

    Reading around I found the only way to get the output files was by running dotnet publishbut this generates a build error because nuget isn't restoring well the packages and msbuild can't find them. After being tired of trying to make it work during a whole day, casually I enabled the "Restore Nuget Packages" on the VS Buid task, and though it says it's deprecated, that seems to have solved my isse.

提交回复
热议问题