Summary
Gets the complete set of assemblies that need to be referenced when
a project references this project.
- Assembly
- NAnt
.VSNet .dll - Namespace
- NAnt
.VSNet - Containing Type
- ProjectReferenceBase
Syntax
public override StringCollection GetAssemblyReferences(Configuration solutionConfiguration)
Remarks
Apparently, there's some hack in VB.NET that allows a type to be used that derives from a type in an assembly that is not referenced by the project.
When building from the command line (using vbc), the following error is reported "error BC30007: Reference required to assembly 'X' containing the base class 'X'. Add one to your project".
Somehow VB.NET can workaround this issue, without actually adding a reference to that assembly. I verified this with both VS.NET 2003 and VS.NET 2005.
For now, we have no other option than to return all assembly references of the referenced project if the parent is a VB.NET project.
Parameters
Name | Type | Description |
---|---|---|
solutionConfiguration | Configuration | The solution configuration that is built. |
Return Value
Type | Description |
---|---|
StringCollection | The complete set of assemblies that need to be referenced when a project references this project. |