471,071 Members | 3,803 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

fetch a fragment of source code

I have a vb.net program that needs to display a few fragments of its source
code, typically one to five lines for each fragment, and each line contains
one assignment statement. I need to do this in a few places (about 10) in a
medium size program (about 10k lines).

In the old C days, I would use the stringize operator to capture a few
source fragments. No such thing in VB (too bad, actually). I need this to
work in both debug and production environments. I'm currently at .NET 2003
FW 1.1, and I'll upgrade if needed to solve this problem.

Any ideas?
May 9 '07 #1
1 1036
=?Utf-8?B?QU1lcmNlcg==?= <AM*****@discussions.microsoft.comwrote in
news:35**********************************@microsof t.com:
I have a vb.net program that needs to display a few fragments of its
source code, typically one to five lines for each fragment, and each
line contains one assignment statement. I need to do this in a few
places (about 10) in a medium size program (about 10k lines).

In the old C days, I would use the stringize operator to capture a few
source fragments. No such thing in VB (too bad, actually). I need
this to work in both debug and production environments. I'm currently
at .NET 2003 FW 1.1, and I'll upgrade if needed to solve this problem.
Where are you fetching the source code from? From within the assembly? I
don't believe the source code is embedded within the built binaries ... so
you'll have to cross reference with the original source code files.
May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Stuart Baker | last post: by
2 posts views Thread by Yuriy | last post: by
13 posts views Thread by RR | last post: by
2 posts views Thread by scottbvfx | last post: by
reply views Thread by leo001 | last post: by

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.