Browse Source

Fixed NullReferenceException in CppProject.get_OutputAssemblyFullPath

pull/6/merge
Daniel Grunwald 14 years ago
parent
commit
c00a5bf311
  1. 2
      src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs

2
src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs

@ -67,7 +67,7 @@ namespace ICSharpCode.CppBinding.Project @@ -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

Loading…
Cancel
Save