I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or something??
相关问题
- Visual Studio 2019 - error MSB8020: The build tool
- Getting error: File extension specified '.webt
- Using TFS command line tf.exe how can I copy a rep
- TFS Power tools Migrate doesn't actually migra
- Is It possible to build asp.net core project using
相关文章
- Build errors of missing packages in Visual Studio
- Is it possible to do a “destroy history” in TFS?
- Copy different file to output directory for releas
- How do I make a TeamCity build appear in the TFS B
- TFS vs. JIRA/Bamboo/SVN [closed]
- Why doesn't my .tfignore file ignore my packag
- Why doesn't AutogenerateBindingRedirects work
- Is it possible to create a docker container from T
Check out following extension projects. You'll find about 5 different ways to solve your problem.
Sorry, I cannot comment on the latest answer.
The TfsVersion task in the form you provided will only give you the latest changeset number in the
$(SolutionRoot)
.If you have something newer in
$(SolutionRoot)\subdir
, the provided solution will not work, as it will give you the latest from the$(SolutionRoot)
, not from$(SolutionRoot)\subdir
as you would have wanted.I use the
tf changeset /latest /i
and it works fine for me.OK finally I've found a solution. Here's a task that will provide you the latest changeset number and create a property to insert it in an Assembly info build number. The main problem was in the missing TfsLibraryLocation property (without it, it should be pointing to libraries in GAC, but it didn't)
According to a comment on this page you can use the command line
tf changeset /latest /i
but I can't verify that from home.