toddams/RazorLight

Assembly.CodeBase is obsolete

Closed this issue · 0 comments

Describe the bug
DefaultAssemblyDirectoryFormatter is using Assembly.CodeBase but should use Assembly.Location

Severity Code Description Project File Line Suppression State
Warning SYSLIB0012 'Assembly.CodeBase' is obsolete: 'Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.' RazorLight (net5.0) D:\source\GitHub\RazorLightNet472\src\RazorLight\Compilation\LegacyFixAssemblyDirectoryFormatter.cs 10 Active
Warning SYSLIB0012 'Assembly.CodeBase' is obsolete: 'Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.' RazorLight D:\source\GitHub\RazorLightNet472\src\RazorLight\Compilation\DefaultAssemblyDirectoryFormatter.cs 10
Warning SYSLIB0012 'Assembly.CodeBase' is obsolete: 'Assembly.CodeBase and Assembly.EscapedCodeBase are only included for .NET Framework compatibility. Use Assembly.Location instead.' RazorLight D:\source\GitHub\RazorLightNet472\src\RazorLight\Compilation\LegacyFixAssemblyDirectoryFormatter.cs 10