Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Two points:</p> <p>Firsly, how does your project compile even if the references are missing? That implies you don't really need them! How can you have a strongly typed reference to something you don't need? You're asking to be warned when you have missed off an <em>unnecessary</em> reference?</p> <p>Secondly,</p> <p>I'm still not clear on exactly what you want to do, but I think what you want can be achieved by creating a pre-build step. You might have to write a little C# console program to do the processing and checking of the web.config file.</p> <p>It is similar to the way that Visual Studio generates a class to represent your resources or properties if you add them using the tooling. For example, if you go to Project -> Properties, Resources tab, then create a resource, you will find that Visual Studio will spit out a Resources.Designer.cs file with a class in that you can then refer to in your code as</p> <pre><code>Properties.Resources.MyTestResource </code></pre> <p>Interestingly, inside the generated code is this comment</p> <pre><code>/// &lt;summary&gt; /// A strongly-typed resource class, for looking up localized strings, etc. /// &lt;/summary&gt; // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. </code></pre> <p>It sounds like you might be able to do something similar in your project, perhaps by adding a pre-build step that generates the class for you?</p> <p>The StronglyTypedResourceBuilder class has a reference page here:</p> <p><a href="http://msdn.microsoft.com/en-us/library/system.resources.tools.stronglytypedresourcebuilder.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.resources.tools.stronglytypedresourcebuilder.aspx</a></p> <p>Looks reasonably easy to use. This may not be applicable in your scenario though, I am just using it as an example. It sounds more like you want to generate a proxy type or something...</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.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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