[Issue #1481]: MSB4018 The NativeCodeAnalysis task failed unexpectedly.
For Debug builds, NativeRecommendedRules.ruleset is used for code analysis (didn't investigate why, and why not on Release). The problem is that the file is referenced by Visual Studio 2015 default install path (which is kind of lame), meaning it will fail for:
- Visual Studio 2015 custom install path
- Other Visual Studio version (probably)
This MR removes the hardcoded path, leaving the file base name only (will be resolved internally by Visual Studio used to build the projects).
Tested manually with Visual Studio 2017 installed in custom location.
Reference: #1481 (closed).
As a side note, I discovered this while debugging [SO]: Pygraphviz crashes after drawing 170 graphs (@CristiFati's answer).
Edited by Cristi Fati
Merge request reports
Activity
Please register or sign in to reply