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

IL Linker fails with osx-x64 RID #10003

Closed
Petermarcu opened this issue Mar 22, 2018 · 3 comments
Closed

IL Linker fails with osx-x64 RID #10003

Petermarcu opened this issue Mar 22, 2018 · 3 comments
Assignees
Milestone

Comments

@Petermarcu
Copy link
Member

@phil-harmoniq commented on Thu Mar 22 2018

Output of dotnet --info:

.NET Command Line Tools (2.1.300-preview1-008174)

Product Information:
 Version:            2.1.300-preview1-008174
 Commit SHA-1 hash:  b8df89a54f

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.1.300-preview1-008174/

Microsoft .NET Core Shared Framework Host

  Version  : 2.1.0-preview1-26216-03
  Build    : f2c3216183d20416568a4bbf5bb7d153e826f153

Issue:

I followed the steps for using the .NET Core IL Linker as demonstrated on this page. I am trying to use it on this repo, but when I run the command dotnet publish -c Release -r osx-x64 I get the following error:

/Users/phil/.nuget/packages/illink.tasks/0.1.4-preview-906439/build/ILLink.Tasks.targets(198,5): error MSB4044: The "ComputeManagedAssemblies" task was not given a value for the required parameter "SdkAssemblies". [/Users/phil/git/dotnet-native-test/Native.Cli/Native.Cli.csproj]

I've tried Googling the message but haven't had any luck. Am I doing something wrong?

@jeffschwMSFT
Copy link
Member

@sbomer can you take a look?

@sbomer
Copy link
Member

sbomer commented Mar 23, 2018

@phil-harmoniq, this is happening because your example project uses the Microsoft.DotNet.ILCompiler package together with the linker, and these two packages happen to define different tasks with the same name (ComputeManagedAssemblies). It looks like you're trying to use corert together with the linker, and I'm not surprised that this scenario isn't working. The linker was designed with .NET Core in mind, and it would take some thought to see how it could fit in with corert.

If you're interested in the linker independently of corert, I'd suggest trying it on a .NET Core project, without the ILCompiler package. Make sure to use the latest version available at https://dotnet.myget.org/feed/dotnet-core/package/nuget/ILLink.Tasks. :)

@sbomer sbomer closed this as completed Mar 23, 2018
@phil-harmoniq
Copy link

Thanks for the clarification!

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@msftgits msftgits added this to the 2.1.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants