0

Does this file exists? I'm tired of the 'Could not find schema information for attribute' messages.

Thanks

Josh E
  • 7,390
  • 2
  • 32
  • 44
vIceBerg
  • 4,197
  • 5
  • 40
  • 53

2 Answers2

2

One does exist for Entlib 5.0 - it gets installed as part of Entlib 5. Since the Entlib elements don't have XML namespaces, you'll need to explicitly turn it on in VS though (right click on the config file, select "Properties", click on the "Schemas" field, and you'll be able to turn on the schema validation.)

It won't work on everything - Entlib has a highly customizable configuration schema and not everything is representable in XSD, but it's about as good as you're going to get.

Chris Tavares
  • 29,165
  • 4
  • 46
  • 63
  • For current VS installs (namely, Visual Studio Professional 2017), you can get a file this way: 1) Download the EL 5.x MSI file; 2) Open the MSI file in a file archiver utility (e.g., 7-Zip); 3) Extract file \ConfigSchema; 4) Optional: Rename ConfigSchema to something descriptive (e.g., EnterpriseLibrary5.xsd); and 5) Add the XSD, in Visual Studio: open web.config, select a tag, XML > Schemas ..., then "Add" and select the file location. This removed the Intellisense issues for me. Note: deselect any other EL XSD files, if you get duplicate declaration errors. – iokevins Aug 06 '18 at 21:40
  • Link to Microsoft Enterprise Library 5.0 MSI: https://www.microsoft.com/en-gb/download/details.aspx?id=15104 – iokevins Aug 06 '18 at 21:42
1

There is no EntLib XSD file. Producing one is tricky as config is dynamic. See discussion here.

http://entlib.codeplex.com/Thread/View.aspx?ThreadId=10712

Ade Miller
  • 13,575
  • 1
  • 42
  • 75