I have .net solution having multiple .net core project and setup CI on VSTS. everything running perfectly when I had all project targeting to .net core 2.0 only.
My build getting fails after adding Azure WebJob project. Anyone know how to resolve this issue?? I don't want to manage different solution for full .net and .net core. Below my CI build definition.
Below error I'm getting...
2017-10-22T05:44:01.5211719Z [command]d:\a_tool\dncs\2.0.0\x64\dotnet.exe build d:\a\1\s\TestHub.WebJob.OTP\TestHub.WebJob.OTP.csproj --configuration release 2017-10-22T05:44:01.8667544Z d:\a\1\s\packages\Microsoft.Web.WebJobs.Publish.1.1.0\tools\webjobs.console.targets(24,3): error MSB4019: The imported project "d:\a_tool\dncs\2.0.0\x64\sdk\2.0.0\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. [d:\a\1\s\TestHub.WebJob.OTP\TestHub.WebJob.OTP.csproj] 2017-10-22T05:44:01.8978067Z ##[error]Error: d:\a_tool\dncs\2.0.0\x64\dotnet.exe failed with return code: 1
Thanks in Advance
system.debug
astrue
in VSTS build definition Variables Tab? – Marina LiuTestHub.WebJob.OTP.csproj
project, is it a .net project? – Marina Liu