-
Notifications
You must be signed in to change notification settings - Fork 8
Add local dotnet tool manifest for EF and trx-to-vsplaylist and validate EF migrations in CI #1017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "dotnet-ef": { | ||
| "version": "10.0.7", | ||
| "commands": [ | ||
| "dotnet-ef" | ||
| ], | ||
| "rollForward": false | ||
| }, | ||
| "trx-to-vsplaylist": { | ||
| "version": "1.3.0", | ||
| "commands": [ | ||
| "trx-to-vsplaylist" | ||
| ], | ||
| "rollForward": false | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,9 +31,17 @@ jobs: | |||||
| - name: Restore with dotnet | ||||||
| run: dotnet restore /p:AccessToNugetFeed=false | ||||||
|
|
||||||
| - name: Restore local dotnet tools | ||||||
| run: dotnet tool restore | ||||||
|
|
||||||
| - name: Build with dotnet | ||||||
| run: dotnet build --configuration Release --no-restore /p:AccessToNugetFeed=false | ||||||
|
|
||||||
| - name: Check for pending EF Core model changes | ||||||
| run: dotnet ef migrations has-pending-model-changes --project EssentialCSharp.Web --configuration Release --no-build | ||||||
|
||||||
| run: dotnet ef migrations has-pending-model-changes --project EssentialCSharp.Web --configuration Release --no-build | |
| run: dotnet tool run dotnet-ef -- migrations has-pending-model-changes --project EssentialCSharp.Web --configuration Release --no-build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manifest pins
dotnet-efto 10.0.7, but the web project referencesMicrosoft.EntityFrameworkCore.Tools10.0.6 (seeDirectory.Packages.props). EF tooling is sensitive to version mismatches; consider aligning these versions (either bump the package to 10.0.7 or pin the tool to 10.0.6) to avoid CLI/runtime incompatibilities.