Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 850 Bytes
using System;
using System.Collections.Generic;
using System.Runtime.Versioning;
using Microsoft.Framework.Runtime;
namespace FSharpSupport
{
public class FSharpProjectReferenceProvider : IProjectReferenceProvider
{
public IMetadataProjectReference GetProjectReference(
Project project,
ILibraryKey libraryKey,
Func<ILibraryExport> referenceResolver,
IList<IMetadataReference> outgoingReferences)
{
var export = referenceResolver();
var incomingReferences = export.MetadataReferences;
var incomingSourceReferences = export.SourceReferences;
// Represents the project reference
return new FSharpProjectReference(project, libraryKey.TargetFramework, libraryKey.Configuration, incomingReferences);
}
}
}
You can’t perform that action at this time.