Nucs / JsonSettings

This library simplifies creating configuration for your C# app/service by utilizing the serialization capabilities of Json.NET to serialize nested (custom) objects, dictionaries and lists as simply as by creating a POCO and inheriting JsonSettings class.
MIT License
76 stars 18 forks source link

.WithEncryption not in Library? #12

Closed GreggTri closed 5 years ago

GreggTri commented 5 years ago

I Downloaded the Library through NuGet and VS is stating that WithEncryption doesn't exist. my Package Manager Control didn't state that it screwed up the installation either so I'm not really sure what's going on.

Nucs commented 5 years ago

Make sure to have the proper using to have access to their extensions, VS by itself does not recommend them automatically.

using nucs.JsonSettings;
using nucs.JsonSettings.Fluent; //this is what you are missing

JsonSettings.Construct<SettingsBag>().WithEncryption("123").LoadNow("c:/file.json");

I would suggest you to get Resharper as it really increases productivity and searches for available method extensions for you. alternatively google for vs extensions that does that.

GreggTri commented 5 years ago

ah, you're right. thank you for the help and advice. I'll definitely get that extension.