-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ResolvePackageDependencies produces invalid ResolvedPath for <ProjectReference .../>
#1435
Comments
The task receives:
The result of this call is then set as the Based on my observed result ( The path in the csproj is relative to the location of the csproj. Which means the implementation should be changed to:
I removed the second |
See dotnet#1435 for error description and analysis of the problem. Questions: - Is it actually the desired outcome that ResolvedPath points to the csproj file? Or should it point to the output directory of that project? - Is ProjectPath always passed in as full path? (otherwise it needs to be enclosed by a `Path.GetFullPath`)
The old implementation combined the relative `<ProjectReference Include="..." />` path with the directory of the `ProjectAssetFile`. Corrected this to combine the relative project reference with the current's project path.
Duplicate of #479 |
Fix #1435 - calculation of ResolvedPath for project references
Merging rel/2.1.0-preview2 into release/2.1
Merging rel/2.1.0-preview2 into release/2.1
Running on latest previews (VS2017.3 Preview 4, .net sdk 2.0.0-preview2-006497) my build fails because the
ResolvePackageDependencies
Task produces invalid results / output. I'm building from within VS.In short, a path included in
@(PackageDefinitions->'%(ResolvedPath)'
is wrong. Here is the actual vs the expected path:The actual path does not exist, that's why a consumer of this path fails.
The complete output for that particular PackageDefinition (which results from a
<ProjectReference Include="..\StaticProxy.Fody\StaticProxy.Fody.csproj" />
) is:Excerpts from the *.csproj of the project (targeting net462) follows, but I would like to mention that some of the projects in the solution actualy do target netstandard - don't know if that makes a difference?
Link to project: https://github.com/BrunoJuchli/StaticProxy.Fody/tree/7d8b924d90759cb3248803514ba631463358494a/
Diagnostic MSBuild Log: https://gist.github.com/BrunoJuchli/c5c8b5e74571cbaa99e8e8e5997acaf3/raw/9bc0f0bd94cd77ccf0cbfb58bf66982dfca961bb/MsBuildLog.txt
The text was updated successfully, but these errors were encountered: