p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 (http://p2p.wrox.com/forumdisplay.php?f=341)
-   -   Chapter 4 -wsp.ddf file Generates Errors (http://p2p.wrox.com/showthread.php?t=75660)

dbaechtel August 11th, 2009 11:13 AM

Chapter 4 -wsp.ddf file Generates Errors
I am trying to follow the procedure in the Wiley Publishing book Professional SharePoint 2007 Development Chapter 4 section on Solutions to use Makecab.exe to make a Sharepoint Solution.

Why is MakeCab.exe having trouble parsing the wsp.ddf file? How do I fix it?

I am getting the following errors in VSTS 2008:
Microsoft (R) Cabinet Maker - Version (32) 1.00.0601 (03/18/97)
Copyright (c) Microsoft Corp 1993-1997. All rights reserved.
Parsing directives
Parsing directives (wsp.ddf: 1 lines)
wsp.ddf(1): error : Could not find file: n++.OPTION
EXEC : error : MakeCAB aborted: 1 errors encountered

Error 1 Could not find file: n++.OPTION file: C:\!Projects\WileyFeature\WileyFeature\wsp.ddf Line: 1 Project: WileyFeature

The contents of the wsp.ddf file is:

.Set CabinetNameTemplate=WileyFeature.wsp
.Set DiskDirectoryTemplate=c:\wsp
.Set CompressionType=MSZIP
.Set UniqueFiles=OFF
.Set Cabinet=on
;Files to place into the CAB Root
;Files to place into the CAB WileyFeature directory
.Set DestinationDir=WileyFeature

rvanandel December 31st, 2009 12:07 PM

I had the same problem. The book says to edit the file in Visual Studio. I found that this is incorrect. I ended up using notepad and that resolved the problem. Looks like VS adds some characters MakeCab doesn't like.

All times are GMT -4. The time now is 12:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.