By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,106 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,106 IT Pros & Developers. It's quick & easy.

Where is System.Reflection.dll assembly?

P: n/a
Hi, I am using FXCop on my c# project and it is complaining about
signing the assembly with a strong name key. All the documentation I
can find says to do:

using System.Reflection;
....
[assembly:AssemblyKeyFileAttribute("foo.key")] namespace Foo

Which is fine, except that I need to add a reference in my Project to
the System.Reflection.dll assembly and I can't find it. I have .NET
2.0 Framework installed and can find all my other necessary assemblies
at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\. Do I need to
download System.Reflection somewhere? I thought it was a core
assembly? Help!

Dec 14 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
1) System.Reflection is a namespace in the Microsoft Common Runtime Library
(mscorlib.dll), normally you don't need to add the reference to this
assembly unless you accidentally removed it.

2) Why exactly do you need the System.Reflection namespace for?

3) Also try to centralize assembly attributes in \Properties\AssemblyInfo.cs
that's what it is made for.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

<gr**********@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hi, I am using FXCop on my c# project and it is complaining about
signing the assembly with a strong name key. All the documentation I
can find says to do:

using System.Reflection;
...
[assembly:AssemblyKeyFileAttribute("foo.key")] namespace Foo

Which is fine, except that I need to add a reference in my Project to
the System.Reflection.dll assembly and I can't find it. I have .NET
2.0 Framework installed and can find all my other necessary assemblies
at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\. Do I need to
download System.Reflection somewhere? I thought it was a core
assembly? Help!

Dec 14 '06 #2

P: n/a
Thank you on all three counts, Gabriel!

Gabriel Lozano-Morán wrote:
1) System.Reflection is a namespace in the Microsoft Common Runtime Library
(mscorlib.dll), normally you don't need to add the reference to this
assembly unless you accidentally removed it.

2) Why exactly do you need the System.Reflection namespace for?

3) Also try to centralize assembly attributes in \Properties\AssemblyInfo..cs
that's what it is made for.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

<gr**********@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hi, I am using FXCop on my c# project and it is complaining about
signing the assembly with a strong name key. All the documentation I
can find says to do:

using System.Reflection;
...
[assembly:AssemblyKeyFileAttribute("foo.key")] namespace Foo

Which is fine, except that I need to add a reference in my Project to
the System.Reflection.dll assembly and I can't find it. I have .NET
2.0 Framework installed and can find all my other necessary assemblies
at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\. Do I need to
download System.Reflection somewhere? I thought it was a core
assembly? Help!
Dec 14 '06 #3

P: n/a
Just ignore my question on why you need the System.Reflection namespace.

Also did you know that in Visual Studio 2005 it is possible to sign your
projects through the properties? This will inject the correct attributes in
AssemblyInfo.cs.

Right-click a project and select Properties and then click on the tab
"Signing".

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

<gr**********@gmail.comwrote in message
news:11**********************@t46g2000cwa.googlegr oups.com...
Thank you on all three counts, Gabriel!

Gabriel Lozano-Morán wrote:
1) System.Reflection is a namespace in the Microsoft Common Runtime
Library
(mscorlib.dll), normally you don't need to add the reference to this
assembly unless you accidentally removed it.

2) Why exactly do you need the System.Reflection namespace for?

3) Also try to centralize assembly attributes in
\Properties\AssemblyInfo.cs
that's what it is made for.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

<gr**********@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hi, I am using FXCop on my c# project and it is complaining about
signing the assembly with a strong name key. All the documentation I
can find says to do:

using System.Reflection;
...
[assembly:AssemblyKeyFileAttribute("foo.key")] namespace Foo

Which is fine, except that I need to add a reference in my Project to
the System.Reflection.dll assembly and I can't find it. I have .NET
2.0 Framework installed and can find all my other necessary assemblies
at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\. Do I need to
download System.Reflection somewhere? I thought it was a core
assembly? Help!

Dec 14 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.