I have an asp.net core application that hosts a Outlook Add-in Angular application. This builds and deploys fine on my local machine.
I have created a build in VSTS using the ASP.NET core template, which we have modified with steps to do "npm install" and "npm build".
Everything works up until the .net core restore step. When this step runs I get an error saying
d:\a\3\s\Master\node_modules\openxml-js\OpenXmlSdkJs-01-01-02\OpenXmlSdkJs.csproj(114,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.0.2\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I'm not referencing this package so it must be a dependency of a package I am referencing. When looking at the csproj file that is referenced I can see
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
which I believe is causing the errors.
Does anyone have any ideas on how I can fix this?
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
refered from? And Can you build the project successful on local machine? Or can you upload the project in one drive. – Marina Liu