From 0afeaa7f0eddf513df977b187019f71fea5c0884 Mon Sep 17 00:00:00 2001 From: kanym Date: Wed, 5 Aug 2026 10:29:51 +0200 Subject: [PATCH] build: make a fresh clone build with nothing but the .NET SDK Three things stood between a clean machine and a working build. net48 reference assemblies now come from the Microsoft.NETFramework.ReferenceAssemblies package, so the plain SDK is enough and no Visual Studio install is needed to supply the targeting pack. Build-time only; nothing reaches the shipped DLL. Jotunn publicizes the game assemblies and then references them, but it reads the flag that enables it out of DoPrebuild.props, which its own Paths.props imports through $(SolutionDir) - undefined on a `dotnet build` of this project, the same trap that already caught the packaging target. The flag never arrived, the publicizer never ran, and ten references failed to resolve on every build. It now runs exactly when its output is missing: once on a fresh machine, never again, and -p:ExecutePrebuild=true still forces it after a game update. Jotunn 2.29.2 also references UnityEngine.ProfilerModule, which this build of Valheim does not ship and nothing here uses. Dropped. Build is clean: 0 errors, and the only warnings left are the pre-existing unused locals and fields. --- JotunnModStub/RacesOfValheim.csproj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/JotunnModStub/RacesOfValheim.csproj b/JotunnModStub/RacesOfValheim.csproj index d2f61d1..2487ffe 100644 --- a/JotunnModStub/RacesOfValheim.csproj +++ b/JotunnModStub/RacesOfValheim.csproj @@ -34,6 +34,9 @@ ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_valheim.dll + + @@ -52,6 +55,10 @@ + + @@ -63,6 +70,14 @@ C:\Program Files (x86)\Steam\steamapps\common\Valheim $(VALHEIM_INSTALL)\BepInEx $(VALHEIM_INSTALL)/valheim_Data/Managed + + true $(BEPINEX_PATH)\plugins