Look at
https://github.com/openrasta/openfilesystem/blob/master/src/OpenFileSystem/OpenFileSystem.csproj
you will see a reference to System.Xml.
As no code is being used that makes use of any XML, if you open that in ilspy
you will find no reference to System.Xml in there. If you do this:
static void Main(string[] args)
{
foreach(var asm in
typeof(IFileSystem).Assembly.GetReferencedAssemblies())
Console.WriteLine(asm.FullName);
}
you will see
System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756
If you open the dll with a binary editor you own't find any System.Xml anywhere
either.
To make sure, open in ildasm, metadata:
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) //
.z\V.4..
.ver 2:0:0:0
}
.assembly extern System.Core
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) //
.z\V.4..
.ver 3:5:0:0
}
.assembly extern System
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) //
.z\V.4..
.ver 2:0:0:0
}
.assembly extern Mono.Posix
{
.publickeytoken = (07 38 EB 9F 13 2E D7 56 ) //
.8.....V
.ver 2:0:0:0
}
>From the *compiler* perspective, if nothing in the code references a type from
>an assembly reference, it won't be in any metadata anywhere at all.
Now that you may have issues with how profiles are implemented in msbuild
scripts, taht's a difference sauce together, but the two issues are mostly
independent.
________________________________________
From: [email protected]
[[email protected]] on behalf of Krzysztof Koźmic
[[email protected]]
Sent: 19 January 2012 00:04
To: [email protected]
Subject: Re: Windsor assembly references
It will be put in the metadata.
Krzysztof
On 19/01/2012 9:41 AM, Sebastien Lambla wrote:
> Reference or no reference, if nothing uses the types in an assembly it won't
> ever get loaded / verified / analyzed / compiled in metadata.
> ________________________________________
> From: [email protected]
> [[email protected]] on behalf of Krzysztof Koźmic
> [[email protected]]
> Sent: 12 January 2012 23:13
> To: [email protected]
> Subject: Re: Windsor assembly references
>
> you must have. My .csproj has
>
>
> <ItemGroup Condition="$(TargetFrameworkProfile)!='Client' and
> $(MSBuildTargets)!='Silverlight 4.0'">
> <Reference Include="System.Web" />
> </ItemGroup>
>
> On 13/01/2012 8:59 AM, hammett wrote:
>> I dont see it, but maybe I inadvertently removed it..
>>
>> 2012/1/12 Krzysztof Koźmic<[email protected]>:
>>> Yes,
>>>
>>> pretty sure there's a condition in the .csproj file, like there is for
>>> System.Windows and SILVERLIGHT
>>>
>>>
>>> On 13/01/2012 8:10 AM, hammett wrote:
>>>> So CLIENTPROFILE removes the reference for system.web? Otherwise that
>>>> will be included in the assembly metadata, right? (I may be wrong,
>>>> it's been a long day)
>>>>
>>>> 2012/1/6 Krzysztof Koźmic<[email protected]>:
>>>>> we already have #if CLIENTPROFILE and release for Client Profile (which
>>>>> doesn't reference System.Web) and for Full Profile (which does).
>>>>> I don't remember Castle.Windsor.Web, perhaps it was pre-RC3
>>>>>
>>>>>
>>>>> On 07/01/2012 9:44 AM, hammett wrote:
>>>>>> I've added #if SYSTEMWEB. Referencing System.Web (or any profile
>>>>>> dependent assembly) would cause the dependency to apply to consuming
>>>>>> assemblies, transitively. Core/Fundamental assemblies should be
>>>>>> mindful about their dependencies because of that...
>>>>>>
>>>>>> I think originally there was a Castle.Windsor.Web that held the
>>>>>> additions dependent on System.Web, but I may be wrong...
>>>>>>
>>>>>> 2012/1/6 Krzysztof Koźmic<[email protected]>:
>>>>>>> it has been referencing System.Web forever. PerWebReqest lifestyle uses
>>>>>>> it.
>>>>>>> System.Windsor is used only in Silverlight build
>>>>>>>
>>>>>>>
>>>>>>> On 07/01/2012 5:19 AM, hammett wrote:
>>>>>>>> Why Windsor references System.Web and System.Windows?
>>>>>>>> This is really bad.
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups
>>>>>>> "Castle Project Development List" group.
>>>>>>> To post to this group, send email to
>>>>>>> [email protected].
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected].
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/castle-project-devel?hl=en.
>>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google Groups
>>>>> "Castle Project Development List" group.
>>>>> To post to this group, send email to
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/castle-project-devel?hl=en.
>>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Castle Project Development List" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/castle-project-devel?hl=en.
>>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en.