the tag get underlined in blue color and it gives me warning like this:
The 'StructureMap' element is not declared.
This is happening because you are trying to add it in a Config file. Has this been a plane XML file saved as *.xml file, all would be good.
Config files have standard format and defined elements to show.
For your case, we would need to do it inside
Configuration
tag:
Embedding StructureMap configuration into the App.config file[
^]
Sample:
="1.0"="utf-8"
<configuration>
<configSections>
<section name="StructureMap" type="StructureMap.Configuration.StructureMapConfigurationSection,StructureMap"/>
</configSections>
<StructureMap>
<Assembly Name="Liaison.Common"></Assembly>
<Assembly Name="Liaison.Components"></Assembly>
<Assembly Name="Liaison.DataAccess"></Assembly>
<Assembly Name="Liaison.Liaison"></Assembly>
</StructureMap>
</configuration>
Documentation details here:
StructureMap - StructureMap Home Page[
^]