Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please publish XML schema for packages.config #1836

Open
am11 opened this issue Dec 15, 2015 · 7 comments
Open

Please publish XML schema for packages.config #1836

am11 opened this issue Dec 15, 2015 · 7 comments
Milestone

Comments

@am11
Copy link

am11 commented Dec 15, 2015

Ref: http://nuget.codeplex.com/discussions/261638

We encounter this warning on building the solution while pacakges.config is opened in IDE:

Warning The 'packages' element is not declared.

Please publish the XML schema for packages.config and add reference to config template.


For reference, the Nuget 3 project.json's schema is hosted via http://schemastore.org/json/ which VS2015 validates against (and even provides intellisense in JSON file based on this schema).
https://github.com/schemastore/schemastore/

@yishaigalatzer
Copy link

Similarly I would like to see a schema for nuget.config

Things we need to do:

  1. Figure out if we can ship the schema inside the nuget vsix (as we are moving away from msi going forward)
  2. Generate the schema files and test them.

@csharpfritz
Copy link
Contributor

A schema for *.nuspec would be a good idea as well - @xavierdecoster has a package with an older XSD for NuSpec at: https://www.nuget.org/packages/NuGet.Manifest.Schema -- perhaps we can build off of this and install the content as part of the VSIX

@csharpfritz csharpfritz self-assigned this Feb 12, 2016
@csharpfritz
Copy link
Contributor

I'm putting together 2 schemas - packages.config and updating the nuspec schema from the NuGet.Manifest.Schema package.

@harikmenon harikmenon modified the milestones: Client-VNext, Future Apr 19, 2016
@nkolev92 nkolev92 modified the milestones: 4.4, Future-2 Jul 25, 2017
@BobFrankston
Copy link

This is not a schema problem as such because it only happens if the file happens to be open. This is like only reporting errors in C# files that happen to be open rather than any errors in the project. This is why I consider such messages as a spurious byproduct of search opening up the XML file.

(Would be nice if the standard search had an option to not search such files)

@emgarten emgarten modified the milestones: 4.4, Backlog Nov 9, 2017
@karann-msft
Copy link
Contributor

@emgarten give me the link to the schema for package.config. I'll link to it from docs.

I know the nuspec schema is here https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Packaging/compiler/resources/nuspec.xsd

@am11
Copy link
Author

am11 commented Dec 6, 2017

@emgarten
Copy link
Member

emgarten commented Dec 7, 2017

@karann-msft I don't think there is an xsd in the nuget or nuget2 codebase, I'm not finding it anyways.

One would need to be created. I'm not sure further work like this for packages.config would be useful however, users should move to PackageReference.

@nkolev92 nkolev92 changed the title Please publish XML schema for pacakges.config Please publish XML schema for packages.config May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests