mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 04:45:59 +03:00
[PR #147] [MERGED] fix: skip BuildInfo initialization when running EF tools at design-time #140
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-admin/pull/147
Author: @franklupo
Created: 2/16/2026
Status: ✅ Merged
Merged: 2/16/2026
Merged by: @franklupo
Base:
main← Head:fix/ef-design-time-buildinfo📝 Commits (1)
df2222cfix: skip BuildInfo initialization when running EF tools at design-time📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
src/Corsinvest.ProxmoxVE.Admin.Core/BuildInfo.cs(+2 -0)📄 Description
Summary
BuildInfostatic constructor crashes at EF design-time because the entry assembly isef.dll(noEditionAttribute)if (ApplicationHelper.IsRunningInEfTool) { return; }to skip initialization when running EF CLI toolsTest plan
dotnet ef migrations add ...— should succeed withoutNullReferenceExceptionBuildInfoproperties still populated correctly🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.