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 trial
Simon Sporrong
35,097 PointsGulp task 'default' won't run and zip file is 6 mb.
I think that this code challene is quite exhausting and irritating. I can't make the default gulp task to run because i use Visual Studio 2019 which somehow makes the gulp-msbuild package unable to find the msbuild file. I tried to alter the source code for the package but can't make it work.
So at least I can zip the solution and upload it manually, right? But even after i remove the 'packages' file from the src folder the zip file is too big, 6 mb.
This is so annoying since there is no way to complete this otherwise, if i'm honest, quite trivial code challenge.
The complete output message from the gulp file execution:
PM> gulp default
[[90m23:06:23[39m] Using gulpfile ~\Downloads\lcc-dotnet-aspnet-web-api-s2cc1\src\IssueTracker\gulpfile.js
[[90m23:06:23[39m] Starting 'nuget-restore'...
[[90m23:06:25[39m] MSBuild auto-detection: using msbuild version '16.1.76.45076' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin'.
All packages listed in packages.config are already installed.
[[90m23:06:25[39m] Finished 'nuget-restore' after 1.63 s
[[90m23:06:25[39m] Starting 'default'...
[[90m23:06:25[39m] { Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:362:16)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\amd64\\MSBuild.exe',
path: 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\amd64\\MSBuild.exe',
spawnargs:
[ 'C:\\Users\\KM\\Downloads\\lcc-dotnet-aspnet-web-api-s2cc1\\project.msbuild',
'/target:Start',
'/verbosity:minimal',
'/toolsversion:15.0',
'/nologo',
'/maxcpucount',
'/property:Configuration=Release' ] }
[[90m23:06:25[39m] MSBuild failed!
[[90m23:06:25[39m] Finished 'default' after 58 ms
Any suggestions James Churchill ?