Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get intellisense in app.config for a custom section?
    primarykey
    data
    text
    <p>We have a custom section in my app.config file related to our IoC container class. How can I get intellisense when editing the config file for this section, as well as getting rid of the compiler messages informing me of the missing schema.</p> <p>I found this question here: <a href="https://stackoverflow.com/questions/229155/appconfig-configsections-custom-settings-can-not-find-schema-information">app.config configSections custom settings can not find schema information</a>, but I don't understand if it applies to my problem or not, and how to use the answer there if it does.</p> <p>I also found this page <a href="http://www.radsoftware.com.au/articles/intellisensewebconfig.aspx" rel="nofollow noreferrer">How to get Intellisense for Web.config and App.config in Visual Studio .NET</a>, but it says to remove the xmlns attribute before running the application. Is that really the only/best way?</p> <p>Here is an example of a simple file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;configSections&gt; &lt;section name="ServiceContainers" type="LVK.IoC.RegistrationsSectionHandler, LVK"/&gt; &lt;/configSections&gt; &lt;ServiceContainers&gt; &lt;Registration type="DatabaseConnection" class="DatabaseConnection"&gt; &lt;Parameter name="connectionString" type="System.String" value="TYPE=MSSQL2000;SERVER=localhost;DATABASE=db"/&gt; &lt;/Registration&gt; &lt;/ServiceContainers&gt; &lt;/configuration&gt; </code></pre> <p>Basically I would like to be able to type <code>&lt;R</code> inside the <code>&lt;ServiceContainers&gt;</code> node, and get Registration suggested to me in the intellisense dropdown, as well as the appropriate attributes for it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload