environmentvariableswithembeddedpropertyreferences

Cancel Edit [WikiEntry.PreviewButtonText] Save

Why don't property references embedded inside environment variables get expanded?


In the Beta 1 release, if you set an environment variable as follows:

set FOO=c:\builds\$(MSBuildProjectName)

""then the value of $(FOO) when referenced within the project file will literally be "c:\builds\$(MSBuildProjectName)". The "$(MSBuildProjectName)" will not get expanded.""

This is because we don't evaluate environment variables at all ... we assume that they don't need to be expanded in any way.
Microsoft Communities