| 
					
				 | 
			
			
				@@ -4253,11 +4253,10 @@ void cmVisualStudio10TargetGenerator::WriteProjectReferences(Elem& e0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (dt->IsCSharpOnly() || cmHasLiteralSuffix(path, "csproj")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       e2.Element("SkipGetTargetFrameworkProperties", "true"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // Don't reference targets that don't produce any output. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (this->Configurations.empty() || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        dt->GetManagedType(this->Configurations[0]) == 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          cmGeneratorTarget::ManagedType::Undefined) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else if (this->Configurations.empty() || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             dt->GetManagedType(this->Configurations[0]) == 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               cmGeneratorTarget::ManagedType::Undefined) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       e2.Element("ReferenceOutputAssembly", "false"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       e2.Element("CopyToOutputDirectory", "Never"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |