Not able to build GammaLauncher in recent previews

Hey bonsoir,

Still trying to use Nuke to streamline GammaLauncher development and easily build multiple versions of the app (don’t want to do that manually 😛)

No matter if I build from vvvvc or from the editor, I’m getting the following error :

21:46:55 [ERR] Unhandled exception. System.InvalidOperationException: Unable to build D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj. Reason:
21:46:55 [ERR]   Determining projects to restore...
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher.Proxies.vl\GammaLauncher.Proxies.vl.csproj : warning NU1507: There are 2 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 [D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj]
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : warning NU1507: There are 2 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
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : error NU1102: Unable to find package VL.UI.Core with version (>= 2024.6.4)
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : error NU1102:   - Found 71 version(s) in vvvv-public-feed [ Nearest version: 2022.5.0-0280-g5ca8d31026 ]
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : error NU1102:   - Found 12 version(s) in nuget.org [ Nearest version: 2021.4.12 ]
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
21:46:55 [ERR]   Restored D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher.Proxies.vl\GammaLauncher.Proxies.vl.csproj (in 797 ms).
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : warning NU1701: Package 'AudioSwitcher.AudioApi 4.0.0-alpha5' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0-windows7.0'. This package may not be fully compatible with your project.
21:46:55 [ERR] D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj : warning NU1701: Package 'AudioSwitcher.AudioApi.CoreAudio 4.0.0-alpha5' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0-windows7.0'. This package may not be fully compatible with your project.
21:46:55 [ERR]   Failed to restore D:\Documents\dev\apps\GammaLauncher\output\win-x64\src\GammaLauncher\GammaLauncher.csproj (in 1.3 sec).
21:46:55 [ERR]   1 of 3 projects are up-to-date for restore.
21:46:55 [ERR]
21:46:55 [ERR]    at VL.Lang.Export.ProjectBuilder.BuildAsync(String projectFileOrSolution, IProgress`1 progress, CancellationToken token)
21:46:55 [ERR]    at VL.Lang.Export.ProjectBuilder.BuildAsync(IProgress`1 progress, CancellationToken token)
21:46:55 [ERR]    at VL.Lang.Export.SolutionBuilder.BuildAsync(IProgress`1 progress, CancellationToken token)
21:46:55 [ERR]    at Program.Main(String[] args)
21:46:55 [ERR]    at Program.<Main>(String[] args)

To reproduce :

  • Make sure you have 7.0-0361 installed
  • Checkout GammaLauncher at 52bbc0f72d075d619c701ab95438925285f46712
  • cd in /nuke
  • nuke compile --version 10.0.0

Same error occurs if you try to build from the editor after that. If you do so, you’ll most likely have the output path set to /output/win-arm (since nuke will try to do that anyway and thus overwrite the .props file), but it does not really matter for this.

Am I doing something wrong?

Thanks!

It is not related to vvvv directly, it’s about .net and nuget update.
I had the same issue yesterday.
There are two solutions, both require to modify your nuget.config in AppData:

  1. Remove all nuget sources and leave there only default one (nuget.org);
  2. or setup the mapping: Package Source Mapping | Microsoft Learn

Hey, thanks for the feedback!

Indeed, I’m not assuming that’s a direct vvvv issue since the error clearly emanates from a nuget setup, but I assumed something was off in the way vvvv handles that, hence the report :-)

I’ll try the workaround you suggested and report in this post, thanks!

Not sure why but your document references VL.UI.Core a package which is no longer available / only used internally. Simply remove that reference and all good.

It’s working indeed, thanks @Elias!

No idea how/why that was referenced.. but why wasn’t it showing up in red in the dependencies menu? Afaict this could have only been caught up by looking at the XML.

It’s a bit tricky, internally the “package” exists - but we don’t publish it as it contains internal stuff. If you build extensions that thing is for example in play indirectly via “VL.HDE”, another package we don’t publish as it depends on things we want/need to keep internal.

I see, OK. Thanks for clarifying!