From f0c11d8fbb008cfe7ae820d5abd2b5119ac6e1a7 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 31 Oct 2023 01:39:58 +0000 Subject: [PATCH 1/2] Document that Solution variables are only available sometimes You can only use Solution variables if you pass a .sln file to msbuild and not if you build an individual project in the solution --- src/Docusaurus/docs/tools/msbuild.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Docusaurus/docs/tools/msbuild.md b/src/Docusaurus/docs/tools/msbuild.md index c04478a7..259d8030 100644 --- a/src/Docusaurus/docs/tools/msbuild.md +++ b/src/Docusaurus/docs/tools/msbuild.md @@ -100,6 +100,11 @@ The WiX MSBuild targets create a number of preprocessor variables for each refer | _ProjectName_.TargetName | $(MyProject.TargetName) | MyProject | | _ProjectName_.TargetPath | $(MyProject.TargetPath) | C:\source\repos\ConsoleApp42\bin\Release\MyProject.exe | | _ProjectName_.Culture.TargetPath | $(MyProject.en-US.TargetPath) | C:\source\repos\ConsoleApp42\bin\Release\en-US\MyProject.msi | + +The above variables are always available. The below variables are only available if you pass a `.sln` file to msbuild. + +| Variable | Example | Example value | +| -------- | ------- | ------------- | | SolutionDir | $(SolutionDir) | C:\source\repos\MySolution\ | | SolutionExt | $(SolutionExt) | .sln | | SolutionFileName | $(SolutionFileName) | MySolution.sln | From ae96b4b96e2e1eea686a17a1a8de49d49c8d7f69 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 31 Oct 2023 01:41:08 +0000 Subject: [PATCH 2/2] Update msbuild.md --- src/Docusaurus/docs/tools/msbuild.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Docusaurus/docs/tools/msbuild.md b/src/Docusaurus/docs/tools/msbuild.md index 259d8030..42bdb086 100644 --- a/src/Docusaurus/docs/tools/msbuild.md +++ b/src/Docusaurus/docs/tools/msbuild.md @@ -101,7 +101,7 @@ The WiX MSBuild targets create a number of preprocessor variables for each refer | _ProjectName_.TargetPath | $(MyProject.TargetPath) | C:\source\repos\ConsoleApp42\bin\Release\MyProject.exe | | _ProjectName_.Culture.TargetPath | $(MyProject.en-US.TargetPath) | C:\source\repos\ConsoleApp42\bin\Release\en-US\MyProject.msi | -The above variables are always available. The below variables are only available if you pass a `.sln` file to msbuild. +The above variables are always available. The below variables are only available if you pass a `.sln` file to msbuild, but not if you build an individual project in the solution. | Variable | Example | Example value | | -------- | ------- | ------------- |