Home Dashboard Directory Help

Visual Studio 2012 Export Template wizard creates improperly formatted zip files by darrylsk


 as Won't Fix Help for as Won't Fix

Sign in
to vote
Type: Bug
ID: 835596
Opened: 3/17/2014 10:29:54 AM
Access Restriction: Public
User(s) can reproduce this bug


I have observed the following behaviour with Visual Studio 2012 on Windows 7 and Windows 8, and Visual Studio 2013 on Windows 7.
The issue I'm describing does not occur with Visual Studio 2010 on either of Windows XP nor Windows 7. The problem looks to be associated with Visual Studio 2012 and Visual Studio 2013 only.


There seems to be a problem with the .zip file created by the "Export Template..." wizard. The wizard itself runs without any errors and creates the .zip file in the "Exported Templates" folder, but when I try to extract the files (in order to modify the template as instructed here: http://msdn.microsoft.com/en-us/library/ms185319(v=vs.110).aspx) I get the following error message:

Extracting file: C:\Users\me\Documents\Visual Studio 2012\My Exported Templates\Sample.Web.zip
Extracting to "C:\Users\me\Documents\Visual Studio 2012\My Exported Templates\Sample.Web\"
Use Path: yes Overlay Files: no
Extracting Sample.Web.csproj
Central and local directory mismatch for file "App_GlobalResources/" (crc-32 - local: CA1525D6 hex central: 0 hex).
Local and central CRC values don't match

When I look into the folder where I was attempting to extract the template, I see that it contains the project file 'Sample.Web.csproj' but nothing else.

The above output was produced by Winzip v15.5, using a web project. I get a slightly different error with a class library project (directory mismatch for the 'Properties' folder instead of the 'App_GlobalResources' folder).
Several other people in the office where I am working have the same problem, but different compression utilities produce similar errors with a slightly different level of detail. They all report a crc error, however.

Using WinZip (and 7Zip) the archive can be opened and viewed, and individual files can be extracted, but it seems to have a problem with folders.

I have a different machine, also running Windows 7, with Visual Studio 2010 installed. On that machine, I do not receive this error. I have been customising and using multi-project templates With Visual Studio 2010 and Visual Studio 2008 for a couple of years using the exact same procedure and have never encountered this problem before.
Sign in to post a comment.
Posted by Microsoft on 3/20/2014 at 11:29 AM
Thank you for your feedback. We have investigated this issue and determined that it is not a regression from previous versions of Visual Studio. As this issue is not a regression we will consider it in planning for future versions of Visual Studio if we receive a significant volume of customer feedback pertaining to the issue.
Posted by Microsoft on 3/17/2014 at 10:57 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information. If you require immediate assistance with this issue, please contact product support at http://support.microsoft.com/ph/1117.
Posted by Microsoft on 3/17/2014 at 6:36 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by darrylsk on 3/17/2014 at 12:53 PM
A search of this topic from dashboard reveals a similar issue to this occurred in Visual Studio 2005 and was reported as item #318898. A workaround suggested for that issue, to open the zip file with Windows Explorer and use its extract function, seems to be working in this case as well.