runtime icon indicating copy to clipboard operation
runtime copied to clipboard

System.Net.* Tests require special compilation rules because of System.Net.Internals

Open karajas opened this issue 10 years ago • 7 comments

System.Net.* Tests utilizes an internal namespace, System.Net.Internals. Certain NETStandard.Library dependencies like System.Net.Sockets need to be excluded from compile (they are a dependency of xunit rtm).

karajas avatar Aug 04 '16 23:08 karajas

See discussion on https://github.com/dotnet/corefx/pull/10582. /cc @weshaggard

karajas avatar Aug 04 '16 23:08 karajas

cc @davidsh @CIPop

karajas avatar Aug 04 '16 23:08 karajas

@karajas I've added some context in the original PR. Please add more detail on why this is happening now.

CIPop avatar Aug 04 '16 23:08 CIPop

This error could not be pragma disabled, as it is an actual compile time error, this requires further restructuring of either the xunit dependencies or the System.Net.Internals namespace.

karajas avatar Sep 12 '16 21:09 karajas

@karajas Are you still looking at this, and do we have a plan going forward or do we need more input on possible options?

mellinoe avatar Nov 11 '16 20:11 mellinoe

No resolution at the moment, probably require more information as to what are the actual build dependencies.

karajas avatar Nov 14 '16 21:11 karajas

@karajas, closing this now since it's very old and I see XUnit working at this time. Also, it sounds like a circular dependency issue: in general one shouldn't need to change production code to accommodate testing infrastructure.

CIPop avatar Mar 22 '17 19:03 CIPop