Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

ILLinkTask should not depend on DOTNET_HOST_PATH #806

Open

Description

@ericstj

It looks like this property is only set when MSBuild is launched by dotnet build or dotnet msbuild. It won't be present when building from VS, nor desktop msbuild.exe, nor dotnet msbuild.dll. I think you should rely on a different mechanism for locating dotnet.exe. Work with folks like @vitek-karas and @nguerrera to find an appropriate convention. I believe ILLink isn't the first tool to hit this.

Activity

  1. ericstj commented on Oct 31, 2019

    @ericstj
    MemberAuthor
  2. nguerrera commented on Oct 31, 2019

    @nguerrera

    It has a fallback to a property set by SDK in targets to find the root of current SDK. What problem did you encounter?

    It does work with msbuild.exe today in the standard cases.

  3. ericstj commented on Oct 31, 2019

    @ericstj
    MemberAuthor

    We were calling task directly and not setting ToolPath / ToolExe.

  4. nguerrera commented on Oct 31, 2019

    @nguerrera

    I don't think there is a good way for the task to magically figure out this location if not passed in from looking at $(NetCoreRoot).

  5. ericstj commented on Oct 31, 2019

    @ericstj
    MemberAuthor

    If that's the case, shouldn't these be required parameters?

  6. sbomer commented on Oct 31, 2019

    @sbomer
    Member

    We could potentially use different properties and make them required instead of using those from ToolTask. If there are other tools that hit this issue, we should probably agree on a common approach.

  7. ericstj commented on Oct 31, 2019

    @ericstj
    MemberAuthor

    I'm less concerned now that I see the shipping product doesn't have this bug and I fixed up our targets: dotnet/corefx#42266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions