SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a basic site site definition I am attempting to provision with a custom SPWebProvisioningProvider. I have the following attributes set in the webtemp xml file

ProvisionAssembly="{assembly name}, Version={version number}, Culture=neutral, PublicKeyToken={public key token}"

This is using the VS2010 site template project, with the custom provisioning provider defined in the same assembly as the site definition xml files. I can move it to another assembly (and did for a while), but it doesn't seem warranted in this case.

Everything works fine when I put actual values for what I have in {}, but with the version number of the assembly auto revisioning the version number is different each build.

Is there a way to pull the version number from the assembly and auto-populate it in the webtemp xml file?

share|improve this question
up vote 1 down vote accepted

try Visual Studio 2010 Replaceable Parameters:

share|improve this answer
That worked great -- thanks. – David Culp Sep 8 '10 at 18:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.