Giter Site home page Giter Site logo

Comments (5)

markjprice avatar markjprice commented on August 24, 2024

If you add "Value" then it will not be read. This does not work:

{
  "PacktSwitch": {
    "Level": {
      "Value": "3"
    }
  }
}

This works:

{
  "PacktSwitch": {
    "Level": "3"
  }
}

And this works:

{
  "PacktSwitch": {
    "Level": "Info"
  }
}

When testing, make sure that edits to the appsettings.json file are being properly copied to the output directory or you will get confused. I will add a statement to the code to output the actual contents of the file being processed to make this clearer in the next edition, as shown in the following code:

Console.WriteLine(File.ReadAllText(Path.Combine(
  Directory.GetCurrentDirectory(), "appsettings.json")));

from cs11dotnet7.

richshi avatar richshi commented on August 24, 2024

from cs11dotnet7.

richshi avatar richshi commented on August 24, 2024

from cs11dotnet7.

markjprice avatar markjprice commented on August 24, 2024

I've done more research to find out what's going on. I have updated an errata item that I already had about this with the latest information I've found. Hopefully that's the end of it! Thanks!

https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-178---reviewing-project-packages

from cs11dotnet7.

richshi avatar richshi commented on August 24, 2024

from cs11dotnet7.

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.