Hi,
I'm trying to use the zip functionallity of Microsoft.VsSDK to zip my project files directly under VS. Similar to the IronPython project sample. But I'm getting the following error:
Error 67 The "Zip" task was not given a value for the required parameter "ZipName". ProjectTest
I've added the following to my csproj file:
<Import Project="Tools\Build\Microsoft.VsSDK.targets" />
ANd
<ItemGroup>
<ZipProject Include="Templates\Projects\GameApp\TSApp.vstemplate" />
<ZipProject Include="Templates\Projects\GameApp\__TemplateIcon.ico" />
<ZipProject Include="Templates\Projects\GameApp\Form1.ts" />
<ZipProject Include="Templates\Projects\GameApp\main.ts" />
<ZipProject Include="Templates\Projects\GameApp\TSApplication.tsproj" />
</ItemGroup>
Anything missing

Zip task not given required parameter
Ram-Sree
1. The reason I specified "TS" was because the files he is using let me believe his language is "TS" (.ts, TSApplication.tsproj,...). I just tried to adapt my answer to his scenario. If your language is FOO, then you could put FOO instead.
2. ZipItem/ZipProject, I made it such that you can set an item to be of that type from within VS (no manual editing of the project file required). When I tell people to change something in the project file by doing manual editing, it is typically because I don't know of a way to do that from within VS (not everything is fully controllable by the MSBuild API, and not everything that is exposed by the MSBuild API is exposed by VS). If you are going to implement your own project system, or extend an existing one (that is based on MSBuild), I would highly recommand learning how MSBuild project and targets are written, and maybe even take the time to write a couple of tasks to learn how they work. This will prove valuable both in helping you find solution for your customer, as well as potentially helping you improve your own build process.
There are some good examples of custom MSBuild targets/tasks inside the VS SDK, and you can also look at the MSBuild specific resources in the help and online. The other trick you may find useful is to run msbuild.exe with the /v:d option so that you get to see more details as to what is happening.
Rusty
cbenesh
Hi Rusty,
I have 2 questions:
1. Why did you propose "TS" for <VsTemplateLanguage> tag
and
2. As I can see there are a lot of manual editing of project file (e.g. ZipItem, VsTemplateLanguage and so on). Could you plese give me an advice where can I find the information about what shoud be corrected manually in project file for my custom VSIP and whats for
P.S. I am trying to understand the VSIP development and it seams that this one consists of hacks & tricks entirely...
So any advices how to learns these tricks are very appreciated.
Many thanks.
Demono
Hi Martin,
I looked more into this, and I was able to come up with a repro. In the scenario I reproed, this is because the target assumes (yes this is a bug), that there will be at least one ZipItem in your project.
Until you get an fixed version of the target you can work around it by doing one of the following:
- Fix the target
- Add a ZipItem element in your project, such as:
<ZipItem Include="Templates\Projects\GameApp\Form1.ts" />
Also, once this is done, be aware that the target expect the following properties to be defined:
<PropertyGroup>
<VsTemplateLanguage>TS</VsTemplateLanguage>
<TargetRegistryRoot>Software\Microsoft\VisualStudio\8.0</TargetRegistryRoot>
</PropertyGroup>
Thanks for reporting the issue
Rusty
gandor
No the Microsoft.VsSDK.targets hasn't been modified at all.
Here's the error I get when trying to compile:
(ProjectTest being the current project name)
The structure in my project is similar to this:
ProjectTest
Templates
Projects
ProjectA
And the ProjectA folder contains all the files.
Thanks,
Steve Moores
Hi Martin,
This should just work. The only scenario that might not work would be if you have items which are not in a subdirectory which are of type ZipProject or ZipItem; by example if you had:
<ZipProject Include="TSApplication.tsproj" />
Has the Microsoft.VsSDK.targets file been modified
What was the exact error returned by MSBuild Was there a line number
Rusty
BarryTannenbaum
Richo
Hi Rusty,
Thank you very much for your advice!