file(READ "${RunCMake_TEST_BINARY_DIR}/internal.vcxproj" all_build) string(REGEX MATCH ".*" ProjectReference ${all_build} ) if(ProjectReference STREQUAL "") set(RunCMake_TEST_FAILED "${test} is being set unexpectedly.") else() string(REGEX MATCH ".*" ReferenceOutputAssembly ${ProjectReference} ) if(NOT ReferenceOutputAssembly STREQUAL "") string(REPLACE "" "" ReferenceOutputAssemblyValue ${ReferenceOutputAssembly} ) string(REPLACE "" "" ReferenceOutputAssemblyValue ${ReferenceOutputAssemblyValue} ) if(ReferenceOutputAssemblyValue MATCHES "[Fa][Ll][Ss][Ee]") set(RunCMake_TEST_FAILED "Referenced C# project with ReferenceOutputAssembly set to false.") endif() endif() endif()