/// <summary> /// Resolves the NuGet packages into assemblies to be referenced by the script. /// <para>If the package was never installed/downloaded yet CS-Script runtime will try to download it.</para> /// <para>CS-Script will also analyze the installed package structure in try to reference compatible assemblies /// from the package.</para> /// </summary> /// <param name="suppressDownloading">if set to <c>true</c> suppresses downloading the NuGet package. /// Suppressing can be useful for the quick 'referencing' assessment.</param> /// <returns>Collection of the referenced assembly files.</returns> public string[] ResolvePackages(bool suppressDownloading = false) { #if !class_lib return(NuGet.Resolve(Packages, suppressDownloading, this.ScriptPath)); #else return(new string[0]); #endif }
/// <summary> /// Resolves the NuGet packages into assemblies to be referenced by the script. /// <para>If the package was never installed/downloaded yet CS-Script runtime will try to download it.</para> /// <para>CS-Script will also analyze the installed package structure in try to reference compatible assemblies /// from the package.</para> /// </summary> /// <param name="suppressDownloading">if set to <c>true</c> suppresses downloading the NuGet package. /// Suppressing can be useful for the quick 'referencing' assessment.</param> /// <returns>Collection of the referenced assembly files.</returns> public string[] ResolvePackages(bool suppressDownloading = false) #endif { return(NuGet.Resolve(Packages, suppressDownloading, this.ScriptPath)); }