manmission Posted September 3, 2006 Posted September 3, 2006 How do I extract the filename, its path, last modified file time as well as its name of the classes n method from a source code file. I need to extract it and then place it in a xml or html file format n display it as documentation. Please reply Thanks Quote
mskeel Posted September 4, 2006 Posted September 4, 2006 Check out the System.IO.File class and the System.IO.Path class for the file name, path, and possibly last modified time. If you are using a version control system, that would be a great way to get the actual last modified time. Classes and methods can be taken from the XML file generated by the C# compiler in .Net 1.1/2.0 and VB compiler in 2.0. There is a tool to parse the info for VB .Net 1.1. There's a link on this forum somewhere to help with that. Another option would be to check out the NDoc project. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.