Skip to content

Commit

Permalink
Added basic project reference support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jagregory committed Jul 29, 2008
1 parent 7df1576 commit a1c5a69
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/BooLangProject/BooLangProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<Compile Include="BooReferenceContainerNode.cs" />
<Compile Include="BooVSProject.cs" />
<Compile Include="Guids.cs" />
<Compile Include="ProjectReference.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Source/BooLangProject/BooReferenceContainerNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ public override void AddChild(HierarchyNode node)
{
reference = new AssemblyReference();
reference.Path = ((OAAssemblyReference)node.Object).Path;

project.Sources.References.Add(reference);
}
else if (node is ProjectReferenceNode)
{
reference = new ProjectReference();
reference.Path = ((OAProjectReference)node.Object).Path;

project.Sources.References.Add(reference);
project.Sources.References.Add(reference);
}
}

}
Expand Down
15 changes: 15 additions & 0 deletions Source/BooLangProject/ProjectReference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Reflection;
using BooLangService;

namespace Boo.BooLangProject
{
internal class ProjectReference : IReference
{
public Assembly GetAssembly()
{
return AssemblyHelper.FindInCurrentAppDomainOrLoad(Path);
}

public string Path { get; set; }
}
}

0 comments on commit a1c5a69

Please sign in to comment.