Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBernadette Isaacson
13,736 PointsGetting error when running default gulp task:
I'm having trouble with running the default gulp task. I get the error below. I did a bit of googling but wasn't able to resolve the issue. Any help would be appreciated.
Really enjoying the course otherwise!
C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker> cmd.exe /c gulp -b "C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker" --color --gulpfile "C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker\Gulpfile.js" default [07:30:00] Using gulpfile C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker\Gulpfile.js [07:30:00] Starting 'nuget-restore'... [07:30:02] MSBuild auto-detection: using msbuild version '15.7.179.6572' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin'. All packages listed in packages.config are already installed. [07:30:02] Finished 'nuget-restore' after 2.19 s [07:30:02] Starting 'default'...
Building the solution...
C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker\IssueTracker.csproj(124,11): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "WebApplications\Microsoft.WebApplication.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker\IssueTracker.csproj(124,11): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Also, tried to find "WebApplications\Microsoft.WebApplication.targets" in the fallback search path(s) for $(VSToolsPath) - "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. IssueTrackerShared -> C:\dev-learn\asp-net-web-api\lcc-dotnet-aspnet-web-api-s2cc1\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTrackerShared\bin\Release\IssueTrackerShared.dll [07:30:08] MSBuild failed with code 1! Process terminated with code 0.