I found a solution on my own
Before adding the Cordova project on VS2017 open the config.xml file with notepad and add this code to somewhere
<content src="index.html" />
then save and close the file
in the end, open the cordova project with Visual Studio 2017 and built it