After updating Visual Studio to >= 17.3 the export stops working in 2021.4
It fails with:
System.MissingMethodException: Method not found: 'System.ReadOnlySpan`1<Char> Microsoft.IO.Path.GetFileName(System.ReadOnlySpan`1<Char>)'.
As long as we don’t provide a proper fix for it, the workaround is as follows:
- Copy the attached config file to
%UserProfile%\.nuget\packages\stride.core.assets.compilerapp\4.0.1.1428\lib\net472
- overwriting the existing one (it adds an assembly redirect) - Export the patch (will fail with that
MissingMethodException
) - Open exported sln with VS, set build configuration to Release and build (alternatively, open “Developer Command Prompt for VS 2022”, navigate to folder which contains .sln file, and type
dotnet build -c Release
)
It should now build the application successfully.
Stride.Core.Assets.CompilerApp.exe.config.zip (782 Bytes)