Setup the Project
In this article you will find:
Goal
This article provides information of the steps needed to setup the Hawksearch connector project.
Prerequisite
Project with Sitefinity 10.2.6600, 11.2.6900, 12.0.7000, 12.2.7200, 13.0.7300, 13.1.7400, 13.2.7500, 13.3.7600
Access to Americaneagle.com TFS SitefinityStandarts collection - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/_projects
The Master branch of Hawksearch projects targets Sitefinity version 13.3.7600
Steps for Setting-up the Project
Clone the hawk-search-add-on repository - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/hawk-search-add-on
Clone the hawk-search-add-on-widgets repository - http://pr-tfs-4as01:8080/tfs/SitefinityStandards/hawk-search-add-on/_git/hawk-search-add-on-widgets
Make sure your current version of NodeJs is set to v14.9.0. You can follow the link to download NodeJS v14.9.0 - https://nodejs.org/download/release/v14.9.0/
Make sure you have installed angular cli v7.3.0. You can use this command in the console at the root of your project -
npm install -g @angular/cli@7.3.0
In the console at the root of the Hawksearch project run -
npm install npm run build
In the console at the root of the HawksearchWidgets project run -
npm install npm run build
Add all four project to your SitefinityWebApp solution:
Add Hawksearch.IFilter and Hawksearch.SDK projects as a references to the Hawksearch project.
Аdd Hawksearch and Hawksearch.SDK projects as a reference to the HawksearchWidgets project.
Add Hawksearch ,HawksearchWidgets, Hawksearch.IFilter and Hawksearch.SDK projects as a references to the SitefinityWebApp project.
Add the HawkRoutesInitializer.cs to the App_Start of your SitefinityWebApp project. The HawkRoutesInitializer.cs is in HawksearchInstallation folder at the root of the hawk-search-add-on repository.
Navigate to the root of the hawk-search-add-on-widgets repository and browse the ResourcePackages folder. There you will find both Hawksearch widgets template directories and copy them to the SitefinityWebApp → ResourcePackages → Bootstrap4 → MVC → Views.
Build the Solution.
Known Issues
If you have Roslyn error when you try to run the solution delete the bin folder from the SitefinityWebApp project, restart the Visual Studio and rebuild the solution.