MSBuild properties

Every Bevel MSBuild property you can set in your project file, with defaults.

On this page
MySite.csprojxml
<PropertyGroup>
  <BevelExportOnPublish>true</BevelExportOnPublish>
</PropertyGroup>

You set these in your .csproj, in a Directory.Build.props file, or on the command line with -p:Name=value. They control the build-time data step and the publish export. For settings you write in C#, see Options. For build problems, see Diagnostics.

Property Type Default Meaning Since
BevelPrebuildEnabled bool true Turn the build-time data step off. 0.1
BevelPrebuildAlwaysRun bool false Run the data step on every build. Use it when a loader reads a database or an API. 0.1
BevelDataInterfaceName string ISiteData Name of the generated data interface. 0.1
BevelDataClassName string SiteData Name of the generated data class. 0.1
BevelEnvironment string Development for Debug, else Production Environment used by build-time loaders, after ASPNETCORE_ENVIRONMENT and DOTNET_ENVIRONMENT. 0.1
BevelExportOnPublish bool false Export during dotnet publish. 0.1
BevelOutputPath string $(PublishDir)wwwroot Where the publish export writes. Resolved at publish time; relative paths are project-relative. 0.1
BevelImplicitUsings bool true Add using Bevel; when ImplicitUsings is on. 0.1