473,568 Members | 2,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML documentation file name

Hi all,

I have a VS 2005 SP1 Visual Basic solution that creates a bunch of
assemblies (both main programs and DLLs). All of the projects have
"Generate XML documentation file" selected on the Compile tab of the My
Project designer. Now here's the weird part that I need help with: 2 of
the 8 projects generate XML documentation in a file whose name is identical
to the assembly name (plus a .XML extension) as expected. The other 6
generate XML documentation in files whose name does not match the assembly
name. When I reference one of those 6 assemblies from another solution, I
don't get intellisense because VS doesn't find a matching .XML file.

How does VS decide on a name to give to the XML documentation file that it
creates? Is there some setting somewhere that I'm not stumbling across?

TIA - Bob
Mar 21 '07 #1
3 1834
Hi Bob,

MSDN document on VB.NET Project Designer says "The Generate XML document
file property is set on the Compile page of the Project Designer. When this
option is selected, XML documentation is automatically emitted into an XML
file, which will have the same as your project and the .xml extension."

The MSDN document doesn't mention there's a setting for the name of the XML
document to be generated in VB.NET projects. I tried to find in the options
window(Tools|Op tions), and didn't find a setting for the name of the XML
document for VB.NET projects, either.

What application types are the projects in your solution, whose own XML
document's name is incorrect, Windows Application, Class Library or
something else?

In fact, when we select the 'Generate XML document file' option in the
Compile page of the Project Designer and then save the changes, the name of
the XML document to be generated is saved to the project file. Navigate to
the project file(.vbproj) in Windows Explorer and open the project file
with Notepad. You should see the name of the XML document in the
<DocumentationF iletag within the <PropertyGroupt ag.

I think a workaround to your problem is to modifty the name of the XML
document in the project file with Notepad manually, and then build the
project.

Hope this helps.
If you have anything unclear, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 22 '07 #2
"Linda Liu [MSFT]" <v-****@online.mic rosoft.comwrote in message
news:Rl******** ******@TK2MSFTN GHUB02.phx.gbl. ..
I think a workaround to your problem is to modifty the name of the XML
document in the project file with Notepad manually, and then build the
project.
Thanks Linda. I manually fixed the vbproj files and now everything works as
it should.
MSDN document on VB.NET Project Designer says "The Generate XML document
file property is set on the Compile page of the Project Designer. When
this
option is selected, XML documentation is automatically emitted into an XML
file, which will have the same as your project and the .xml extension."
Actually, the desired behavior seems to be that the xml file must have the
same name as the assembly (which may not match the project name).
The MSDN document doesn't mention there's a setting for the name of the
XML
document to be generated in VB.NET projects. I tried to find in the
options
window(Tools|Op tions), and didn't find a setting for the name of the XML
document for VB.NET projects, either.
I guess I could have tried changing the assembly names in the My Project
designer (to "xxx" and then back to their proper names) to see if something
in the designer magically changes the documentation file to match, but that
didn't occur to me until after I had changed the vbproj files.
Mar 22 '07 #3
Hi Bob,

Thank you for your feedback.
Actually, the desired behavior seems to be that the xml file must have
the
same name as the assembly (which may not match the project name).

I performed a test on this and did see the name fo the xml file has the
same name as the assembly, not the project. Thank you for pointing it out :
)

I am sorry that I am not sure what causes the problem that the xml file's
name doesn't match the assembly name in your project, unless you modify the
vbproj file with Notepad manually. But at least, we have a workaround for
this problem.

If you have any other question in the future, please don't hesitate to
contact us. It's always our pleasure to be of assistance!

Have a nice weekend!

Sincerely,
Linda Liu
Microsoft Online Community Support

Mar 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5537
by: AA | last post by:
Hello, I was commented my class and copile it, when the compilation finished th VS create the XML document It is cool because I can use to generate MSHelp documentation but, when I import my commented assembly from another project, and use it I can see any comments I want to see the documentation at runtime, for example when I invoke a...
8
1983
by: Will Pittenger | last post by:
I have a Windows program C# .NET solution where when I update its XML documentation, some tags are not recognized and turned into the corresponding HTML. Those tags include <c>, <code>, <para>, <paramref>, and <exception>. <remarks> works; I have not tried <include>. Is this a bug in Studio or am I using those tags incorrectly? When the...
14
1597
by: Don Wash | last post by:
Hi There! In C# you can use /// to add comments that can produce XML documentation. What about in VB???? Thanks, Don
5
7730
by: WALDO | last post by:
Where can I find some documentation on creating XML comment files. I would like to know the format/conventions for creating them.
5
1488
by: WStoreyII | last post by:
Is there some sort of a preset way for compiling documetation about an assembly or a project. The Reason that i ask this is that sometimes when i look at examples for code i see things like this. <summary>This is a summary</summary> public function test() end function and then this is the same stuff that i will see in the documentation....
2
1235
by: R.A.M. | last post by:
Hello, I am learning .NET 2.0. I need to learn how to create documentation from /// comments. I downloaded sample project XMLsample from Web and I generated XML documentation XMLsample.xml: <?xml version="1.0"?> <doc> <assembly> <name>XMLdoc</name> </assembly>
3
4064
by: Noman Ali | last post by:
Hi, It seems that ASP .NET 2.0 does not support XML documentation feature. Is there any way to do this? I serached alot and only find this solution but it didnot works for C#. Here it is. http://www.carljohansen.co.uk/codelib/copyappcodexml/
2
7373
by: bthubbard | last post by:
This may not be the best group in which to post this. If there is a better location please direct me there. I have been experimenting with Sandcastle to generate CHM help file documentation for some of our projects. I can configure a project(s) to generate the required XML Documentation file by editing the project properties via VS or I...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.