Assembly Version is 0.0.0.0

G

Guest

Hello,

In my ASP.NET (1.1) project, I look for the current version of the assembly:

Version vv = GetType().Assembly.GetName().Version;
return("v" + vv.ToString());

I am always seeing "v0.0.0.0" for the output, even though I set the version
in the assembly.cs file explicitly:

[assembly: AssemblyVersion("2.0.102.*")]

Any ideas how I can get the actual assembly version of the code-behind DLL
for my ASP.NET application?

Thanks

-- Jake
 
G

Guest

ahha!

Because I am using "getType()" the actual DLL type is coming from the ASPX
page, not the code-behind. So when I replaced the getType() with:

typeof(CodeBehindType)

I got the actual version I wanted.

-- Jake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top