I’m trying to start msbuild in prebuild event like this
$(FrameworkDir)$(FrameworkVersion)\msbuild /t:updateuid $(ProjectPath)
But I see that $(FrameworkVersion) gives v2.0.50727.
If I start the VS2010 command line prompt $(FrameworkVersion) gives v4.0.30319.
Why points this environment variable to an old version when in prebuild event?
Is there something wrong with my WPF project (my target framework is 4)?
I remembered having a similar problem. Try the following command instead: