Zipping C# projects isn't working

Page 1 of 1

5 Replies - 542 Views - Last Post: 12 July 2010 - 10:22 AM

#1 galagali   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 11-July 10

Zipping C# projects isn't working

Posted 11 July 2010 - 06:32 PM

After compressing my VB/C# projects, I opened the compressed folders and when I clicked on the project solution, the project did not open properly. It said the system could not find the file specified. However, when I went back to the original folder (the unzipped folder), the program ran fine. Does anyone know how to fix this?

Suppose I send the zipped file via email to someone. Would the person on the other end be able to run the project properly? Would he/she have to save that project on his/her own computer in order for the program to run properly?

Is This A Good Question/Topic? 0
  • +

Replies To: Zipping C# projects isn't working

#2 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1663
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Zipping C# projects isn't working

Posted 11 July 2010 - 06:39 PM

Ok, since this isn't a programming help topic I'm going to move this to Computer Support & Operating Systems :)
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6260
  • View blog
  • Posts: 24,030
  • Joined: 23-August 08

Re: Zipping C# projects isn't working

Posted 11 July 2010 - 06:40 PM

Sounds like it could be a full path vs. relative path issue?
Was This Post Helpful? 0
  • +
  • -

#4 FlashM   User is offline

  • D.I.C Lover
  • member icon

Reputation: 383
  • View blog
  • Posts: 1,195
  • Joined: 03-December 09

Re: Zipping C# projects isn't working

Posted 12 July 2010 - 12:07 AM

Is it possible that you're not zipping the top-most folder of your solution? I zipped my solutions hundreds of times and never encountered this kind of problem...
Was This Post Helpful? 0
  • +
  • -

#5 tlhIn`toq   User is offline

  • Xamarin Cert. Dev.
  • member icon

Reputation: 6538
  • View blog
  • Posts: 14,450
  • Joined: 02-June 10

Re: Zipping C# projects isn't working

Posted 12 July 2010 - 09:05 AM

I'm gong to throw my hat into the path-related ring.

All of my projects are on an external drive (K:) so I can run them from my desktop or laptop as needed.
But if you move them to a different drive, or nest them in a folder they weren't originally in, then you get that error.

Original
K:\\Code\tlhintoq\solution1
K:\\Code\tlhintoq\solution1\Project1
K:\\Code\tlhintoq\common\RegExProject.sln

becomes
C:\\Projects\imported\solution1
C:\\Projects\imported\solution1\Project1
C:\\Projects\imported\RegExProject.sln

So all of a sudden the sub-projects that are part of that solution all reside in a different location.


If you email the project to someone they would have to place the files in the same path structure you used.
This is why I never use the Visual Studio default path of C:\\{userdocuments\Visual Studio\Projects because it is hard for someone else to replicate.
But it's fairly easy for anyone to create a K:\\Code\ directory even if they have to re-assign the letter of a USB flash drive, or a portable passport drive etc.
Was This Post Helpful? 1
  • +
  • -

#6 Robin19   User is offline

  • D.I.C Addict
  • member icon

Reputation: 272
  • View blog
  • Posts: 552
  • Joined: 07-July 10

Re: Zipping C# projects isn't working

Posted 12 July 2010 - 10:22 AM

I would check the thing I forget to do all of the time.

Did you unzip the folder? That sounds like the error message I get when trying to open a solution from inside a zipped folder. It can't grab the other files because they are still zipped. You must unzip and save to a new location and then open the solution.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1