473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Getting AssemblyInfo.cs when ReflectionOnlyLoadFrom()?

I'm loading an assmebly by
Assembly.ReflectionOnlyLoadFrom("C:\\myassembly.ex e"). In
myassmebly.exe's AssemblyInfo.cs file, I've placed this entry:

[assembly: AssemblyInformationalVersion( "11/13/2006" )]

How can I get at it when using ReflectionOnlyLoadFrom()?
Assembly.GetCustomAttributes() doesn't work.

When loading an assembly normally, I use this:

string someDate = ( (
System.Reflection.AssemblyInformationalVersionAttr ibute )(
AssemblyInformationalVersionAttribute.GetCustomAtt ribute( _assembly,
typeof( System.Reflection.AssemblyInformationalVersionAttr ibute ) ) )
).InformationalVersion;

Thanks,
Brett

Nov 14 '06 #1
0 1881

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

Similar topics

1
by: Robert Scheer | last post by:
Hi. I tried to compile a windows forms app without the assemblyinfo.vb file, and it compiled ok. So, if I delete the assemblyinfo.vb file from my project what kinds of problems would I have? ...
2
by: MrNobody | last post by:
I'm trying to figure out how to handle versioning for my app when I found a web site talking about AssemblyInfo.cs. They say all new .NET projects get this file and it comes with automated...
5
by: David | last post by:
Hello, I really need help. I use C++ VisualStudio.net version 2002. I tried to create a very simple console app. However, it won't compile, then I found out that I am missing two important...
1
by: Oenone | last post by:
In all the projects I have upgraded from VS2003 to VS2005, the AssemblyInfo.vb file appears as a normal source file in the Solution Explorer (just as it did in VS2003). In new projects created...
1
by: Boot2TheHead | last post by:
http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.reflectiononlyloadfrom.aspx When I open an assembly using Assembly.ReflectionOnlyLoadFrom it loads fine, but when I try to...
2
by: James Wong | last post by:
Hi everybody, I would like to know how to retrieve information from AssemblyInfo.vb inside web service. I've tried many different ways including GetExecutingAssembly or similar method but all...
0
by: =?Utf-8?B?bXF1aW50?= | last post by:
In Nant, I'm building a .NET 1.1 assembly using CSC, but it's ignoring the AssemblyInfo.cs file when building the assembly. How do I get CSC to use AssemblyInfo for version number, etc?
0
by: The Coder | last post by:
I get a version tab in the shell only for VS_VERSION_INFO. I was expecting AssemblyInfo.cpp to create the version tab . Can I get AssemblyInfo.cpp to create version tab instead? If can not get...
3
by: codefragment | last post by:
Hi I'm stuck with the basics of CAS. I have a solution with two projects, Assembly1 and Assembly2. Assembly1 is happily making calls to the registry, filesystem, etc Assembly1 calls a method on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.