<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Creating_and_Using_config.json_file</id>
		<title>Creating and Using config.json file - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://logicwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Creating_and_Using_config.json_file"/>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Creating_and_Using_config.json_file&amp;action=history"/>
		<updated>2026-04-17T19:28:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=Creating_and_Using_config.json_file&amp;diff=267&amp;oldid=prev</id>
		<title>Dt1nh6: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Creating_and_Using_config.json_file&amp;diff=267&amp;oldid=prev"/>
				<updated>2016-05-09T13:27:28Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:27, 9 May 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Dt1nh6</name></author>	</entry>

	<entry>
		<id>https://logicwiki.co.uk/index.php?title=Creating_and_Using_config.json_file&amp;diff=266&amp;oldid=prev</id>
		<title>Macrop: Created page with &quot;Category:MVC Category:MVC6 Category:ASP.NET Category:ASP.NET5  == Defining == in startup.cs file  &lt;pre class=&quot;brush:c-sharp;&quot;&gt; public class Startup {   public...&quot;</title>
		<link rel="alternate" type="text/html" href="https://logicwiki.co.uk/index.php?title=Creating_and_Using_config.json_file&amp;diff=266&amp;oldid=prev"/>
				<updated>2016-02-28T19:59:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:MVC&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:MVC (page does not exist)&quot;&gt;Category:MVC&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:MVC6&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:MVC6 (page does not exist)&quot;&gt;Category:MVC6&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:ASP.NET&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:ASP.NET (page does not exist)&quot;&gt;Category:ASP.NET&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:ASP.NET5&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:ASP.NET5 (page does not exist)&quot;&gt;Category:ASP.NET5&lt;/a&gt;  == Defining == in startup.cs file  &amp;lt;pre class=&amp;quot;brush:c-sharp;&amp;quot;&amp;gt; public class Startup {   public...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:MVC]]&lt;br /&gt;
[[Category:MVC6]]&lt;br /&gt;
[[Category:ASP.NET]]&lt;br /&gt;
[[Category:ASP.NET5]]&lt;br /&gt;
&lt;br /&gt;
== Defining ==&lt;br /&gt;
in startup.cs file &lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:c-sharp;&amp;quot;&amp;gt;&lt;br /&gt;
public class Startup&lt;br /&gt;
{&lt;br /&gt;
  public static IConfigurationRoot Configuration;&lt;br /&gt;
  public Startup(IApplicationEnvironment appEnv)&lt;br /&gt;
  {&lt;br /&gt;
    var builder = new ConfigurationBuilder()&lt;br /&gt;
      .SetBasePath(appEnv.ApplicationBasePath)&lt;br /&gt;
      .AddJsonFile(&amp;quot;config.json&amp;quot;)&lt;br /&gt;
      .AddEnvironmentVariables();&lt;br /&gt;
&lt;br /&gt;
      Configuration = builder.Build();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Creating File ==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:c-sharp;&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;AppSettings&amp;quot;:{&lt;br /&gt;
    &amp;quot;SiteEmailAddress&amp;quot;:&amp;quot;me@aol.com&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Using ==&lt;br /&gt;
&amp;lt;pre class=&amp;quot;brush:c-sharp;&amp;quot;&amp;gt;&lt;br /&gt;
var email = Startup.Configuration[&amp;quot;AppSettings:SiteEmailAddress&amp;quot;]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Macrop</name></author>	</entry>

	</feed>