I am developing an Office Excel Javascript addin using Microsoft Visual Studio 2015 Community Edition. I have installed Microsoft Excel 2016 for Windows. Now my addin needs to run certain methods which require Excel Api: Api Set 1.4. Now currently Visual Studio is using Api Set 1.1. What I want to know is how can I use the latest Api set which is 1.4 in Visual Studio so that I will get access to the latest methods.
This is what I have tried so far,
if(Office.context.requirements.isSetSupported("ExcelApi", 1.4){
//some code
}else {
console.log("Not supported");
}
which gives me "Not Supported".
I am referencing this office.js from the cdn:
script src="https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" type="text/javascript"
Does anybody have any insights about this?