Install nuget packages with permissions - visual-studio

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.

Related

Host CrystalReports on a Shared server

I have installed CrystalReports in a project using VS2019. I want to host this on a shared webserver. I do not have access to install CrystalReportsRuntime on server. What are my options to achieve the same?
I have tried copying all files from Nuget package references but no luck.
Please advise
As per the comments mentioned above, I thought of writing it as answer. One cannot run CrystalReports without the runtime being installed on server. So, unless the hosting company installs the runtime, CR wont run on shared hosting. You can chekck this on Authorized SAP Community Link here.

Teamcity + Octopus and umbraco packages

Currently we are deploying our Umbraco site with teamcity and octopus deploy, having uSync installed to synchronize datatypes, document types etc. between enviroments.
Now im facing our first problem with our CI setup: How do i automatically install/uninstall any installed umbraco packages? If i install a package through the Umbraco interface, locally, and then deploy to our test environment, then i get an error until i install the package manually. This I have to do every time I deploy.
What is the correct way of managing/synchronizing packages between environments when using CI?
The solution to this issue is to either:
1. Install all packages via Nuget
If you install all packages via. Nuget, then teamcity will take care of everything for you when building the solution.
2. Reference the package .dll
If the package is not available as a Nuget package, then download if via Umbraco, find the .dll and move it to another folder in your solution and reference the .dll from there instead.

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.

Set up Nuget server at home

Just a quick question.
I have Visual Studio 2010 professional edition installed at my home desktop. Can I set up Nuget server for practice or self learning?
Thanks.
You certainly can: Hosting Your Own NuGet Feeds
You could use the free MyGet.org service and focus on creating the packages and learning the commands instead.
No need to set up your own NuGet server (unless you want to learn how to set it up). MyGet is an ideal solution to jump-start your NuGet learning experience.
There is nothing stopping you from installing the server, but the fact that you are not running the most recent version of Visual Studio.
You can install and use NuGet from thier website, just download a previous version of the software.

Create my own UI for nuget

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

Resources