Comments (1)
Hi again,
I found the solution is a little tricky but works.
In the nuproj
file i add the target that deal with metadata before Build
.
<Target Name="Version" BeforeTargets="BeforeBuild">
<ItemGroup>
<NuPrepared>
<NuPackageVersion>$(Version)</NuPackageVersion>
<NuPackagePath>$(MSBuildProjectDirectory)\$(OutputPath)%(NuPrepared.Filename).$(Version).nupkg</NuPackagePath>
</NuPrepared>
</ItemGroup>
</Target>
Where Version
property is generated before this target.
This ware possible because of separation of tasks Prepare and Package.
I leave the issue opened, may other have something to add. If its OK to do such things (in terms of support in the feature) it could be closed.
from nubuild.
Related Issues (20)
- Net3.5- and Win8.1-Assemblies are not moved to subfolder HOT 2
- MSBUILD on TFS throws Null-Ref-Exception HOT 2
- (v2.x) Create upgrade path from v1.x to v2.x
- Cleaning a NuBuild project builds its dependencies HOT 3
- Change encoding of .nuspec file to UTF-8
- VS2013 (PCL project); "The replacement token 'XX' has no value" HOT 1
- Add support for XML doc file
- Build tries to recompile source from referenced projects
- Items marked as content are not added to the nuget package
- Can't add Linked files to nuget package? HOT 1
- Question: Executing nuget package build on specific VS configuration only
- NuBuild in Visual Studio 2015 preview HOT 11
- A schema definition for NuGet specifications suitable for use with Visual Studio's IntelliSense.
- Merge with NuProj HOT 2
- Vs2015 support HOT 7
- Multiple packages on same solution HOT 2
- Directly add nuget.org package references? HOT 1
- Request VSIX install and not an MSI HOT 1
- Nubuild in VS 2010 - Why is it looking into "obj\Debug\..."? The artifacts for the Schema project are generated into "bin\Debug\..."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nubuild.