Error Exporting App, Stride.Core.Assets complaining?

Quite simple project,
2 Skia Renderers,
Imgui editor
SkiaTexture and a writer
7.0-0359

Generating project files (this may take up to a few minutes)
FontMapCreator
Building projects
dotnet publish -c Release --self-contained false "D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj"
Unable to build D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj. Reason:
  Determining projects to restore...
D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj : warning NU1507: There are 3 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. The following sources are defined: vvvv-public-feed, nuget.org, Stride
  Restored D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj (in 1.07 sec).
D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj : warning NU1507: There are 3 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. The following sources are defined: vvvv-public-feed, nuget.org, Stride
D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.vl.1.cs(136,13): warning CS0618: 'SKTypefaceStyle' is obsolete: 'Use SKFontStyleWeight and SKFontStyleSlant instead.' [D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj]
D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.vl.1.cs(136,52): warning CS0618: 'SKTypefaceStyle' is obsolete: 'Use SKFontStyleWeight and SKFontStyleSlant instead.' [D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj]
CSC : warning WFAC010: Remove high DPI settings from D:\Projects\FontMapCreator_App\src\FontMapCreator\App.manifest and configure via Application.SetHighDpiMode API or 'ApplicationHighDpiMode' project property [D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj]
  Patch for assembly [FontMapCreator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]
  FontMapCreator -> D:\Projects\FontMapCreator_App\src\FontMapCreator\bin\Release\FontMapCreator.dll
  Error restoring NuGet packages!
  ==== Exception details ====
  System.InvalidOperationException: Could not restore NuGet packages
     at Stride.Core.Assets.NuGetAssemblyResolver.<>c__DisplayClass5_0.<SetupNuGet>b__0(Object sender, ResolveEventArgs eventArgs)
  ==== Log ====
  [Verbose] Running restore with 16 concurrent jobs.
  [Verbose] Reading project file StrideNugetResolver.json.
  [Verbose] The restore inputs for 'StrideNugetResolver' have changed. Continuing restore.
  [Error] You are running the 'restore' operation with an 'HTTP' source: http://teamcity.vvvv.org/guestAuth/app/nuget/v1/FeedService.svc/. NuGet requires HTTPS sources. To use an HTTP source, you must explicitly set 'allowInsecureConnections' to true in your NuGet.Config file. Refer to https://aka.ms/nuget-https-everywhere for more information.
  [Information] Restoring packages for StrideNugetResolver.json...
  [Verbose] Acquiring lock for the installation of System.Reflection.Metadata 1.4.1
  [Verbose] Acquired lock for the installation of System.Reflection.Metadata 1.4.1
  [Verbose] PackageSignatureVerificationLog: PackageIdentity: System.Reflection.Metadata.1.4.1 Source: C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ PackageSignatureValidity: True
  [Verbose] Scanning packages for runtime.json files...
  [Verbose] Merging in runtimes defined in package/Microsoft.NETCore.Platforms 7.0.4.
  [Verbose] Merging in runtimes defined in package/Microsoft.NETCore.Targets 1.1.3.
  [Information]   CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  [Information]   CACHE https://api.nuget.org/v3-vulnerabilities/2025.06.05.05.42.46/vulnerability.base.json
  [Information]   CACHE https://api.nuget.org/v3-vulnerabilities/2025.06.05.05.42.46/2025.06.10.11.43.00/vulnerability.update.json
  [Verbose] All packages and projects are compatible with net8.0-windows7.0.
  [Verbose] All packages and projects are compatible with net8.0-windows7.0 (win-x64).
  [Information] Assets file has not changed. Skipping assets file writing. Path: C:\Users\arist\AppData\Local\Temp\StrideNugetResolver-Stride.Core.Assets.CompilerApp-4.2.0.2293-net8.0-windows7.0-win-x64\project.assets.json
  [Verbose] Writing cache file to disk. Path: C:\Users\arist\AppData\Local\Temp\StrideNugetResolver-Stride.Core.Assets.CompilerApp-4.2.0.2293-net8.0-windows7.0-win-x64\project.nuget.cache
  [Verbose] Persisting dg to C:\Users\arist\AppData\Local\Temp\StrideNugetResolver-Stride.Core.Assets.CompilerApp-4.2.0.2293-net8.0-windows7.0-win-x64\StrideNugetResolver.json.nuget.dgspec.json
C:\Users\arist\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2293\buildTransitive\Stride.Core.Assets.CompilerApp.targets(154,5): error MSB3073: The command "dotnet "C:\Users\arist\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2293\buildTransitive\..\lib\net8.0-windows7.0\Stride.Core.Assets.CompilerApp.dll"  --disable-auto-compile --project-configuration "Release" --platform=Windows --project-configuration=Release --compile-property:StrideGraphicsApi=Direct3D11 --output-path="D:\Projects\FontMapCreator_App\src\FontMapCreator\bin\Release\data" --build-path="D:\Projects\FontMapCreator_App\src\FontMapCreator\obj\stride\assetbuild\data" --package-file="D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj" --msbuild-uptodatecheck-filebase="D:\Projects\FontMapCreator_App\src\FontMapCreator\obj\Release\stride\assetcompiler-uptodatecheck"" exited with code 1. [D:\Projects\FontMapCreator_App\src\FontMapCreator\FontMapCreator.csproj]

----
There was a problem exporting your Application.
Please check for solutions by clicking the "Troubleshooting" button.

I’ve remade the Image writing part using just Skia and removing Stride Dependencies, no issues.
The only limitation is the Image format, only accepts RGBA 8 bits.

But it would be interesting to know what i’m doing wrong when using Stride.

Make sure your nuget config only contains one package source. It should look like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

Thank you @bjoern
I didn’t know i have to take care of this kind of things.
Where i can find this file?

when reading export logs, always look for the line starting with “error”. in your example it would be this:

[Error] You are running the 'restore' operation with an 'HTTP' source: http://teamcity.vvvv.org/guestAuth/app/nuget/v1/FeedService.svc/. NuGet requires HTTPS sources. To use an HTTP source, you must explicitly set 'allowInsecureConnections' to true in your NuGet.Config file. Refer to https://aka.ms/nuget-https-everywhere for more information.

so this sounds like you’d only need to fix the url from “http” to “https” in your nuget.config file.

1 Like

C:\Users\yourusername\AppData\Roaming\NuGet

1 Like