-
Notifications
You must be signed in to change notification settings - Fork 509
FileNotFoundException: [TEMPORARY EXCEPTION MESSAGE] FileLoadErrorGeneric: NLog on build #2619
Comments
Correct. Microsoft.NETCore.Native.targets does not pick up package references yet. You can try working around this by explicitly adding the NLog.dll via |
Thanks! Something like |
Yes.
Agree. The right fix is to use the package implementation references in Microsoft.NETCore.Native.targets. It requires some reverse engineering of the msbuild scripts, but it should not be that hard. |
This issue was filed quite a while ago -- we're a couple months beyond .NET Native's public announcement turning 3 years old, Is this important feature planned soon? I have not yet been able to develop any significant project in .NET with zero third-party dependencies, and I imagine I'm not alone in that; so does the inability to create .NET native builds that include others' code means that the platform is not ready for use even by "early adopters" (3 years later...) at this point? |
The workaround above is ugly, but easy to do - it is what we have been using to compile projects with references to other projects or packages. I believe @nattress has a fix for this issue, he just did not have a chance to submit it.
If you expect preview quality, it is not ready. We have not released preview release yet. Yes, it is taking longer than we would wish - other projects are higher priority. |
@jkotas Understandable, priorities are hard. I think we are some people who ❤️ .NET programming and would find it great to be able to use CoreRT to ship our stuff. I guess we'll just have to wait a few more years. 😉 (or, better yet: to volunteer our time to help CoreRT succeed!) |
Just to point out what may not be obvious: the .NET Native that was announced 3 years ago was .NET Native for Windows Store apps. This has shipped about a year after the announcement and is the shipping story for Windows Store apps in Visual Studio 2015/2017. |
Fixed in #4870. |
Thanks @MichalStrehovsky! |
I get this error when trying to build my app with CoreRT, using RyuJIT:
The contents of the
bin/Debug/netcoreapp1.0/
folder is this; I presume theNLog.dll
would have to be included in that folder for it to work:This is the contents of my
.csproj
file:The text was updated successfully, but these errors were encountered: