Code Monkey home page Code Monkey logo

t4configuration's Introduction

T4 Configuration ReadMe

T4Configuration is a T4 (text template) file that lives in Visual Studio 2010 and automatically creates a static class with properties from your configuration (*.config) file.

Best way to install is through Nuget.Org:

Install-Package T4Configuration

Changelog 26/03/2012:

  • Will now scan any .config file for appSettings or connectionStrings sections in the root.
  • Included license in repository and T4 file.
  • Known Issue: Does not check key names for duplicates so will output duplicate static methods if found. Future fix :)

Changelog 26/07/2011:

  • Taken out dependency to T4Toolbox
  • Updated Nuget package

After installation it should run automatically, if you need to regenerate the class just right click and select "run custom tool".

To use in your application you should just have to type:

Config.appSetting

Config.connectionString

It will also be in your root namespace.

t4configuration's People

Contributors

tornal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.