Rebuild All currently doesn't work properly
Tags: programming, discuss, csharp, dotnet
Published: 2023-11-25 06:50:32

For the modern .NET projects, you’ll notice that if you alter a file that is to be included in the resources and rebuild the entire solution using the Rebuild All button, you’ll notice that you can’t run the application properly, because you’ll see an interesting error message printed to the console.

```
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Program Files\dotnet\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Nitrocid.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Nitrocid.runtimeconfig.json' file and specify the appropriate framework.
```

After that, you’ll notice another message in the Output pane:

```
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
```

According to the build output, you’ll see something like this when trying to “Rebuild All,” which appears to work properly:

```
Rebuild started at 5:50 PM...
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.LanguagePacks\Nitrocid.LanguagePacks.csproj (in 18 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.ScreensaverPacks\Nitrocid.ScreensaverPacks.csproj (in 24 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.SftpShell\Nitrocid.Extras.SftpShell.csproj (in 5 ms).
Restored E:\Source\Public\NitrocidKS\private\Nitrocid.Tests\Nitrocid.Tests.csproj (in 29 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.InternetRadioInfo\Nitrocid.Extras.InternetRadioInfo.csproj (in 33 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.NameGen\Nitrocid.Extras.NameGen.csproj (in 4 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.LanguageStudio\Nitrocid.Extras.LanguageStudio.csproj (in 3 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Tips\Nitrocid.Extras.Tips.csproj (in 39 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.JsonShell\Nitrocid.Extras.JsonShell.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.ThemePacks\Nitrocid.ThemePacks.csproj (in 44 ms).
Restored E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleCheck\Nitrocid.LocaleCheck.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleClean\Nitrocid.LocaleClean.csproj (in 3 ms).
Restored E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleTools\Nitrocid.LocaleTools.csproj (in 7 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.ToDoList\Nitrocid.Extras.ToDoList.csproj (in 49 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.LocaleGen\Nitrocid.LocaleGen.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.LocaleGen.Core\Nitrocid.LocaleGen.Core.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.MailShell\Nitrocid.Extras.MailShell.csproj (in 22 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.ArchiveShell\Nitrocid.Extras.ArchiveShell.csproj (in 58 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Forecast\Nitrocid.Extras.Forecast.csproj (in 4 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.UnitConv\Nitrocid.Extras.UnitConv.csproj (in 68 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.SplashPacks\Nitrocid.SplashPacks.csproj (in 77 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Dictionary\Nitrocid.Extras.Dictionary.csproj (in 3 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Analyzers\Nitrocid.Analyzers\Nitrocid.Analyzers.csproj (in 25 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.ColorConvert\Nitrocid.Extras.ColorConvert.csproj (in 1 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Contacts\Nitrocid.Extras.Contacts.csproj (in 9 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Calendar\Nitrocid.Extras.Calendar.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Analyzers\Nitrocid.Analyzers.CodeFixes\Nitrocid.Analyzers.CodeFixes.csproj (in 26 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Analyzers\Nitrocid.Analyzers.Package\Nitrocid.Analyzers.Package.csproj (in 32 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.FtpShell\Nitrocid.Extras.FtpShell.csproj (in 1 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Calculators\Nitrocid.Extras.Calculators.csproj (in 6 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.HttpShell\Nitrocid.Extras.HttpShell.csproj (in 3 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.ChatGpt\Nitrocid.Extras.ChatGpt.csproj (in 37 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.GitShell\Nitrocid.Extras.GitShell.csproj (in 5 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Caffeine\Nitrocid.Extras.Caffeine.csproj (in 6 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.BassBoom\Nitrocid.Extras.BassBoom.csproj (in 91 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.TimeInfo\Nitrocid.Extras.TimeInfo.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Analyzers\Nitrocid.StandaloneAnalyzer\Nitrocid.StandaloneAnalyzer.csproj (in 50 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Analyzers\Nitrocid.Analyzers.Vsix\Nitrocid.Analyzers.Vsix.csproj (in 45 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.ThemeStudio\Nitrocid.Extras.ThemeStudio.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.RetroKS\Nitrocid.Extras.RetroKS.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.RssShell\Nitrocid.Extras.RssShell.csproj (in 5 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.SqlShell\Nitrocid.Extras.SqlShell.csproj (in 3 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Notes\Nitrocid.Extras.Notes.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Amusements\Nitrocid.Extras.Amusements.csproj (in 108 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid\Nitrocid.csproj (in 66 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Legacy.InxiNet\Nitrocid.Legacy.InxiNet.csproj (in 10 ms).
Restored E:\Source\Public\NitrocidKS\public\Nitrocid.Addons\Nitrocid.Extras.Timers\Nitrocid.Extras.Timers.csproj (in 2 ms).
Restored E:\Source\Public\NitrocidKS\private\Nitrocid.Analyzers.Test\Nitrocid.Analyzers.Test.csproj (in 314 ms).
------ Rebuild All started: Project: Nitrocid.LocaleTools, Configuration: Debug Any CPU ------
Nitrocid.LocaleTools -> E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleTools\bin\Debug\netstandard2.0\Nitrocid.LocaleTools.dll
------ Rebuild All started: Project: Nitrocid.LocaleCheck, Configuration: Debug Any CPU ------
Nitrocid.LocaleCheck -> E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleCheck\bin\Debug\net8.0\Nitrocid.LocaleCheck.dll
------ Rebuild All started: Project: Nitrocid.LocaleClean, Configuration: Debug Any CPU ------
Nitrocid.LocaleClean -> E:\Source\Public\NitrocidKS\private\Nitrocid.LocaleClean\bin\Debug\net8.0\Nitrocid.LocaleClean.dll
------ Rebuild All started: Project: Nitrocid.StandaloneAnalyzer, Configuration: Debug Any CPU ------
Nitrocid.StandaloneAnalyzer -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\net8.0\Nitrocid.StandaloneAnalyzer.dll
------ Rebuild All started: Project: Nitrocid.Analyzers, Configuration: Debug Any CPU ------
Nitrocid.Analyzers -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\netstandard2.0\Nitrocid.Analyzers.dll
------ Rebuild All started: Project: Nitrocid.Analyzers.CodeFixes, Configuration: Debug Any CPU ------
Nitrocid.Analyzers.CodeFixes -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\netstandard2.0\Nitrocid.Analyzers.CodeFixes.dll
------ Rebuild All started: Project: Nitrocid.Analyzers.Vsix, Configuration: Debug Any CPU ------
Nitrocid.Analyzers.Vsix -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\net8.0\Nitrocid.Analyzers.Vsix.vsix
------ Rebuild All started: Project: Nitrocid.Analyzers.Test, Configuration: Debug Any CPU ------
Nitrocid.Analyzers.Test -> E:\Source\Public\NitrocidKS\private\Nitrocid.Analyzers.Test\bin\Debug\net8.0\Nitrocid.Analyzers.Test.dll
------ Rebuild All started: Project: Nitrocid.Analyzers.Package, Configuration: Debug Any CPU ------
Nitrocid.Analyzers.Package -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\netstandard2.0\Nitrocid.Analyzers.Package.dll
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\Nitrocid.Analyzers.0.1.0-beta2.nupkg'.
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSAnalyzer\Nitrocid.Analyzers.0.1.0-beta2.symbols.nupkg'.
------ Rebuild All started: Project: Nitrocid.LocaleGen.Core, Configuration: Debug Any CPU ------
Nitrocid.LocaleGen.Core -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Nitrocid.LocaleGen.Core.dll
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\Nitrocid.LocaleGen.Core.0.1.0-beta2.nupkg'.
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\Nitrocid.LocaleGen.Core.0.1.0-beta2.symbols.nupkg'.
------ Rebuild All started: Project: Nitrocid, Configuration: Debug Any CPU ------
Nitrocid -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Nitrocid.dll
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\KS.0.1.0-beta2.nupkg'.
Successfully created package 'E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\KS.0.1.0-beta2.symbols.nupkg'.
------ Rebuild All started: Project: Nitrocid.Extras.JsonShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.JsonShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.JsonShell\Nitrocid.Extras.JsonShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.SqlShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.SqlShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.SqlShell\Nitrocid.Extras.SqlShell.dll
------ Rebuild All started: Project: Nitrocid.Legacy.InxiNet, Configuration: Debug Any CPU ------
Nitrocid.Legacy.InxiNet -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Legacy.InxiNet\Nitrocid.Legacy.InxiNet.dll
------ Rebuild All started: Project: Nitrocid.Extras.ChatGpt, Configuration: Debug Any CPU ------
Nitrocid.Extras.ChatGpt -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.ChatGpt\Nitrocid.Extras.ChatGpt.dll
------ Rebuild All started: Project: Nitrocid.Extras.RssShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.RssShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.RssShell\Nitrocid.Extras.RssShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.SftpShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.SftpShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.SftpShell\Nitrocid.Extras.SftpShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.MailShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.MailShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.MailShell\Nitrocid.Extras.MailShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.HttpShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.HttpShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.HttpShell\Nitrocid.Extras.HttpShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.FtpShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.FtpShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.FtpShell\Nitrocid.Extras.FtpShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.Caffeine, Configuration: Debug Any CPU ------
Nitrocid.Extras.Caffeine -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Caffeine\Nitrocid.Extras.Caffeine.dll
------ Rebuild All started: Project: Nitrocid.Extras.RetroKS, Configuration: Debug Any CPU ------
Nitrocid.Extras.RetroKS -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.RetroKS\Nitrocid.Extras.RetroKS.dll
------ Rebuild All started: Project: Nitrocid.Extras.InternetRadioInfo, Configuration: Debug Any CPU ------
Nitrocid.Extras.InternetRadioInfo -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.InternetRadioInfo\Nitrocid.Extras.InternetRadioInfo.dll
------ Rebuild All started: Project: Nitrocid.Extras.TimeInfo, Configuration: Debug Any CPU ------
Nitrocid.Extras.TimeInfo -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.TimeInfo\Nitrocid.Extras.TimeInfo.dll
------ Rebuild All started: Project: Nitrocid.Extras.ColorConvert, Configuration: Debug Any CPU ------
Nitrocid.Extras.ColorConvert -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.ColorConvert\Nitrocid.Extras.ColorConvert.dll
------ Rebuild All started: Project: Nitrocid.Extras.LanguageStudio, Configuration: Debug Any CPU ------
Nitrocid.Extras.LanguageStudio -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.LanguageStudio\Nitrocid.Extras.LanguageStudio.dll
------ Rebuild All started: Project: Nitrocid.Extras.ThemeStudio, Configuration: Debug Any CPU ------
Nitrocid.Extras.ThemeStudio -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.ThemeStudio\Nitrocid.Extras.ThemeStudio.dll
------ Rebuild All started: Project: Nitrocid.SplashPacks, Configuration: Debug Any CPU ------
Nitrocid.SplashPacks -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\SplashPacks\Nitrocid.SplashPacks.dll
------ Rebuild All started: Project: Nitrocid.ScreensaverPacks, Configuration: Debug Any CPU ------
Nitrocid.ScreensaverPacks -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\ScreensaverPacks\Nitrocid.ScreensaverPacks.dll
------ Rebuild All started: Project: Nitrocid.Extras.Calculators, Configuration: Debug Any CPU ------
Nitrocid.Extras.Calculators -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Calculators\Nitrocid.Extras.Calculators.dll
------ Rebuild All started: Project: Nitrocid.Extras.BassBoom, Configuration: Debug Any CPU ------
Nitrocid.Extras.BassBoom -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.BassBoom\Nitrocid.Extras.BassBoom.dll
Nitrocid.Extras.BassBoom -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.BassBoom.Windows\Nitrocid.Extras.BassBoom.dll
------ Rebuild All started: Project: Nitrocid.Extras.UnitConv, Configuration: Debug Any CPU ------
Nitrocid.Extras.UnitConv -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.UnitConv\Nitrocid.Extras.UnitConv.dll
------ Rebuild All started: Project: Nitrocid.Extras.NameGen, Configuration: Debug Any CPU ------
Nitrocid.Extras.NameGen -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.NameGen\Nitrocid.Extras.NameGen.dll
------ Rebuild All started: Project: Nitrocid.Extras.Dictionary, Configuration: Debug Any CPU ------
Nitrocid.Extras.Dictionary -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Dictionary\Nitrocid.Extras.Dictionary.dll
------ Rebuild All started: Project: Nitrocid.Extras.Timers, Configuration: Debug Any CPU ------
Nitrocid.Extras.Timers -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Timers\Nitrocid.Extras.Timers.dll
------ Rebuild All started: Project: Nitrocid.Extras.ToDoList, Configuration: Debug Any CPU ------
Nitrocid.Extras.ToDoList -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.ToDoList\Nitrocid.Extras.ToDoList.dll
------ Rebuild All started: Project: Nitrocid.Extras.Forecast, Configuration: Debug Any CPU ------
Nitrocid.Extras.Forecast -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Forecast\Nitrocid.Extras.Forecast.dll
------ Rebuild All started: Project: Nitrocid.Extras.Contacts, Configuration: Debug Any CPU ------
Nitrocid.Extras.Contacts -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Contacts\Nitrocid.Extras.Contacts.dll
------ Rebuild All started: Project: Nitrocid.Extras.Calendar, Configuration: Debug Any CPU ------
Nitrocid.Extras.Calendar -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Calendar\Nitrocid.Extras.Calendar.dll
------ Rebuild All started: Project: Nitrocid.Extras.ArchiveShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.ArchiveShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.ArchiveShell\Nitrocid.Extras.ArchiveShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.Amusements, Configuration: Debug Any CPU ------
Nitrocid.Extras.Amusements -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Amusements\Nitrocid.Extras.Amusements.dll
------ Rebuild All started: Project: Nitrocid.Extras.GitShell, Configuration: Debug Any CPU ------
Nitrocid.Extras.GitShell -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.GitShell\Nitrocid.Extras.GitShell.dll
------ Rebuild All started: Project: Nitrocid.Extras.Tips, Configuration: Debug Any CPU ------
Nitrocid.Extras.Tips -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Tips\Nitrocid.Extras.Tips.dll
------ Rebuild All started: Project: Nitrocid.Extras.Notes, Configuration: Debug Any CPU ------
Nitrocid.Extras.Notes -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\Extras.Notes\Nitrocid.Extras.Notes.dll
------ Rebuild All started: Project: Nitrocid.LanguagePacks, Configuration: Debug Any CPU ------
Nitrocid.LanguagePacks -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\LanguagePacks\Nitrocid.LanguagePacks.dll
------ Rebuild All started: Project: Nitrocid.ThemePacks, Configuration: Debug Any CPU ------
Nitrocid.ThemePacks -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Addons\ThemePacks\Nitrocid.ThemePacks.dll
------ Rebuild All started: Project: Nitrocid.Tests, Configuration: Debug Any CPU ------
Nitrocid.Tests -> E:\Source\Public\NitrocidKS\private\Nitrocid.Tests\KSTest\net8.0\Nitrocid.Tests.dll
------ Rebuild All started: Project: Nitrocid.LocaleGen, Configuration: Debug Any CPU ------
Nitrocid.LocaleGen -> E:\Source\Public\NitrocidKS\public\Nitrocid\KSBuild\net8.0\Nitrocid.LocaleGen.dll
========== Rebuild All: 48 succeeded, 0 failed, 0 skipped ==========
========== Rebuild completed at 5:50 PM and took 31.047 seconds ==========
```

To work around this problem, you’ll have to right-click on the solution and click on the Clean Solution button. Afterward, click on the Build Solution button to re-build the solution.

When you click on the green Run button, you should no longer get this error message.

This bug is tracked with [this ticket](https://developercommunity.visualstudio.com/t/Rebuild-for-NET-80-doesnt-build-proje/10524624).

Enjoy!