The prebuild step failed

The prebuild step crashed before it could check your data.

  • Error
  • BEVEL001

What it means

Bevel runs a prebuild step during dotnet build. It crashed with an error that has no code of its own, so Bevel reports it as BEVEL001 and shows the original message.

Example message

text
BevelPrebuild: error BEVEL001: The type or namespace name 'Posts' does not exist in the namespace 'MySite.Data' (are you missing an assembly reference?)

How to fix

  1. Read the message after the code. It is the real error.
  2. Check that Data/**/*.cs compiles on its own. The prebuild compiles only those files and your package references.
  3. Run dotnet build -v n for the full log if the message is not enough.

See Build environment for what the prebuild can see.