diff --git a/src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs b/src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs index dcff45097b..8dc125a0c7 100644 --- a/src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs +++ b/src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs @@ -67,7 +67,7 @@ namespace ICSharpCode.CppBinding.Project else { // this will be valid if there is an explicit OutDir property in vcxproj file. - if (GetUnevalatedProperty("OutDir").StartsWith("$(SolutionDir)")) + if ((GetUnevalatedProperty("OutDir") ?? "").StartsWith("$(SolutionDir)")) { // in #D every project is compiled by msbuild separately, this mean that SolutionDir will // be equal to ProjectDir, so it has to be replaced with actual solution directory