Table of Contents

Method WithAssembly

Namespace
Skyline.AppInstaller
Assembly
Skyline.DataMiner.Core.AppPackageCreator.dll

WithAssembly(string, string)

Adds the specified assembly.

IAppPackageProtocolBuilder WithAssembly(string assemblyFilePath, string destinationFolderPath)

Parameters

assemblyFilePath string

The assembly file path.

destinationFolderPath string

The destination folder path.

Returns

IAppPackageProtocolBuilder

A reference to this instance after the operation has completed.

Exceptions

ArgumentNullException

assemblyFilePath or destinationFolderPath is null.

ArgumentException

assemblyFilePath or destinationFolderPath is empty. -or- The specified file is not a DLL (.dll). -or- The specified file does not exist. -or- The specified file is not a DLL (.dll). -or- The destination folder does not start with 'C:\Skyline DataMiner'. -or- The destination folder is not one of the following folders ProtocolScripts, ProtocolScripts\DllImport or Files folder or a subfolder thereof.

InvalidOperationException

An assembly with this name has already been added to the specified destination folder.