For many years NuGet is the defacto standard for the dotnet ecosystem. It's easy and powerful.
Many vendors provide their components via nuget, however, at the time writing this post, DevExpress does (for whatever reason) not.
After reading the support forums i found several entries: (including one of my own)
- S139898 - NuGet Packages
- Q479632 - NuGet packages: could i create my own package and publish it legally ???
- Q458075 - Please provide NuGet packages
- T680608 - How do I set up and use the Nuget packages for XAF Mobile?
They provide packages for DevExtreme but not for their .NET components.
A few years ago augustoproiete provided nuspec-files to build your own, but that requires a lot of manual work to ajust the specs when there is a new DevExpress version.
So i wrote a tool that scans the assemblies, and builds packages for them.
Usage
Install (and enter your licence information) for all the devexpress components you want to package (Universal, Coderush & CodedUI).
Download the PDBs and extract them to c:\tmp\symbols
git clone https://github.com/biohazard999/DXNugetPackageBuilder.git
cd DXNugetPackageBuilder
Adjust the settings in buildPackages.bat
to reflect the major version of the DevExpress Components
Run buildPackages.bat
Voilà, you have your packages in c:\tmp\nuget
:
Hope this helps anybody out!
Greetings Manuel
Comments
Kirsten Greed 12 Oct 2018 19:34
Hi Manuel
When I run buildpackages.bat I get an error NU1102: Unable to find package Ookii.CommandLine with version (>=3.0.0) I tried installing v2.2.0 but when I build the solution with that I get a warning NU1701 Package 'Ookii.CommandLine 2.2.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'
Thank you
Your comment will appear in a few minutes.
Manuel Grundner 12 Oct 2018 20:09
Hi Kirsten!
We recently updated the project to use dotnet core, seams Like i missed Something. I'll check the scripts and let you know what i missed. Thanks for pointing this out!
Thank you
Your comment will appear in a few minutes.
Kirsten Greed 13 Oct 2018 06:02
Thanks Manuel, I am so keen to get this working :-) I see there is a pull request for Ookii Command Line that is .net standard maybe I should try using that https://github.com/SvenGroot/ookii.commandline/pull/1:kfeF-o72kJeA5_aFv2Hgyr66ufM
Thank you
Your comment will appear in a few minutes.
Kirsten Greed 14 Oct 2018 04:25
Thanks for sorting out an Ookii replacement. I seem to have created my nuget packages and got them into Azure DevOps alright, but when the pipeline runs it complains that namespace devexpress cound not be found for the ModelDifferenceAspects.cs Any ideas? https://stackoverflow.com/questions/52772765/how-do-i-set-up-azure-dev-ops-to-build-dev-express-xaf-xpo-project:-aXpELkG65ROLxfuUfanpfI90tY
Thank you
Your comment will appear in a few minutes.
Kirsten Greed 15 Oct 2018 19:39
Hi Manuel
When Azure DevOps tries to build my solution it seems that the following code is missing as assembly references:
Dennis explains that they should not be needed at https://www.devexpress.com/Support/Center/Question/Details/T681058/missing-files-in-pdb-download#comment-dcf4b66f-f85e-43cf-9f91-ee6a9a133ccb:NjNVxEOGGP-CRzMw5dzOUP51KmI
Could it be that DXNugetPackageBuilder is missing extracting them from DevExpress.ExpressApp and DevExpress.Persistent.BaseImpl ?
Thank you
Your comment will appear in a few minutes.
Thank you
Your comment will appear in a few minutes.