74
74
$fileName = [io.path ]::GetFileNameWithoutExtension($_ )
75
75
if (-not ($projectFileNames.Add ($fileName ))) {
76
76
LogError - code ' BUILD003' - filepath $_ `
77
- " Multiple project files named '$fileName ' exist. Project files should have a unique name " +
78
- " to avoid conflicts in build output."
77
+ ( " Multiple project files named '$fileName ' exist. Project files should have a unique name " +
78
+ " to avoid conflicts in build output." )
79
79
}
80
80
}
81
81
@@ -104,8 +104,8 @@ try {
104
104
105
105
if ($expectedVersion -ne $actualVersion ) {
106
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 '"
107
+ ( " MSBuild SDK version '$ ( $dep.Name ) ' in global.json does not match the value in " +
108
+ " Version.Details.xml. Expected '$expectedVersion ', actual '$actualVersion '" )
109
109
}
110
110
}
111
111
else {
@@ -124,17 +124,17 @@ try {
124
124
125
125
if ($expectedVersion -ne $actualVersion ) {
126
126
LogError - filepath " $repoRoot \eng\Versions.props" `
127
- " Version variable '$varName ' does not match the value in Version.Details.xml. " +
128
- " Expected '$expectedVersion ', actual '$actualVersion '"
127
+ ( " Version variable '$varName ' does not match the value in Version.Details.xml. " +
128
+ " Expected '$expectedVersion ', actual '$actualVersion '" )
129
129
}
130
130
}
131
131
}
132
132
133
133
foreach ($unexpectedVar in $versionVars ) {
134
134
LogError - Filepath " $repoRoot \eng\Versions.props" `
135
- " Version variable '$unexpectedVar ' does not have a matching entry in Version.Details.xml. " +
136
- " See https://github.com/dotnet/aspnetcore/blob/main/docs/ReferenceResolution.md for instructions " +
137
- " on how to add a new dependency."
135
+ ( " Version variable '$unexpectedVar ' does not have a matching entry in Version.Details.xml. " +
136
+ " See https://github.com/dotnet/aspnetcore/blob/main/docs/ReferenceResolution.md for instructions " +
137
+ " on how to add a new dependency." )
138
138
}
139
139
140
140
# ComponentsWebAssembly-CSharp.sln is used by the templating engine; MessagePack.sln is irrelevant (in submodule).
@@ -198,8 +198,8 @@ try {
198
198
if ($changedFilesExclusions -contains $file ) {continue }
199
199
$filePath = Resolve-Path " ${repoRoot} /${file} "
200
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)"
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)" )
203
203
& git -- no- pager diff -- ignore- space- change $filePath
204
204
}
205
205
}
@@ -235,8 +235,8 @@ try {
235
235
Write-Host " Found changes in $ ( $changedAPIBaselines.count ) API baseline files"
236
236
237
237
if ($changedAPIBaselines.count -gt 0 ) {
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."
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." )
240
240
LogError " Modified API baseline files:"
241
241
foreach ($file in $changedAPIBaselines ) {
242
242
LogError $file
0 commit comments