๋ฐฐ๊ฒฝ
Windows์์๋ ๋ช
๋ น์ค ๋งค๊ฐ ๋ณ์ assembly="c:\source\bin\Debug\netstandard2.0\JohnZabroski.Database.dll"
๋ฅผ ํตํด ์ด์
๋ธ๋ฆฌ๋ฅผ ์ฐจ๋ก๋ก ๋ก๋ํ๋ .NET Core ์ ์ญ ๋๊ตฌ์ ํตํฉํ๊ณ ์์ต๋๋ค. JohnZabroski.Database.dll
๋ System.Data.SqlClient
$ ๋ฅผ ์ ์ด์ ์ผ๋ก ์ฐธ์กฐํฉ๋๋ค.
๋ฌธ์
COREHOST_TRACE=1
๋ฅผ ์ฌ์ฉํ๋ฉด ํ์ฌ stderr์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
!!! Could not load file or assembly 'System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)
!!! +- Could not load file or assembly 'System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) ---> System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlClient, Version=4.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at System.Reflection.Assembly.LoadFromResolveHandler(Object sender, ResolveEventArgs args)
at System.AppDomain.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
๋ด ์กฐ๋ฆฝ์ ์ฐพ์ ์ ์๊ฑฐ๋ ์ฐพ์ ์ ์๋ ์ด์ ๋ฅผ ํด๊ฒฐํ๋ ค๊ณ ํ ๋ ๋ค์ ๋ธ๋ก๊ทธ ๊ฒ์๋ฌผ์ด ๋ค์ ์ํ์ ์ด๋ผ๋ ๊ฒ์ ์์์ต๋๋ค. https://mattwarren.org/2016/07/04/How-the-dotnet-CLI-tooling-runs-your -์ํธ/
.NET 4.6์ Assembly Fusion Log Viewer ๋๊ตฌ๊ฐ ํจ์ฌ ๋ ์ฌ์ด ์ฌ์ฉ์ ๊ฒฝํ์ด๋ผ๋ ๊ฒ์ ์์์ต๋๋ค. ์ฐธ์กฐ: https://github.com/dotnet/coreclr/issues/10379
๊ด๋ จ ๊ฐ๋ฅ์ฑ ์์
https://github.com/dotnet/coreclr/issues/15863 - ์ฌ์ฉ์๋ Linux์์ ๋๋ฒ๊น
์ด์
๋ธ๋ฆฌ ๋ก๋๊ฐ ๋์ฐํ๋ค๊ณ ์๊ฐํฉ๋๋ค (๊ณ ์ : https://github.com/dotnet/coreclr/pull/15831).
@jeffschwMSFT๋ก ์์ํฉ๋๋ค. ๋ด๊ฐ ํ๋ ธ๋ค๋ฉด area-
์์ ํด์ฃผ์ธ์.
์ด๊ฒ์ ์ ๋์ ์ผ๋ก ํ์ํฉ๋๋ค. ๋ฐฑ๋ก๊ทธ์ ์์ง๋ง .NET Core 3.0์ ๋ง๋ค์ง๋ ์์ ๊ฒ์ ๋๋ค.
์ด๊ฒ์ ์ ๋์ ์ผ๋ก ํ์ํฉ๋๋ค. ๋ฐฑ๋ก๊ทธ์ ์์ง๋ง .NET Core 3.0์ ๋ง๋ค์ง๋ ์์ ๊ฒ์ ๋๋ค.
"์ ๋์ ์ผ๋ก ํ์"ํ๋ค๋ฉด ์ Core 3.0์๋ ์์๊น์? ์๋กญ๊ณ ๋ฉ์ง ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ ๊ฒ์ ํ๋ฅญํ์ง๋ง Microsoft์ ๊ฐ์ ์ ํญ์ ์ด๋ฌํ ๊ธฐ๋ฅ์ด ์๋ํ์ง ์์ ๋ ๋๋ฒ๊น ํ๋ ๋๊ตฌ์ ์์ต๋๋ค. ์ด์ ๋ธ๋ฆฌ ๋ฐ์ธ๋ ์คํจ ๋ฌธ์ ํด๊ฒฐ์ ์ฒซ๋ ๋ถํฐ Core์ ๋ด์ฅ๋์ด์ผ ํ๋ ์ค์ํ ๋๊ตฌ์ด๋ฉฐ, ์ด๊ฒ์ด ์ฐ์ ์์๊ฐ ์๋์๊ณ ๋ถ๋ช ํ ์ฌ์ ํ ์ฐ์ ์์๋ก ๊ฐ์ฃผ๋์ง ์๋๋ค๋ ์ฌ์ค์ ์ฐ๋ ค์ค๋ฝ๊ธฐ๋ ํ๊ณ ์์งํ ๋งํด์ ๋นํน์ค๋ฝ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๊ฒ์ ์ ๋์ ์ผ๋ก ํ์ํฉ๋๋ค. ๋ฐฑ๋ก๊ทธ์ ์์ง๋ง .NET Core 3.0์ ๋ง๋ค์ง๋ ์์ ๊ฒ์ ๋๋ค.