$(PrepareForBuildDependsOn); __SetVersionResource <_ResourceFileType Condition=" '$(ConfigurationType)'=='Application' ">VFT_APP <_ResourceFileType Condition=" '$(ConfigurationType)'=='DynamicLibrary' ">VFT_DLL 0x0409 $(TargetName) $(Description) %(PreprocessorDefinitions); SOMEVER_FILE_TYPE=$(_ResourceFileType); SOMEVER_CODEPAGE=0; SOMEVER_LCID=$([System.Convert]::ToInt32('$(Lcid)', 16)); SOMEVER_VERSION_BLOCK=$([System.Convert]::ToString($([MSBuild]::Multiply($([System.Convert]::ToUint64('$(Lcid)', 16)), 65536)), 16).PadLeft(8, '0')); SOMEVER_COMPANY=$(Company); SOMEVER_COPYRIGHT=$(Copyright); SOMEVER_TITLE=$(Title); SOMEVER_PRODUCT=$(Product); SOMEVER_INTERNAL_NAME=$(TargetName); SOMEVER_FILE_NAME=$(TargetFileName);