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

C# Building Services with ASP.NET Web API Building Our Service Adding Web API to a Project

Daniel Medina
Daniel Medina
13,863 Points

Local Code Challenge: Building Our Service | Zipping and Uploading

Hey everyone,

I feel like I'm at my wit's end with this local code challenge. I pass all of the tests locally on my system, but when I try to upload my zipped archive it tells me that some of my tests have failed.

Here's what I've tried so far:

  1. Simply zipping everything (except the packages folder) and uploading. This went over the file limit and did not work.

  2. Deleting the following folders:

    - bin
    - obj
    - node_modules
    
  3. I then tried zipping and uploading my solution including the much smaller src directory. This didn't work.

  4. I tried deleting the bin and obj folders from: IssueTracker, IssueTrackerShared, IssueTrackerTests. Then I re-zipped and tried uploading the files. It still says that it doesn't pass the tests.

Am I missing something? What is it that I'm supposed to be uploading if not these files? I would really appreciate some help on this one as it's driving me nuts.

2 Answers

Daniel Medina
Daniel Medina
13,863 Points

OK, I got the challenge working.

Here's what I did::

  1. Examine the structure of the original downloaded code. Pay special attention to directory structure and names.
  2. Solve the challenge and be sure to go green on all of our tests.
  3. Click "Save All" before exiting Visual Studio 2017.
  4. With our added code, match the directories in the original downloaded code.
  5. Once we're done cleaning up our directories with our modified code, archive it as a .ZIP file.
  6. Upload the file to Treehouse
Zhaopeng Wang
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Zhaopeng Wang
Full Stack JavaScript Techdegree Graduate 32,210 Points

There is another way using Gulp task runner from the project. It will run the project.msbuild file in the file directory and generate a project.zip file for you. Then you need to upload that zip file. You might need to install node.js, npm at your machine. In your command line tool, run npm install gulp-cli -g to install Gulp globally. Then goes to the Issue Tracker project directory, such as......./src/IssueTracker Run gulp default