diff --git a/build/Common.Native.targets b/build/Common.Native.targets new file mode 100644 index 0000000000..e4d7a67ec4 --- /dev/null +++ b/build/Common.Native.targets @@ -0,0 +1,23 @@ + + + + + 0.0.0 + 0 + $(ProductVersion).$(FileRevision) + -$(BuildVersion) + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/build/_k-standard-goals.shade b/build/_k-standard-goals.shade index fb65af238c..5dd1943212 100644 --- a/build/_k-standard-goals.shade +++ b/build/_k-standard-goals.shade @@ -104,10 +104,16 @@ default Configuration='${E("Configuration")}' var msbuildPath = Path.Combine(programFilesX86, "MSBuild", msbuildVersions[i], "Bin", "MSBuild.exe"); if (File.Exists(msbuildPath)) { + var commonParameters = + " /p:Configuration=" + Configuration + + " /p:ProductVersion=1.0.0" + + " /p:FileRevision=" + E("DNX_ASSEMBLY_FILE_VERSION") + + " /p:BuildVersion=" + E("DNX_BUILD_VERSION"); + foreach (var project in nativeProjects) { - Exec(msbuildPath, project + " /p:Configuration=" + Configuration + ";Platform=Win32"); - Exec(msbuildPath, project + " /p:Configuration=" + Configuration + ";Platform=x64"); + Exec(msbuildPath, project + " /p:Configuration=Platform=Win32" + commonParameters); + Exec(msbuildPath, project + " /p:Configuration=Platform=x64" + commonParameters); } break;