impr: Show proper error message if nethost header can't be found

This commit is contained in:
WerWolv 2025-12-07 13:35:08 +01:00
parent 0488c996e9
commit 347fc3ed9f
1 changed files with 7 additions and 3 deletions

View File

@ -10,9 +10,13 @@
#include <array>
#include <nethost.h>
#include <coreclr_delegates.h>
#include <hostfxr.h>
#if __has_include(<nethost.h>)
#include <nethost.h>
#include <coreclr_delegates.h>
#include <hostfxr.h>
#else
#error "nethost.h not found! This can happen when the .NET SDK was updated after the cmake project was created. Please regenerate the build files."
#endif
#include <imgui.h>
#include <hex/api/plugin_manager.hpp>