Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:21:26+00:00 2026-06-12T08:21:26+00:00

I decided to use MSBuild Extension’s Zip task to compress some of my source

  • 0

I decided to use MSBuild Extension’s Zip task to compress some of my source code at every build.

However, this not works:

<UsingTask TaskName="MSBuild.ExtensionPack.Compression.Zip" AssemblyFile="MSBuild.ExtensionPack.dll" />
<Target Name="AfterBuild">
    <CallTarget Targets="ZipSourceFiles" />
</Target>
<Target Name="ZipSourceFiles" Condition="'$(ConfigTransform)'=='ImRunningOnTheServer'">
    <MSBuild.ExtensionPack.Compression.Zip TaskAction="Create" CompressFiles="c:\source.txt" ZipFileName="C:\target.zip"/>
</Target>

I got the following error message:

The “MSBuild.ExtensionPack.Compression.Zip” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “c:\Windows\Microsoft.NET\Framework\v4.0.30319” directory.

I don’t know what causes this error? Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:21:27+00:00Added an answer on June 12, 2026 at 8:21 am

    Example for MSBuild Community Tasks:

    <Import Project="lib\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
    
    <Target Name="Zip">
            <CreateItem Include="YourSourceFolder\*.*" >
                    <Output ItemName="ZipFiles" TaskParameter="Include"/>
            </CreateItem>
            <Zip ZipFileName="YourZipFile.zip" WorkingDirectory="YourSourceFolder" Files="@(ZipFiles)" />
    </Target>
    

    If you need more examples, here is a complete working MSBuild file from one of my projects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I decided to use PDO after recommends here and i found this code below.
I've decided to use this.variableName when referring to string/int etc.. fields. Would that include
We decided to use mongodb for some web application (instead of mysql) but want
I have decided to use IoC principles on a bigger project. However, i would
If I decided to use some javascipt in my website like $('#body').load(URL); or $.get(URL,
We've just newly decided to use NServiceBus on our project and we're experiencing some
We've decided to use webstart for deploying some of our applications. The problem is,
We have recently decided to use Maven as build system. I'm responsible to migrate
I've decided to use the 960 grid for a project and would like some
I am learning how to use MSBuild recently so I decided to tackle writing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.