Create a Veva project
Set up a new website on Veva 7.26 and .NET 10: add the NuGet feed, create the project, add the packages, change Program.cs, choose the database and run the setup wizard. The steps use the .NET CLI, so they work the same in Visual Studio, Visual Studio Code or a terminal.
1. Add the NuGet feed
Veva is a set of NuGet packages on Advania's GitHub Enterprise feed:
https://nuget.advaniais.ghe.com/Advania-Veflausnir/index.json
Create a personal access token (classic) on advaniais.ghe.com with the read:packages scope, and configure SSO for the Advania-Veflausnir organization on it. Then register the feed. The token is the password:
dotnet nuget add source "https://nuget.advaniais.ghe.com/Advania-Veflausnir/index.json" ` --name "AdvaniaGheSource" ` --username "AdvaniaUser" ` --password "<YOUR_PAT>"
The Veva repository has a script that does the same: Documentation/addNugetSource.ps1. It opens the token page with the scope already chosen. If a restore later fails with an authentication error, the token has probably expired: create a new one, run dotnet nuget remove source AdvaniaGheSource and add the source again.
2. Create the project
Start from the empty ASP.NET Core template. In Visual Studio it is called ASP.NET Core Empty; choose .NET 10.
dotnet new web -n MyVevaWebsite
cd MyVevaWebsite
If you start from the Blazor Web App template instead, delete its App.razor, Routes.razor, Layout folder and sample pages. Veva provides the routing, the layouts and the error handling.
3. Add the packages
Veva.Web.Essentials is the starting point. It brings Veva.Web.Core (the admin, assets, audit logging, the setup wizard and tags) and the essential modules: pages and the page designer, documents, form components, navigation, routing, cookie consent, logging, background tasks with Hangfire, single sign-on and the standard view components.
It does not bring a theme, and a website needs one. Add Veva.Themes.Default, or a theme of your own.
dotnet add package Veva.Web.Essentials --prerelease dotnet add package Veva.Themes.Default --prerelease
Builds from the development line carry a -dev suffix, such as 7.26.1120.1750-dev. Without --prerelease, dotnet add package takes the newest stable build instead. Keep every Veva 7.x package on the same version.
4. Change Program.cs
Replace the contents of Program.cs:
using Veva.Web; var builder = WebApplication.CreateBuilder(args); var app = builder.BuildVeva(); if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); app.UseHsts(); } app.Run();
BuildVeva() loads every Veva module the project references, registers their services and builds the request pipeline: Razor components, authentication, static assets, routing and the setup wizard. Do not add the usual Blazor calls such as AddRazorComponents(), MapRazorComponents<App>(), MapStaticAssets() or UseAntiforgery(). Veva has already made them.
5. Choose the database
Veva runs on SQL Server unless you say otherwise. You can leave the connection string out: the setup wizard writes it to appsettings.json for you. To set it yourself:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=YOUR_SERVER;Initial Catalog=YOUR_DATABASE;User Id=YOUR_USER;Password=YOUR_PASSWORD;TrustServerCertificate=true"
}
}
For PostgreSQL 18 or later, add the Veva.Web.PostgreSql package and name the provider. The connection string alone never chooses it:
{
"Veva": { "Database": { "Provider": "PostgreSql" } },
"ConnectionStrings": {
"DefaultConnection": "Host=YOUR_SERVER;Database=YOUR_DATABASE;Username=YOUR_USER;Password=YOUR_PASSWORD"
}
}
Veva.Web.PostgreSql covers the modules in Veva.Web.Essentials. Another module with a database of its own has a .PostgreSql package of its own. The site's login needs CREATE on the database and its public schema; no superuser and no extension.
6. Run the setup wizard
Run the project with dotnet run, or F5 in Visual Studio. On the first run against an empty database, Veva opens the setup wizard:
- Database connection. Choose LocalDB, if it is installed, or a database server, and verify the connection. Then create a new database or pick an existing one, and choose the login Veva uses. An existing database that Veva has not set up gets Veva's tables, and data already in it could be lost.
- Database setup. The wizard creates the tables. This can take a while.
- User setup. Choose a password for the built-in
SysAdminaccount. You sign in to the backend with it. - Website setup. Name the first website, choose its language and its theme, and add bindings (host names) if you need them. You can change the language later in the website's Advanced Settings.
The wizard recognises work that is already done: a database that already has a SysAdmin user or a website lets you continue past that step. At the end the application restarts if it needs to, and you can sign in to the backend or browse the website.
Next steps
- Add components, services and hooks of your own in a class that implements
IModule(Veva.Core.Domain.Modules). Veva finds it when the application starts. - Working with an AI coding agent? The first build installs Veva's guidance for Claude Code and GitHub Copilot in your user profile, and seeds an
AGENTS.mdin the project. In Development, an agent signs in to the running site with theVeva:DevAuthkey from user-secrets instead of a person's credentials. - Going live: see Deployment.