Unable to run Static Code Analysis due to trailing /bin directory changes
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
I tried to enable static code analysis for an Azure Function project but its failing due to the additional bin folder in the output path. Static Code Analysis is looking for the assemblies one directory up since I believe its using TargetPath directory which isn't updated to include the additional bin folder. Do you know if there's a workaround for this?
I enabled Static Code Analysis by editing the project file like so:
Azure Functions Project File
`
net461
true ExtendedDesignGuidelineRules.ruleset `
Visual Studio 2017 v15.3.4 Error:
Running Code Analysis...
1> * Could not load file: 'bin\Debug\net461\xxxxx.dll'.
1> * Analysis was not performed; at least one valid rules assembly and one valid
1> target file must be specified.
1> * 1 total analysis engine exceptions.
1> MSBUILD : error : CA0055 : * Could not load file: 'bin\Debug\net461\xxxxx.dll'.
1> MSBUILD : error : CA0052 : No targets were selected.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.