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

Build target error with absolute build output paths #7180

Open
ir-dev opened this issue Jun 19, 2024 · 0 comments
Open

Build target error with absolute build output paths #7180

ir-dev opened this issue Jun 19, 2024 · 0 comments
Labels

Comments

@ir-dev
Copy link

ir-dev commented Jun 19, 2024

Product

Strawberry Shake

Version

13.9.6

Link to minimal reproduction

https://github.com/ir-dev/bug-repro_strawberry-shake_absolute-build-output-paths

Steps to reproduce

Build the project

What is expected?

Build should be successful with the absolute build output paths being recognised correctly

What is actually happening?

Build fails when using artifacts output layout with defaults as described in https://learn.microsoft.com/en-us/dotnet/core/sdk/artifacts-output. That means a Directory.Build.props file with UseArtifactsOutput property set to true will use actually legitimate absolute paths set as common build project paths which StrawberryShake.Server.targets expects to be relative.

If a relative path is set for ArtifactsPath property which otherwise uses this default $(MSBuildThisFileDirectory)artifacts then it would work again.

Relevant log output

strawberryshake.server\13.9.6\build\StrawberryShake.Server.targets(85,5): 'C:\Users\johndoe\source\repos\bug-repro_strawberry-shake_absolute-build-output-paths\Demo\C:\Users\johndoe\source\repos\bug-repro_strawberry-shake_absolute
-build-output-paths\artifacts\obj\Demo\debug\berry'

Additional context

No response

@ir-dev ir-dev added the 🐛 bug Something isn't working label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant