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

  • SEARCH
  • Home
  • 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 7979771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:51:51+00:00 2026-06-04T09:51:51+00:00

I am trying to create/push nuget package through visual studio build process as explained

  • 0

I am trying to create/push nuget package through visual studio build process as explained here.

Building package is easy:

<Exec WorkingDirectory="$(ProjectDir)" Command="$(NuGetApp) pack $(ProjectFile) -OutputDirectory $(Deploy) -Verbose -Prop Configuration=Release"/>

I see .nupkg file in $(Deploy) folder.

But to be able to push it, I need $(AssemblyVersion) to use it in :

<Exec Command="$(NuGetApp) push $(ProjectName)$(AssemblyVersion) -s $(NugetServer) $(NugetKey)" />

I tried XMLRead to fetch the value, but value in NugetSpecFile is “$version$” instead of version from AssemblyInfo.cs.

<XmlRead XPath="/package/metadata/version" XmlFileName="$(NuSpecFile)">
      <Output TaskParameter="Value" PropertyName="AssemblyVersion" />
    </XmlRead>

How do I access version so I could use it in “nuget push”?

  • 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-04T09:51:53+00:00Added an answer on June 4, 2026 at 9:51 am

    This i’ll do it:

    <PropertyGroup>
        <MyAssemblies>somedll\the.dll</MyAssemblies>
      </PropertyGroup>
    
     <Target Name="RetrieveIdentities">
        <GetAssemblyIdentity
            AssemblyFiles="$(MyAssemblies)">
          <Output
              TaskParameter="Assemblies"
              ItemName="MyAssemblyIdentities"/>
        </GetAssemblyIdentity>
    
        <Message Text="Files: %(MyAssemblyIdentities.Version)"/>
      </Target>
    

    Altered from here:
    MSBuild Task to read version of dll

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

Sidebar

Related Questions

I'm trying to create a AJAX push implementation in PHP using a Comet long-polling
I am trying to create the subroutine mypush with similar functionality of inbuilt push
Ok so I am trying create a login script, here I am using PHP5
I am trying to create plot some push pins on map using GeoCoordinate as
I'm trying to create an event through the API and it is mostly working,
I'm trying to create a dragable push pin. However when I do this all
I am trying to create a new report using the PUSH MODEL to supply
Now I've been trying to create a similar functionality as there is in Push-To-Talk
I'm trying to create a push-on-push-off-like button with custom images in Xcode4 for iOS.
I'm trying to create an array, assign it to a div-element, push() a value

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.