dotnet / NuGet.BuildTasks

The build tasks used to pick up package content from project.lock.json.
MIT License
45 stars 61 forks source link

GetProjectsReferencingProjectJson has wrong "ProjectJson" metadata for projectname.project.json #79

Open nkolev92 opened 4 years ago

nkolev92 commented 4 years ago

The code today:

<ItemGroup Condition="'$(ResolveNuGetPackages)' == 'true'">
  <_ProjectReferencingProjectJsonFile Include="$(MSBuildProjectFullPath)">
    <ProjectReferences>@(ProjectReference)</ProjectReferences>
    <ProjectJson>$(MSBuildProjectDirectory)\project.json</ProjectJson>
  </_ProjectReferencingProjectJsonFile>
</ItemGroup>

The ProjectJson is hard-coded to project.json, but it might have been [projectname].project.json in reality.

(Mentioned internally in bug 149651 and also by @onovotny.)

Moved from: https://github.com/NuGet/Home/issues/1863

cc @jasonmalinowski @clairernovotny