You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- backport of #36449 and #36756
Dougbu/check.solution.filters (#36449)
* Check solution filters
- confirm all mentioned projects are in AspNetCore.sln
- clean up CodeCheck.ps1
- avoid aliases
- rework long lines
- avoid deprecated `dotnet run -p`
- improve output a bit
- correct whitespace
- there can be only one
- we have just one solution file
- solution file should mention projects _once_
* Add missing projects to AspNetCore.sln
- Middleware.slnf contained projects that no longer exist eg. NodeServices
- VS also sorted the file and VS 2019 added ARM64 configurations
- a few other solution filters still referenced removed and moved projects
- correct capitalization in some solution filters
Note: Unable to load some WiX projects in VS 2019 or _any_ in VS 2022 (WiX extension unavailable for 2022)
* Remove trailing comma in a solution filter
Put concatenated `string`s in parentheses (#36756)
- follow-up to 779db7f
- errors occur but point to the `+` sign instead of displaying real problem
"MSBuild SDK version '$($dep.Name)' in global.json does not match the value in Version.Details.xml. Expected '$expectedVersion', actual '$actualVersion'"`
107
-
-filepath "$repoRoot\global.json"
106
+
LogError -filepath "$repoRoot\global.json"`
107
+
("MSBuild SDK version '$($dep.Name)' in global.json does not match the value in "+
108
+
"Version.Details.xml. Expected '$expectedVersion', actual '$actualVersion'")
108
109
}
109
110
}
110
111
else {
@@ -122,58 +123,68 @@ try {
122
123
}
123
124
124
125
if ($expectedVersion-ne$actualVersion) {
125
-
LogError `
126
-
"Version variable '$varName' does not match the value in Version.Details.xml. Expected '$expectedVersion', actual '$actualVersion'"`
("Version variable '$varName' does not match the value in Version.Details.xml. "+
128
+
"Expected '$expectedVersion', actual '$actualVersion'")
128
129
}
129
130
}
130
131
}
131
132
132
133
foreach ($unexpectedVarin$versionVars) {
133
-
LogError `
134
-
"Version variable '$unexpectedVar' does not have a matching entry in Version.Details.xml. See https://github.com/dotnet/aspnetcore/blob/main/docs/ReferenceResolution.md for instructions on how to add a new dependency."`
if ($changedFilesExclusions-contains$file) {continue}
188
199
$filePath=Resolve-Path"${repoRoot}/${file}"
189
-
LogError "Generated code is not up to date in $file. You might need to regenerate the reference assemblies or project list (see docs/ReferenceResolution.md)"-filepath $filePath
200
+
LogError -filepath $filePath`
201
+
("Generated code is not up to date in $file. You might need to regenerate the reference "+
202
+
"assemblies or project list (see docs/ReferenceResolution.md)")
Write-Host"Found changes in $($changedAPIBaselines.count) API baseline files"
223
236
224
237
if ($changedAPIBaselines.count-gt0) {
225
-
LogError "Detected modification to baseline API files. PublicAPI.Shipped.txt files should only be updated after a major release. See /docs/APIBaselines.md for more information."
238
+
LogError ("Detected modification to baseline API files. PublicAPI.Shipped.txt files should only "+
239
+
"be updated after a major release. See /docs/APIBaselines.md for more information.")
0 commit comments