While setting up a project, getting this error on npm run build
:
C:..\src\packages\Microsoft.Portal.Tools.5.0.303.3330\build\TypeScript\tools\Microsoft.TypeScript.targets(219,5): error MSB4062: The "TypeScript.Tasks.CheckFileSystemCaseSensitive" task could not be loaded from the assembly C:..\src\packages\Microsoft.Portal.Tools.5.0.303.3330\build\TypeScript\build..\tools\net45\TypeScript.Tasks.dll. Could not load file or assembly 'Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=..' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:..\src\Default\Extension\Extension.csproj]
Package.json
{
"name": "extensiondev",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"restore": "npm install --no-optional && nuget install ./packages.config",
"build": "msbuild.exe ./Extension.csproj /m /p:RunBundlerInDevMode=true /t:Rebuild /flp1:logfile=msbuild.log /flp2:logfile=msbuild.err;errorsonly /flp3:logfile=msbuild.wrn;warningsonly",
"serve": "node ./node_modules/@../portalhostingservice/DevServer/DevServer.js -s",
"start": "npm run restore && npm run build && npm run serve",
"watch": "cd ./node_modules/.bin && tsc.cmd -b ../../tsconfig.json -w --extendedDiagnostics",
"release": "msbuild.exe ./Extension.csproj /m /p:RunBundlerInDevMode=false;Configuration=Release /t:Rebuild /flp1:logfile=msbuild.log /flp2:logfile=msbuild.err;errorsonly /flp3:logfile=msbuild.wrn;warningsonly"
},
"author": "..",
"license": "..",
"dependencies": {},
"devDependencies": {
"@../portalhostingservice": "1.182.*",
"typescript": "3.2.1"
}
}
packages.json
file with us? Didnpm run build
use MSBuild to build a new project? - Mr Qiandevenv xxx.sln /build
. Did you usenpm run build
to build setup project which contains another project calledExtension
. If so, what your project type of theExtension
project? Besides, make sure that you have installedTypescript sdk
in VS IDE. You should provide more detailed info about your issue. - Mr Qian