NAnt SDK Documentation - v0.92 |

# CompilerBase.GetResourceLinkage Method

Finds the correct namespace/classname for a resource file from the given dependent source file.

[Visual Basic]
Overridable Protected Function GetResourceLinkage( _
ByVal dependentFile As String, _
ByVal resourceCulture As CultureInfo _
) As ResourceLinkage
[C#]
protected virtual ResourceLinkage GetResourceLinkage(
string dependentFile,
CultureInfo resourceCulture
);

#### Parameters

dependentFile
  The file from which the resource linkage of the resource file should be determined.
resourceCulture
  The culture of the resource file for which the resource linkage should be determined.

#### Return Value

The namespace/classname of the source file matching the resource or a null reference (Nothing in Visual Basic) if the dependent source file does not exist.

#### Remarks

This behaviour may be overidden by each particular compiler to support the namespace/classname syntax for that language.

#### See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace