VersionNumber
must be defined as a property in the project file:
<PropertyGroup>
<!-- properties -->
<VersionNumber Condition="'$(VersionNumber)' == ''">1.0.0.0</VersionNumber>
</PropertyGroup>
Then the command must set the same property:
msbuild your.csproj /property:VersionNumber=%1