Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: Incremental Version

$
0
0

Hello,

I am using auto incremental version simply by using the following:

  <Import Project="C:\Dev\ExtensionPack\MSBuild.ExtensionPack.VersionNumber.targets"/>

It is working fine. But then I have the following:

  <Target Name="AfterBuild">
    <ItemGroup>
      <Package Include="$(OutputPath)\$(ProjectName).1.0.nupkg" />
    </ItemGroup>
    <Copy SourceFiles="@(Package)" DestinationFolder="C:\Dev\Packages" />
  </Target>

I am creating a Nuget Package using Nuget Power Tools.

But how can I "access" the generated version number so I can use, instead of 1.0, in the file name:

<Package Include="$(OutputPath)\$(ProjectName).1.0.nupkg" />

Thank You,

Miguel


Viewing all articles
Browse latest Browse all 1211

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>