You can set the value of property in the following manner pass the value in proj/targets file inside PropertyGroup tag pass the value in the msbuild command line using /p switch pass the value of the property in rsp file using /property switch pass the