C# Class NuGet.VisualStudio.VsWebsiteHandler

Inheritance: IVsWebsiteHandler
Show file Open project: themotleyfool/NuGet

Public Methods

Method Description
AddRefreshFilesForReferences ( Project project, IFileSystem packagesFileSystem, IEnumerable packageNames ) : void

Adds refresh files to the specified project for all assemblies references belonging to the packages specified by packageNames.

CopyNativeBinaries ( Project project, IFileSystem packagesFileSystem, IEnumerable packageNames ) : void

Copies the native binaries to the project's bin folder.

Private Methods

Method Description
CopyNativeBinaries ( IProjectSystem projectSystem, IFileSystem packagesFileSystem, PackageName packageName ) : void
GetAssemblyReferences ( IFileSystem fileSystem, string packageId, SemanticVersion version, string &packageDirectory ) : IEnumerable

Gets all assembly references for a package

GetTargetFramework ( Project project ) : FrameworkName
SearchFilesWithinOneSubFolders ( IFileSystem fileSystem, string folder, string extension ) : IEnumerable
VsWebsiteHandler ( IFileSystemProvider fileSystemProvider ) : System
VsWebsiteHandler ( IFileSystemProvider fileSystemProvider, IProjectSystemFactory projectSystemFactory ) : System

This constructor is used by unit tests to inject custom IVsProjectSystem implementation

Method Details

AddRefreshFilesForReferences() public method

Adds refresh files to the specified project for all assemblies references belonging to the packages specified by packageNames.
public AddRefreshFilesForReferences ( Project project, IFileSystem packagesFileSystem, IEnumerable packageNames ) : void
project Project The project.
packagesFileSystem IFileSystem The file system pointing to 'packages' folder under the solution.
packageNames IEnumerable The package names.
return void

CopyNativeBinaries() public method

Copies the native binaries to the project's bin folder.
public CopyNativeBinaries ( Project project, IFileSystem packagesFileSystem, IEnumerable packageNames ) : void
project Project The project.
packagesFileSystem IFileSystem The packages file system.
packageNames IEnumerable The package names.
return void