Tried to export TexCovGUi with 2022.5.0-103
. But get the following error:
D:\tmp\tcg\src\VL.ImGui.vl\VL.ImGui.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\VL.Lang.vl\VL.Lang.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\VL.WinFormsUtils.vl\VL.WinFormsUtils.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\VL.CoreLib.vl\VL.CoreLib.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\VL.Skia.vl\VL.Skia.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\VL.CoreLib.Windows.vl\VL.CoreLib.Windows.vl.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj : warning NU1507: There are 4 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source.
C:\Program Files\dotnet\sdk\6.0.300\NuGet.targets(130,5): error : Ambiguous project name 'TexConvGui'. [D:\tmp\tcg\src\TexConvGui\TexConvGui.csproj]
at VL.Lang.Roslyn.Export.ProjectBuilder.BuildAsync(String projectFileOrSolution, Dictionary`2 properties, IProgress`1 progress, CancellationToken token)
at VL.Lang.Roslyn.Export.ProjectBuilder.Build(Dictionary`2 properties, IProgress`1 progress, CancellationToken token)
at VL.Lang.Roslyn.Export.SolutionBuilder.Build(IProgress`1 progress, CancellationToken token)
at VL.Lang.Roslyn.Export.SolutionBuilder.Export(IProgress`1 progress, CancellationToken token, AssetManagement assetManagement)
at VL.Lang.Roslyn.Export.RoslynAppExporter.Export(ExportOptions options, IProgress`1 progress, CancellationToken token, AssetManagement assetManagement)
at VL.HDE.Forms.AppExporterForm.ExportButton_Click(Object sender, EventArgs e)
I have a helper project / dll that is also called TexconvGui that was causing the problem. Even though the VL.Imgui.vl document references the compiled dll, the solution created by the exporter is referencing the project.
<PlatformDependency Id="TVMtxbJD83mQZ2iXTsWwT4" Location="./lib/net6.0-windows/TexConvGui.dll" />
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.0.0
MinimumVisualStudioVersion = 17.2.0.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TexConvGui", "TexConvGui\TexConvGui.csproj", "1B28547C-C900-EBB0-FA81-40889DFF8580"
EndProject
[...]
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TexConvGui", "..\..\_dev\texconvgui\src\TexConvGui.csproj", "84F5657B-D537-9FA1-2BAC-6803F03E0890"
EndProject
Global
After renaming the helper project (which imho shouldn’t be necessary) the exporter runs successfully but the exported executetable still crashes at start up.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'VL.Skia.Egl.NativeEgl' threw an exception.
---> System.InvalidOperationException: Could not load native library libEGL using CPU architecture x64.
at Stride.Core.NativeLibraryHelper.PreloadLibrary(String libraryName, Type owner) in C:\BuildAgent\work\c2853678a9eec380\sources\core\Stride.Core\Native\NativeLibraryHelper.cs:line 137
at VL.Skia.Egl.NativeEgl..cctor()
--- End of inner exception stack trace ---
at VL.Skia.Egl.EglDisplay.<GetPlatformDefault>g__TryCreate|2_0(Int32[] displayAttributes)
at VL.Skia.Egl.EglDisplay.GetPlatformDefault()
at VL.Skia.RenderContext.ForCurrentThread()
at VL.Skia.SkiaGLControl.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at VL.Skia.SkiaGLControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)