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
Comments
Similarly I would like to see a schema for nuget.config Things we need to do:
|
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 |
I'm putting together 2 schemas - packages.config and updating the nuspec schema from the NuGet.Manifest.Schema package. |
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 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 |
@karann-msft, I found couple of results elsewhere on GitHub: https://github.com/search?q=extension%3Axsd+targetFramework+allowedVersions&type=Code not sure which one is most complete. |
@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. |
Ref: http://nuget.codeplex.com/discussions/261638
We encounter this warning on building the solution while
pacakges.config
is opened in IDE: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/
The text was updated successfully, but these errors were encountered: