Coder Social home page Coder Social logo

docs.microsoft.com-nuget's People

Contributors

agr avatar alfredmyers avatar anangaur avatar atikmapari avatar camsoper avatar chrisraygill avatar cristinamanum avatar donnie-msft avatar dtivel avatar erdembayar avatar gewarren avatar heng-liu avatar jainaashish avatar jgerardc avatar joelverhagen avatar jondouglas avatar karann-msft avatar kartheekp-ms avatar kraigb avatar loic-sharma avatar mairaw avatar mikejo5000 avatar nkolev92 avatar rido-min avatar ridomin avatar rrelyea avatar v-thepet avatar youssef1313 avatar zivkan avatar zkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs.microsoft.com-nuget's Issues

Packaging/NuSpec issues

From customer feedback:

  1. Add information about When using convention-based working directory to create a package, how does one add a readme? It seems adding <file../> bypasses the convention based packaging.

packages.config reference is missing

In order to use nuget outside the context of visual studio, you can use the CLI and manual modification of packages.config. However, there is no documentation for the schema of packages.config.

The Project.json Reference indicates that project.json is meant to replace packages.config in NuGet 3.x for certain types of projects. But unless I am confused, my reading of this indicates that for other projects (or those of an unclassifiable nature), one must still use packages.config.

As an example of my use case, I am working on a database project in SQL Server Management Studio, and would like to use NuGet to pull down some build and development tools from the NuGet Gallery and a private feed. My project doesn't have a runtime or any frameworks; it produces SQL scripts that will be run on a database.

nuget.exe CLI questions

From customer feedback:

  1. Add a beginner how-to execute nuget commands

  2. I couldn't find a way to replace a dll on my nuget server.

  3. Expand on details or give additional usage/concepts. You mention CLI will not perform some functions what are they? It would also be nice if comments/questions could be answered or acknowledged.

  4. How can you update specific packages based on a wildcard/regex pattern? I notice CLI reference ignores expressions such as (nuget.exe update a.sln | where Id -like “DefinitelyTyped” | foreach { update-package $_.Id  -reinstall }) [Comment on docs page]

  5. pack Version 2.7+ Creates a NuGet package based on the specified .nuspec or project file. Note that the pack command requires MSBuild and will not work on Linux systems. But i'm working with .net core web apps and i can use this command on Linux and it works

Document package build assets (MSbuild props and targets)

Apologies if this is already documented, but I couldn't find it.

It would be good to document how the build/ and buildMultiTargeting/ folders work in a nuget package and how MSBuild imports them.

build/<tfm>?/<packageId>.props
build/<tfm>?/<packageId>.targets
buildMultiTargeting/<tfm>?/<packageId>.props
buildMultiTargeting/<tfm>?/<packageId>.targets

? = optional folder

cc @emgarten

Used term "native" framework is consistent.

Hey,

I want to control my dependencies in an interop (C++/CLI) package. Like described here
https://docs.microsoft.com/en-us/nuget/schema/nuspec#dependencies

https://docs.microsoft.com/en-us/nuget/create-packages/native-packages
On this page the the term, "native Framework" is used, but if you check the article and the use of group those dependecies to used framework the listing (https://docs.microsoft.com/en-us/nuget/schema/target-frameworks) is used.

That again not mentioning a "native" framework. Sure i could try on my own and will sure enough, but I miss some clarity in the use of common term.
Basically i wish it would working even if not documented that it should :)

If native is a not supported framework, then please don't call it a "native" framework, or if it is a supported framework, take it into the targetFramework list. If it is only supported in another sense, clarify the use of term framework.

Improve documentation around CLI on OSX and Linux

CLI on OSX and Linux options are to use dotnet.exe or to use nuget.exe with Mono.

Need to document:

  • What commands are available in nuget.exe vs dotnet.exe
  • When the same command exists in both places, describe any differences.

For example, restore in dotnet.exe doesn’t presently support packages.config, but restore in NuGet.exe supports everything.

PackageReference questions

  1. From https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2017#comments-container:
    a. How to include additional files?
    b. How to use semantic versioning for suffixes?

  2. From https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#comments-container
    a. When I try to reference a .NET Standard library with PackageReference to any NuGet package from a classic .NET application it compiles normally but throws FileNotFoundException at runtime. Does it mean that it is not possible to mix .NET Core and classic .NET in the same solution? Or is it a bug?

  3. Customer comment: "How to add library not as reference?"

Improve documentation on creating native packages

Information in the existing topic is sketchy, and there are questions, see https://docs.microsoft.com/en-us/nuget/create-packages/native-packages#comments-container.

Request: "Needs more details of what package structures need to be and links to other reference material. "

Older issues:
NuGet/Home#1508
NuGet/Home#3027

