Build fails when BaseIntermediateOutputPath is absolute path (Stride.Core.Assets.CompilerApp.targets)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release
Version: 4.0.0.1-beta04-1347
Platform(s): Windows
Describe the bug
Build fails when $(IntermediateOutputPath) is absolute path
To Reproduce
Steps to reproduce the behavior:
- Create Directory.Build.props file in parent directory with this:
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>z:\mydir\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
</PropertyGroup>
</Project>
Expected behavior
Build from VS2019 succeeeds
Log and callstacks
4>C:\Users\ja\.nuget\packages\stride.core.assets.compilerapp\4.0.0.1-beta04-1347\buildTransitive\Stride.Core.Assets.CompilerApp.targets(81,5): error MSB3491: Could not write lines to file "C:\mydir\Stride\myapp.Stride.Windows\z:\mydir\obj\myapp.Stride.Windows\Debug\win-x64\stride\assetcompiler-uptodatecheck.inputs.expanded". The given path's format is not supported.
Idea for fix:
In Stride.Core.Assets.CompilerApp.targets, change this:
<StrideCompileAssetUpToDateCheckFileBase>$(ProjectDir)$(IntermediateOutputPath)stride\assetcompiler-uptodatecheck</StrideCompileAssetUpToDateCheckFileBase>
to this:
<StrideCompileAssetUpToDateCheckFileBase>$(IntermediateOutputPath)stride\assetcompiler-uptodatecheck</StrideCompileAssetUpToDateCheckFileBase>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open Stride.Core.Assets.CompilerApp.targets around line 81 and reproduce the failure using the Directory.Build.props example with an absolute BaseIntermediateOutputPath. Check how the asset compiler up-to-date check path is assembled. Done means the project builds successfully from VS2019 without the unsupported-path error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100