You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
@jkotas@yizhang82 The recent CLI changes broke mcg , I have a fix which is not yet merged since CLI folks are moving dotnet compile native as a standalone command.Given this is blocking i will merge the changes today and will update the documentation on how to enable mcg.
@yizhang82@jkotas I merged the changes to CLI and verified that Console.WriteLine(Directory.GetCurrentDirectory()) work , but File.ReadAllBytes throw FileNotFound since System.IO.FileSystem is not included in compilation.We need to get pass along the app references to ilc.exe , guess there's workitem for this?.I will verify some other simple scenarios on Windows and then on Linux.
@tijoytom I have looked at your CLI change dotnet/cli#1293. It looks like it is generating the interop for .exe only - it is nice, but it won't help the framework where all interop is. Do you have things in place to generate the interop code for the framework as well (so that the temporary interop generator in ilc can be disabled)?
@jkotas@yizhang82 By framework you mean ILSDK?We have two options , one is to generate the interop for them during app compile time another is to run mcg as a post build process and add *.interop.dll to ILSDK package.As obvious the first option is redundant , but can be a stop-gap measure till i hook up the post build and generate the package.
Senthil is almost done with trimming the temporary AppDeps package to bare minimum (to just .dlls that we do not have packaged properly yet). We are about to start getting most of the framework (e.g. System.Console.dll, System.IO.*.dll, etc.) via regular nuget packages. So adding *.interop.dll to AppDeps package does not really work well.
We need to add .NET Native version of System.Threading.Overlapped.dll to appdeps package to make this work out of the box (the CoreCLR version of this .dll that we are picking up right now does not work because of it depends on mscorlib). @schellap Could you please do it when you get a chance?
The other part needed to make this work out of the box is to pick up a updated System.IO.FileSystem.dll - it will solve itself over time.
In the meantime, the workaround is to manually pick up right System.Threading.Overlapped.dll and System.IO.FileSystem.dll from corefx. E.g. build corefx repo and change the paths in ilc response file to:
Activity
jkotas commentedon Feb 8, 2016
@tijoytom @yizhang82 This is blocking a number of simple tests. E.g. @bloudraak asked about this on gitter.
When do you expect that the mcg is going to be properly hooked up to handle these?
I am wondering whether we should add these missing cases to the temporary interop gen in the compiler in the mean time - it is trivial to do.
tijoytom-zz commentedon Feb 8, 2016
@jkotas @yizhang82 The recent CLI changes broke mcg , I have a fix which is not yet merged since CLI folks are moving dotnet compile native as a standalone command.Given this is blocking i will merge the changes today and will update the documentation on how to enable mcg.
tijoytom-zz commentedon Feb 8, 2016
Sorry , I did not mean to close it.
jkotas commentedon Feb 8, 2016
Could you please verify that your change makes the end-to-end work for the above simple test (ideally on both Windows and Unix)?
yizhang82 commentedon Feb 8, 2016
@tijoytom Can you also see if we can add a simple test in there to avoid future regressions?
tijoytom-zz commentedon Feb 10, 2016
@yizhang82 @jkotas I merged the changes to CLI and verified that Console.WriteLine(Directory.GetCurrentDirectory()) work , but File.ReadAllBytes throw FileNotFound since System.IO.FileSystem is not included in compilation.We need to get pass along the app references to ilc.exe , guess there's workitem for this?.I will verify some other simple scenarios on Windows and then on Linux.
jkotas commentedon Feb 10, 2016
@schellap is working on this.
jkotas commentedon Feb 10, 2016
@tijoytom I have looked at your CLI change dotnet/cli#1293. It looks like it is generating the interop for .exe only - it is nice, but it won't help the framework where all interop is. Do you have things in place to generate the interop code for the framework as well (so that the temporary interop generator in ilc can be disabled)?
tijoytom-zz commentedon Feb 10, 2016
@jkotas @yizhang82 By framework you mean ILSDK?We have two options , one is to generate the interop for them during app compile time another is to run mcg as a post build process and add *.interop.dll to ILSDK package.As obvious the first option is redundant , but can be a stop-gap measure till i hook up the post build and generate the package.
jkotas commentedon Feb 10, 2016
Senthil is almost done with trimming the temporary AppDeps package to bare minimum (to just .dlls that we do not have packaged properly yet). We are about to start getting most of the framework (e.g. System.Console.dll, System.IO.*.dll, etc.) via regular nuget packages. So adding *.interop.dll to AppDeps package does not really work well.
jkotas commentedon Feb 22, 2016
We need to add .NET Native version of System.Threading.Overlapped.dll to appdeps package to make this work out of the box (the CoreCLR version of this .dll that we are picking up right now does not work because of it depends on mscorlib). @schellap Could you please do it when you get a chance?
The other part needed to make this work out of the box is to pick up a updated System.IO.FileSystem.dll - it will solve itself over time.
In the meantime, the workaround is to manually pick up right System.Threading.Overlapped.dll and System.IO.FileSystem.dll from corefx. E.g. build corefx repo and change the paths in ilc response file to:
schellap commentedon Feb 22, 2016
@jkotas, I had added the Threading.Overlapped with dotnet/cli#1470 using the DLL you had shared. Does FS dll need update as well from same location?
jkotas commentedon Feb 22, 2016
Cool - I have not realized that there is updated package available. I am fixing up the CoreRT repo to pull it down as well: #914
jkotas commentedon Feb 22, 2016
This works now with most recent package versions.