Skip to content

Commit d51cae3

Browse files
authored
powershell sample
1 parent 32f4bca commit d51cae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

troubleshooting/codeql-builds/compiled-languages-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ For `Error ASPCONFIG: Could not load type 'X.Y.Z'`, ensure that you do not have
168168
To avoid building and scanning any view code in your project (potential false negatives in the scan as view engine code may not be evaluated for vulnerabilities) and to workaround the requirement that MvcBuildViews is automatically injected. Consider this [community contributed suggestion](https://github.com/github/codeql/issues/11890#issuecomment-1496970164):
169169

170170
```powershell
171-
tweaking the csproj file with powershell during the GitHub Action so that the hard-coded condition "gets fooled", basically. Something like this:
171+
# tweaking the csproj file with powershell during the GitHub Action so that the hard-coded condition "gets fooled", basically. Something like this:
172172
173173
$filePath = (Join-Path $pwd '\SUBFOLDER\YOURCSPROJFILE.csproj')
174174
$csproj = [xml](Get-Content $filePath)

0 commit comments

Comments
 (0)