MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteDotNetReference

Method WriteDotNetReference

Source/cmVisualStudio10TargetGenerator.cxx:1155–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155void 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
1183void cmVisualStudio10TargetGenerator::WriteFrameworkReferences(Elem& e0)
1184{

Callers 1

WriteDotNetReferencesMethod · 0.95

Calls 7

CalcConditionMethod · 0.95
AttributeMethod · 0.80
emptyMethod · 0.45
ElementMethod · 0.45
GetPropertyMethod · 0.45
IsOffMethod · 0.45

Tested by

no test coverage detected