| 1153 | } |
| 1154 | |
| 1155 | void cmVisualStudio10TargetGenerator::WriteDotNetReference( |
| 1156 | Elem& e1, std::string const& ref, std::string const& hint, |
| 1157 | std::string const& config) |
| 1158 | { |
| 1159 | Elem e2(e1, "Reference"); |
| 1160 | // If 'config' is not empty, the reference is only added for the given |
| 1161 | // configuration. This is used when referencing imported managed assemblies. |
| 1162 | // See also cmVisualStudio10TargetGenerator::AddLibraries(). |
| 1163 | if (!config.empty()) { |
| 1164 | e2.Attribute("Condition", this->CalcCondition(config)); |
| 1165 | } |
| 1166 | e2.Attribute("Include", ref); |
| 1167 | e2.Element("CopyLocalSatelliteAssemblies", "true"); |
| 1168 | e2.Element("ReferenceOutputAssembly", "true"); |
| 1169 | if (!hint.empty()) { |
| 1170 | char const* privateReference = "True"; |
| 1171 | if (cmValue value = this->GeneratorTarget->GetProperty( |
| 1172 | "VS_DOTNET_REFERENCES_COPY_LOCAL")) { |
| 1173 | if (value.IsOff()) { |
| 1174 | privateReference = "False"; |
| 1175 | } |
| 1176 | } |
| 1177 | e2.Element("Private", privateReference); |
| 1178 | e2.Element("HintPath", hint); |
| 1179 | } |
| 1180 | this->WriteDotNetReferenceCustomTags(e2, ref); |
| 1181 | } |
| 1182 | |
| 1183 | void cmVisualStudio10TargetGenerator::WriteFrameworkReferences(Elem& e0) |
| 1184 | { |
no test coverage detected