This is a migrated thread and some comments may be shown as answers.

Trying to create a custom nuget package.

2 Answers 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 09 May 2016, 08:12 PM

I am new to Kendo and trying to create a custom nuget package for Kendo UI MVC 4 and 5 that only has the stuff I need. I have downloaded the Telerik.UI.for.AspNet.Mvc5.2016.2.504.nupkg package from this site to start as a base, but there are many files and many things.

I just want a nuget package that has  1) no localizations/culture specific things, 2) only has my custom theme I made with the themebuilder (attached .zip from that), which uses material as a base (I started with material and changed a few colors), 3) no source folder under content -> kendo -> 2016.2.504-source. 4) no .less, 5) no .ascx

So with those requirement what how can I make my own nuget package from that? What do I need to include to make it work?

Also why the MVC 5 web.config transformer using 5.1 when the most current version is 5.2.3? This will cause problem since the binding redirect only go up to 5.1.0.0 for MVC but my project has MVC 5.2.3?

2 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 09 May 2016, 08:47 PM
I should clarify, I am trying to make two separate packages one for MVC 4 and one for MVC 5. Not one for both versions.
0
Accepted
T. Tsonev
Telerik team
answered on 11 May 2016, 07:09 PM
Hi,

The NuGet file is also a ZIP archive so customization of the content is easy - just extract it, modify the content and repack it. That's good for one-time fixes.

To get a more repeatable process you can start with a nuspec file. I'm attaching the one we use to build the Telerik.UI.for.AspNet.Mvc5 package.
It should make a good starting point. The NuGet documentation is quite good and should fill in the missing details.

I hope this helps.

Regards,
T. Tsonev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or