Giter Club home page Giter Club logo

Comments (6)

davidfowl avatar davidfowl commented on July 3, 2024

This really is a never ending debate but we chose JSON for a few reasons:

  • Easy to read and author without tooling support
  • Abundance of parsers available on multiple platforms, plus the one that we already use in most of our frameworks JSON.NET
  • We were already investing in a JSON editor for VS (So we could do cool things like use JSON schema to show project.json intellisense and also things like querying for nuget packages)

Aside, why not Xaml 😄
http://forums.asp.net/t/1989814.aspx?Why+Not+Xaml+

from aspnetcore.

ejsmith avatar ejsmith commented on July 3, 2024

I understand the reasoning, but IMO it would be worth it. Your XAML arguments are that JSON is clean and tighter than XAML, but YAML makes JSON look ugly. It seems like project.json files are meant to be hand edited in this new world and to me having a cleaner syntax would be worth some extra effort. Especially since this is a long term architectural change. You know how tight and simple it would be to have a nice project.yaml and config.yaml sitting in your project?? :-) You know you want that. LOL

Maybe the system could support both? I can see where you wouldn't want to make the whole thing pluggable and have a bunch of unknown formats that other editors would need to be able to read and understand, but I would say that you could have a single system that looks for either a project.yaml or project.json file and reads them. Hrmm... now that I think about that... it seems like that would be a bad idea too. I guess it's an all or nothing thing.

from aspnetcore.

davidfowl avatar davidfowl commented on July 3, 2024

JSON has been chosen and I don't see us supporting multiple project formats. The ecosystem needs to be consistent and I'm not a fan of supporting more than one format for the project file (maybe in another 10 years 😉).

Config files are more forgiving and I could see a yaml source but the project format is wayyyy different and has more implications.

BTW "Right Click -> Add Reference" is not dead. We want to have it all:

  • The ability to edit the file
  • The ability to have tooling like VS completely light up the e2e experience with ui that is familiar to people

from aspnetcore.

ejsmith avatar ejsmith commented on July 3, 2024

Yeah, I agree that supporting more than one format would be a bad idea. Also, I guess if you are a C# dev, then you already live in the world of curly braces. Sigh. :-)

from aspnetcore.

alfredorevilla avatar alfredorevilla commented on July 3, 2024

Besides Swagger, I've not used YAML extensively BUT I find it terrible. JSON looks and works better for me, at least under Visual Studio.

from aspnetcore.

aL3891 avatar aL3891 commented on July 3, 2024

I fooled around with ways of using different formats over here https://github.com/aL3891/CustomPackageReferences

from aspnetcore.

Related Issues (20)

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.