I have tried to setup the Continuous Integration (CI) in VSTS for the ASP.NET core project developed using Devextreme.
I have checked the NuGet.config file in the project, seems the devextreme-controls-netcore is referred from the local machine.
NuGet.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="devextreme-controls-netcore" value="C:\Program Files (x86)\DevExpress 17.1\DevExtreme\System\DevExtreme\Bin\AspNetCore" />
</packageSources>
</configuration>
I have created a build definition in VSTS for this project and queued a build. I am getting error while restoring the packages.
Log file from VS:
2017-11-17T11:26:33.0089440Z ##[section]Starting: Restore
2017-11-17T11:26:33.0279221Z ==============================================================================
2017-11-17T11:26:33.0279221Z Task : .NET Core
2017-11-17T11:26:33.0279221Z Description : Build, test and publish using dotnet core command-line.
2017-11-17T11:26:33.0279221Z Version : 1.0.2
2017-11-17T11:26:33.0279221Z Author : Microsoft Corporation
2017-11-17T11:26:33.0279221Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2017-11-17T11:26:33.0279221Z ==============================================================================
2017-11-17T11:26:34.6038344Z [command]"C:\Program Files\dotnet\dotnet.exe" restore d:\a\3\s\DevExtremeAspNetCoreApp\DevExtremeAspNetCoreApp.csproj
2017-11-17T11:26:42.2434595Z Restoring packages for d:\a\3\s\DevExtremeAspNetCoreApp\DevExtremeAspNetCoreApp.csproj...
2017-11-17T11:26:42.2434595Z Restoring packages for d:\a\3\s\DevExtremeAspNetCoreApp\DevExtremeAspNetCoreApp.csproj...
2017-11-17T11:26:42.2434595Z C:\Program Files\dotnet\sdk\2.0.2\NuGet.targets(102,5): **error : The local source 'C:\Program Files (x86)\DevExpress 17.1\DevExtreme\System\DevExtreme\Bin\AspNetCore' doesn't exist.** [d:\a\3\s\DevExtremeAspNetCoreApp\DevExtremeAspNetCoreApp.csproj]
2017-11-17T11:26:42.6496133Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1
2017-11-17T11:26:42.6496133Z ##[error]Dotnet command failed with non-zero exit code on the following projects : d:\a\3\s\DevExtremeAspNetCoreApp\DevExtremeAspNetCoreApp.csproj
2017-11-17T11:26:42.6536144Z ##[section]Finishing: Restore
How to build the devextreme-controls-netcore is VSTS to setup CI.
Please suggest a solution to fix this issue.
First, based on this thread: DevExtreme.AspNet.Core is not available in NuGet repository, the core package is published on their private NuGet repository (https://nuget.devexpress.com/{feed-authorization-key}/api
), so you can retrieve the packages from that private NuGet repository if you have the authorization key.
Secondly, you can add the related packages (in C:\Program Files (x86)\DevExpress 17.1\DevExtreme\System\DevExtreme\Bin\AspNetCore
) to the source control, then map it to the build agent (Get source) and change the value in NuGet.config.
Another way is as Daniel said that, upload it to your VSTS package feed.