Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest ILLink.Task is failing for osx-x64 Runtime Identifier #405

sidravi opened this issue Nov 27, 2018 · 1 comment


None yet
2 participants
Copy link

commented Nov 27, 2018

When I do dotnet publish -c release -r osx-x64 after adding ILLink.Tasks nuget package version 0.1.5-preview-1841731, it fails with the following error:
C:\Program Files\dotnet\sdk\2.1.500\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(72,5): error NETSDK1016: Unable to find resolved path for '...\.nuget\packages\\2.1.6\runtimes\osx-x64\native\..\..\..\tools\crossgen.exe'. [....csproj]

Looks like its searching for crossgen.exe for Mac version, instead of crossgen.

I tried using older versions (0.14 preview) and it failed with error The "GetRuntimeLibraries" task failed unexpectedly. I believe this is the same issue discussed in #308 which I think is resolved in later versions.



This comment has been minimized.

Copy link

commented Dec 23, 2018

win-x64 and linux-x64 are affected as well, it seems that ILLink.Task (0.1.5-preview-1841731) is not compatible with netcoreapp2.2.

Error when publishing to 'linux-x64':

error NETSDK1016: Unable to find resolved path for 'coreclr'.

while publishing to 'win-x64':

Fatal error in IL Linker
Mono.Linker.Steps.XmlResolutionException: Failed to process XML description: ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Mono.Linker.LinkContext.ResolveReferences(AssemblyDefinition assembly)
at Mono.Linker.Steps.ResolveFromXmlStep.ProcessReferences(AssemblyDefinition assembly, LinkContext context)
at Mono.Linker.Steps.ResolveFromXmlStep.GetAssembly(LinkContext context, AssemblyNameReference assemblyName)
at Mono.Linker.Steps.ResolveFromXmlStep.ProcessAssemblies(LinkContext context, XPathNodeIterator iterator)
at Mono.Linker.Steps.ResolveFromXmlStep.Process()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.ResolveFromXmlStep.Process()
at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Mono.Linker.Driver.Run(ILogger customLogger)
at Mono.Linker.Driver.Execute(String[] args, ILogger customLogger)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.