Create my own UI for nuget - asp.net-mvc-3

Is it possible to create my own UI for NuGet, for example in my MVC project I would like to download and install a NuGet package from the admin section in my web application?

Yes it is possible, we do this with ASP.NET WebPages built in admin :)
A good starting point would be to look at the NuGet Commandline's install command to see how it does it.
http://nuget.codeplex.com/SourceControl/changeset/view/e2929b936dfb#src%2fCommandLine%2fCommands%2fInstallCommand.cs

Related

Install nuget packages with permissions

using vs 2017 is it possible to control/permission who can install packages in a solution without using Team Services or other third party tool?
thanks
is it possible to control/permission who can install packages in a solution without using Team Services or other third party tool?
To my knowledge, we could not set permission who can install packages from NuGet gallery without VSTS or third party tool. That because the gallery has not been implemented for this, but you can set up a NuGet server that is accessible via https from the internet, and only allows people who can successfully authenticate to view or download the packages on the server.
You can refer to how to set NuGet.Server and how to Configuring NuGet server to use Authentication for detail info.

How do I create and distribute a new .NET Core project template?

I've got a custom project template for a .NET Core project that I'd like to make available via dotnet new <templatename>. It was developed using Visual Studio Code on Mac OS X.
This document discusses creating new projects, specifically for ASP.NET Core, but I want to create and distribute a new .NET Core project template that doesn't include ASP.NET. It's just a class library project with some key modifications.
Question: How would I create a package for this purpose and distribute it both privately internally and/or publicly? Is it possible to simply package this up as a NuGet or Yeoman package, or is there some other mechanism I need to use?
UPDATE: Here is the official team blog: https://blogs.msdn.microsoft.com/dotnet/2017/04/02/how-to-create-your-own-templates-for-dotnet-new/
We currently have the documentation on a gist, but are working on turning it into a team blog soon. I will update here when the blog is posted and public.
For now, you can refer to the gist: https://gist.github.com/sayedihashimi/05741c31ca559f1960bef159a5684988

What is the aspnet50 target framework, and can I reference it from VS2013?

The packages at https://www.myget.org/gallery/aspnetrelease target aspnet50, and when I try to install them I get:
You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any
assembly references or content files that are compatible with that
framework.
Is there a way?
You can't do that (currently). If you insist on working with ASP.NET vNext in VS2013, you can use it as an editor and run everything from the commandline with the tools from the aspnet Home repository.
You should install the newest CTP of VS14 if you want to work with asp.net vNext, which you can download the newest version of from here and learn how to use it in this guide. ASP.NET vNext is in alpha currently, so documentation and information can be a bit sparse. aspnet50 is the (current) name for the new .Net framework introduced with ASP.NET vNext.
I was able to manually download the nuget packages and had no problem referencing from VS 2013.

License for packages obtained via NuGet Packages Manager

Hi i am new to windows phone app development,
I've got Json.Net via NuGet PAckage Manager in visual studio express edition, for my application.
I'm using it only in my app which is developed in visual studio express.
Now my question is,do i need to get license for using it?
Yes of course. You have to get the license.
Nuget Package Manager is just a manager, which manages all your packages and just deploys it to your project during run time.
For more Details click here
The Previous Answer is Correct in a strict sense. Nuget Package Manager is not responsible for obtaining a license for the packages it deploys for you.
But as far as Json.Net is concerned.
a Previous Response has documented that JSON.NET is free of charge for Commercial use. Can I distribute JSON.NET with my commercial application?.
I believe some of the confusion on Nuget Json.net Package stems from the fact that right after Install of Json.Net on Nuget Package Manager you are directed to the following page NewtonSoft Store Page. But this page actually refers to a different product which has a different package. I am speculating, but I think this up-sell is what's confusing many folks. Whatever ships with Newtonsoft.Json.dll is free of charge. including the very limited portion of namespace Newtonsoft.Json.Schema that it includes.

How to create a Installation Bundle Package?

I have an application which require .net 2 and .net 4 framework with adobe reader , i want to install them before software installation, how i am supposed to do this? Kindly please guide me towards right direction.
This is usually done by adding the packages you need as prerequisites for the main installer. Most commercial setup tools support prerequisites one way or another. Here is a list which can get you started:
http://en.wikipedia.org/wiki/List_of_installation_software
Pick a tool and try using it to create your installer and add prerequisites for it. I recommend Advanced Installer or InstallShield. If you want a free solution, you can try WiX.
What you need is basically a suite installation. The link I included shows how to do this with Advanced Installer (Disclaimer: I work on this tool). This is a commercial tool, but it saves you from learning to code Wix/NSIS projects, as it is completely GUI driven, thus you can built your installers without writing any code.
With NSIS as your installer, you can refer to the following pages for help with detecting and installing .NET:
How to ensure a required version of .NET Framework is installed
How to automatically download and install a particular version of .NET if it is not already installed

Resources