Re: Where is System.Reflection.dll assembly?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

<groovyjman21@xxxxxxxxx> wrote in message
news:1166040130.325615.238840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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!


.



Relevant Pages

  • RE: Office PIA:s. Can they be made to work properly?
    ... I found the only way to reference a version prior to the one on the build ... > b) Build+Run successful, ... > WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# Plugin system - same interface in two different assemblies...
    ... "add a reference to the appropriate assemblies to each and every project"? ... You don't have each plugin project deciding what ... its idea of the interface is. ... can't by forcing people to include them in assemblies as I've explained. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VS 2005: multiple dlls for one website possible?
    ... >and shouldn't reference and web project assemblies. ... it calls the classes in the web app. ... and the custom control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Referencing your other assemblies in projects
    ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ... Its easy to have 1 VSS database as well, ...
    (microsoft.public.dotnet.languages.csharp)