toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.51k stars 260 forks source link

Assembly.CodeBase is obsolete #408

Closed jzabroski closed 3 years ago

jzabroski commented 3 years ago

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