Release Type: Official Release
Version: 4.1.0.1728 and beyond
Platform(s): Windows/Linux/Mac(?)
Describe the bug
Running any projects with <StrideGraphicsApi>Vulkan</StrideGraphicsApi> crashes the app with the error
System.AggregateException: 'One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process 'win-x64\glslangValidator.exe' with working directory 'C:\[PATH]\FirstPersonShooter2\Bin\Windows\Debug'. The system cannot find the file specified.))'
To Reproduce
Steps to reproduce the behavior:
- Start any template
- Add
<StrideGraphicsApi>Vulkan</StrideGraphicsApi> to the .Windows.csproj file
- Build and run
- Encounter exception
Expected behavior
Include glslangValidator.exe in the build output so the app doesn't crash.
Additional context
Bug introduced by #1428
Stride.Shaders.Compiler package changed glslangValidator.exe/glslangValidator.bin to be treated as contentFiles in nuget package (as seen in C:\Users\[USERNAME]\.nuget\packages\stride.shaders.compiler\4.1.0.1948\stride.shaders.compiler.nuspec)
The game project indirectly references this library via Stride.Engine however that package declares all contentfiles as private assets so do not get added to the build output, ie.
<PackageReference Include="Stride.Engine" Version="4.1.0.1948" PrivateAssets="contentfiles;analyzers" />
Workaround
Explicitly reference Stride.Shaders.Compiler in the .Game.csproj to include contentFiles, ie.
<PackageReference Include="Stride.Shaders.Compiler" Version="4.1.0.1948" />
Release Type: Official Release
Version: 4.1.0.1728 and beyond
Platform(s): Windows/Linux/Mac(?)
Describe the bug
Running any projects with
<StrideGraphicsApi>Vulkan</StrideGraphicsApi>crashes the app with the errorSystem.AggregateException: 'One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process 'win-x64\glslangValidator.exe' with working directory 'C:\[PATH]\FirstPersonShooter2\Bin\Windows\Debug'. The system cannot find the file specified.))'To Reproduce
Steps to reproduce the behavior:
<StrideGraphicsApi>Vulkan</StrideGraphicsApi>to the .Windows.csproj fileExpected behavior
Include
glslangValidator.exein the build output so the app doesn't crash.Additional context
Bug introduced by #1428
Stride.Shaders.Compiler package changed
glslangValidator.exe/glslangValidator.binto be treated as contentFiles in nuget package (as seen inC:\Users\[USERNAME]\.nuget\packages\stride.shaders.compiler\4.1.0.1948\stride.shaders.compiler.nuspec)The game project indirectly references this library via
Stride.Enginehowever that package declares all contentfiles as private assets so do not get added to the build output, ie.<PackageReference Include="Stride.Engine" Version="4.1.0.1948" PrivateAssets="contentfiles;analyzers" />Workaround
Explicitly reference
Stride.Shaders.Compilerin the .Game.csproj to include contentFiles, ie.<PackageReference Include="Stride.Shaders.Compiler" Version="4.1.0.1948" />