Sitelet https://github.com/fsprojects/Paket/issues/1377
Skip to content

Variables in ProjectReference include attribute should be parsed #1377

Description

@ErwinSteffens

Paket should parse macro's/variables in the ProjectReference include attribute used. We have the following include path which is not accepted by Paket:

<ProjectReference Include="$(SolutionDir)Subfolder\MyProject\MyProject.csproj">
    <Project>{b5ff0cfe-5699-4b6e-922a-e1f5ea5f948d}</Project>
    <Name>MyProject</Name>
</ProjectReference>

Paket gives the following error when parsing the csproj file:

Unable to parse C:\MySolution\Project1\$(SolutionDir)Subfolder\MyProject\MyProject.csproj:
      Could not find a part of the path 'C:\MySolution\Project1\$(SolutionDir)Subfolder\MyProject\MyProject.csproj'.

For us it is good enough to just resolve the SolutionDir only. When accepted we can try to fix it ourself. Is there already a method which resolves macro's/variables available within the Paket source?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions