Using DevExpress NuGet Server with Visual Studio Team Services

Posted by: mbmadmin | | 2 Comments »

We wanted to build an ASP.NET web app using the DevExpress tools but deploy it to Azure using Visual Studio Team Services CI/CD. The app ran nicely locally on the desktop but failed to build in VSTS. NuGet in the build agent claimed it couldn’t find the DevExpress packages. This is because the ‘NuGet restore’ step, by default, only uses the repo. This is how to get better control over the repos the NuGet process in the build agent uses.

  1. Create a nuget.config file and add it to your solution in Visual Studio. It’ll look something like this; use your own DevExpress Feed URL…
<?xml version="1.0" encoding="utf-8"?>
    <clear />
    <add key="" value="" />
    <add key="DevExpress" value="" />

2. Sync the new file to your VSTS code.

3. Edit the ‘NuGet restore’ step in your VSTS CI build…

DevExpress NuGet in VSTS

If you run a build now, NuGet will use your nuget.config file, find the repos you specified (including the DevExpress one), retrieve the packages and build your code.

It seems to work OK for us.

Posted in: Uncategorized

  1. Jonathan Shay

    Many thanks for posting this information! You saved me at least an afternoon and about 2.7 headaches. 🙂


    • mbmadmin

      I’m glad it worked for you.


Leave a Comment

Your email address will not be published. Required fields are marked *