Additional customer feedback:

  1. Needs more details of what package structures need to be and links to other reference material.
  2. I need to download a package. But nowhere I can do this.
  3. More information about how to actually create a native package (use CoApp or not?)
  4. It's painfull to create even a simple NuGet native package. Writing the props/targets files is just like the hell (it should be generated like with CoApp). Someone at Microsoft has pointed me on https://github.com/Microsoft/vcpkg (great but) the NuGet package stuff is just for local use (it's a bridge on the native files); no way to create a standalone package for publishing on the official repository :-(.
  5. How would the creation of the nuspec file and the packaging look like? At the moment, when creating the nuspec (via nuget spec) and package afterwards (via nuget pack) nuget (v 3.5) just takes everything that sits inside my project folder and packages that. The assembly is missing etc. The CoApp project is dead and I haven't found anything on the roadmap for nuget (https://github.com/NuGet).

Configuration questions

From customer feedback

  1. project != solution I firstly tried use NuGet.config in some project folder, but NuGet.config works only from Solution folder, not from Solution\SomeProject\

Misleading text about explicit assembly references

I read the Explicit assembly references documentation and I found this last paragraph a bit misleading:

Similarly, explicit references can be used for unit test frameworks, such as XUnit, which needs its tools assemblies located next to the runtime assemblies, but does not need them included as project references.

If I read this, I expect the tools assemblies located next to the runtime assemblies. However, if I look at the output folder (the only place I would search for the runtime assemblies), these explicit assembly references are not there. I understand that this is by design, the text is just not that clear about it.

Typo in NuGet docs home page

It should say NuGet gives you access to thousands of packages from other developers on... (currently, the "s" is missing)
image

Document scoped API keys

Adding scoped API keys for end-user security. This will be visible to developers at some point.

Package restore questions

From customer feedback:

  1. http://docs.microsoft.com/en-us/nuget/consume-packages/package-restore, "The migration from "MsBuild-integrated restore" to "Automatic Restore" just causes automated MsBuild-Builds to fail, not restoring anything automatically."

  2. Section titled "MSBuild-integrated restore" concludes with loading the solution in VS and then building it. The title promised that I could run using MSBuild without VS.

  3. It does really make sense to write down few lines of code and explains how to create in XAML workflow an "Invoke Process" task which run the Nuget.exe restore and also how to use the NugetRestore MsBuild Activity task available for TFS 2012/2013 because it is not documented (in sidenote)

Package Manager UI and Console Questions

From customer feedback:

PM Console

  1. Cannot select the desired package source. Error message displayed "Solution is not opened or not saved. Please ensure you have an open and saved solution."

Package Manager UI

  1. Step 2 results in “The V2 feed ... returned an unexpected status code '404 Not Found'” on my machine.

  2. Would like to see information about updating the version of the nuget executable that gets added to the project when you enable nuget package restore

  3. I can find no information on how to remove a source

  4. I have a c++\cli project which I want to use this for, but when I try to use the NuGet package manager to install this, it fails. It seems to be unable to detect what .net framework version I'm using.

  5. Need to clarify how to configure the UI to use only specific feeds through NuGet.Config files. See last comment on the page.

  6. Does this bypass my virus scanner?

Document dependency exclusions

Transferring from NuGet/Home#4551.

Spec is on https://github.com/NuGet/Home/wiki/%5BSpec%5D-Managing-dependency-package-assets.

Also address NuGet/Home#4099 with pre-release versions.

A customer question also asks about conditionally creating pre-release versions. "The article only describes changing the element, which hardcodes a pre-release version until the project is updated again. I was hoping to find some information on using command-line parameters to pass in the pre-release suffix to MSBuild, but this functionality appears not to exist yet." But he's also asking specifically about doing it with PackageReference and MSBuild. It would mean being able to dynamically control the package ID, because that's ultimately where pre-release versions are set.

Add doc explaining policy for verification checkmark

nuget.org will be adding checkmarks to verified/certified packages to help prevent spoofing. Will need a document on what it means to be verified, explaining the policy for the checkmark, package signing, and how to get verified.

Clarify what project types maintain package list in what form

When to packages.config, project.json, and PackageReference apply? Can't make PackageReference the default yet. UWP is an easy project because it's project.json to PackageReference, but other projects still use packages.config, etc. Need to clarify when these are used.

MSBuild pack and restore questions

  1. From https://docs.microsoft.com/en-us/nuget/guides/create-net-standard-packages-vs2017#comments-container:
    a. Is it possible to use msbuild to pack a portable class library?

https://docs.microsoft.com/en-us/nuget/schema/msbuild-targets

  1. Project to project references are considered by default as nuget package references," - yes, it seems that the nuget package references are derived directly from the referenced project name in the "Include" on the . However, if the referenced project uses the property to override the name used for the NuGet package, this reference will be incorrect. This seems to assume that the name of the project is always exactly equal to the package id, which is not the case. Is there a way to override this?

  2. The PackageTargetFallback section is not very instructive if you don't know what msbuild "Imports" does. At the very least link to a description of "Imports", or (much better) actually explain what the purpose of PackageTargetFallback actually is.

  3. The notes "New $(Version) property from MSBuild", I am having trouble finding any documentation on this new property for the v15 version of MSBuild. Can you update it to make that point to a link to the property documentation?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.