Description
After upgrading GodotSharp.SourceGenerators from 2.7.0-260201-1801.Release to 2.7.0-260208-1601.Release, my project no longer builds on Windows.
Repro repo:
https://github.com/pcloves/autoload-issue
The repo already contains the exact changes needed to reproduce the issue. The relevant change is the package upgrade in autoload-issue.csproj:
<PackageReference Include="GodotSharp.SourceGenerators" Version="2.7.0-260208-1601.Release" />
The previous version 2.7.0-260201-1801.Release builds successfully in the same project.
Steps to reproduce
- Clone the repo.
- Run
dotnet build.
Actual result
D:\Develop\MyProjects\autoload-issue\Autoload.cs(5,2): error Autoload: 文件名、目录名或卷标语法不正确。 : 'D:\Develop\MyProjects\autoload-issue\res:\addons\phantom_camera\scripts\managers\phantom_camera_manager.gd'. [D:\Develop\MyProjects\autoload-issue\autoload-issue.csproj]
It looks like the generated path is invalid on Windows:
D:\Develop\MyProjects\autoload-issue\res:\addons\phantom_camera\scripts\managers\phantom_camera_manager.gd
This project uses the phantom_camera addon, and its PhantomCameraManager autoload seems to trigger the issue.
Description
After upgrading
GodotSharp.SourceGeneratorsfrom2.7.0-260201-1801.Releaseto2.7.0-260208-1601.Release, my project no longer builds on Windows.Repro repo:
https://github.com/pcloves/autoload-issue
The repo already contains the exact changes needed to reproduce the issue. The relevant change is the package upgrade in
autoload-issue.csproj:The previous version
2.7.0-260201-1801.Releasebuilds successfully in the same project.Steps to reproduce
dotnet build.Actual result
It looks like the generated path is invalid on Windows:
This project uses the
phantom_cameraaddon, and itsPhantomCameraManagerautoload seems to trigger the issue.