Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete warnings on clean build #39976

Closed
ericstj opened this issue Jul 27, 2020 · 3 comments · Fixed by #51847
Closed

Obsolete warnings on clean build #39976

ericstj opened this issue Jul 27, 2020 · 3 comments · Fixed by #51847
Labels
area-Infrastructure-coreclr help wanted [up-for-grabs] Good issue for external contributors
Milestone

Comments

@ericstj
Copy link
Member

ericstj commented Jul 27, 2020

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

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner labels Jul 27, 2020
@danmoseley
Copy link
Member

@jkoritzinsky these aside, should warnings be treated as errors in the Clr tests (and all other code we have)? Then presumably this would have been found in PR validation.

@jkoritzinsky
Copy link
Member

Traditionally we havent done warnings-as-errors for the CLR tests because we always had a ton of warnings due to the weird build setup. It would be worth investigating if we can enable warn-as-error for the CLR test build.

@danmoseley
Copy link
Member

Compiler warnings, or MSBuild warnings? The former should be suppressible, if expected, of course.

@jashook jashook removed the untriaged New issue has not been triaged by the area owner label Aug 20, 2020
@jashook jashook added this to the 6.0.0 milestone Aug 20, 2020
@trylek trylek added the help wanted [up-for-grabs] Good issue for external contributors label Mar 2, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 26, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 26, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-coreclr help wanted [up-for-grabs] Good issue for external contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants