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 7430607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:10:06+00:00 2026-05-29T09:10:06+00:00

I have a project file that is using a property $(source) such as :

  • 0

I have a project file that is using a property $(source) such as :

<ItemGroup>
    <ZipFiles Include="$(Source)\**\*.*" />
</ItemGroup>
<Target Name="Package">
   <Zip Files="@(ZipFiles)" ZipFileName="ZipOutputFullPath" />
</Target>

Now, I’m using this project file in a second project file and I need to copy some zip files into a folder that I construct based on some other parameters and I need to pass in that folder as $(source) to imported project, how can I do this? I’m referencing the imported target like this:

<Target Name="PrepareDropAndPackage" DependsOnTargets="PrepareDrop;Package">
        <Message Text="Finishes preparing drop and packaging." />
</Target>

So basically I need to somehow pass in $(source) to Package target.

Thanks,

  • 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-05-29T09:10:07+00:00Added an answer on May 29, 2026 at 9:10 am

    You need to update $(Source) property before calling the PrepareDropAndPackage target or to change $(Source) property inside that target like this:

    <Target Name="PrepareDropAndPackage" DependsOnTargets="PrepareDrop">
        <PropertyGroup>
            <!-- :)) -->
            <Source>C:\Windows<Source>
        </PropertyGroup>
        <CallTarget Targets="Package">
        <Message Text="Finishes preparing drop and packaging." />
    </Target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ant target that echo's the content of an eclipse .project file,
I have a Grails project that is using Hibernate XML. The Hibernate file are
i have a java ee project which has a text file that uses a
I have a Testing project that contains a csv file which a webtest uses
In my Visual Studio 2010 project I have files with .mm file extension, that
I have a .net interop project that uses an app.config file. When I am
On the project I'm working on, we have a file with svn:needs-lock that's frequently
I have a MS Project file which I am using the Primary Interop Assemblies
I have a (partial) qmake project file like this: TEMPLATE=lib TARGET=whatever SOURCES=whatever.cpp HEADERS=whatever.h This
my searchversion.exe file is not running in the script..why is that so? <project name=nightly_build

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.