Skip to content

Obsolete warnings on clean build #39976

Closed
@ericstj

Description

@ericstj

Initial cost estimate: 2 days
Initial contacts: @trylek, @ViktorHofer

#39269 introduced warnings to the full build.

For example https://dev.azure.com/dnceng/public/_build/results?buildId=746713&view=results

Shows 18 warnings which seem to be test code:

LowLatencyTest.cs(111,13): warning SYSLIB0004: 'RuntimeHelpers.PrepareConstrainedRegions()' is obsolete: 'The Constrained Execution Region (CER) feature is not supported.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
RunInALC.cs(42,73): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
GitHub_25468.cs(82,9): warning SYSLIB0011: 'BinaryFormatter.Serialize(Stream, object)' is obsolete: 'BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
GitHub_25468.cs(85,24): warning SYSLIB0011: 'BinaryFormatter.Deserialize(Stream)' is obsolete: 'BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
test22888.cs(68,73): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components 
IpcUtils.cs(73,55): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.'
CoreCLR Common Pri0 Test Build AnyOS AnyCPU checked • Build managed test components
LowLatencyTest.cs(111,13): warning SYSLIB0004: 'RuntimeHelpers.PrepareConstrainedRegions()' is obsolete: 'The Constrained Execution Region (CER) feature is not supported.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
RunInALC.cs(42,73): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
TestInALC.cs(13,77): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
GitHub_25468.cs(82,9): warning SYSLIB0011: 'BinaryFormatter.Serialize(Stream, object)' is obsolete: 'BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
GitHub_25468.cs(85,24): warning SYSLIB0011: 'BinaryFormatter.Deserialize(Stream)' is obsolete: 'BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
test22888.cs(68,73): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components
IpcUtils.cs(73,55): warning SYSLIB0012: 'Assembly.CodeBase' is obsolete: 'CodeBase and EscapedCodeBase are only included for .NET Framework compatibility. Use Location instead.' Mono Common Pri0 Test Build AnyOS AnyCPU release • Build managed test components

cc @jeffhandley

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions