diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-04-10 01:32:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 01:32:08 +0300 |
commit | b5bcec428eefe79d9ce3f36ee02332a0b3447085 (patch) | |
tree | c6342577558e959512be205a372b29b69f761634 /msvc/scripts | |
parent | 8eb6dae51351ba2c7f4a7efc9e369ebd96f63ac4 (diff) |
[ci] Update csproj files during PRs (#8052)
* [ci] Update csproj files during PRs
Similar to how API diff is done.
Replace EXTERNAL_DRAWING_FACADE in csproj in genproj
It'd embed the absolute path in the csproj, but we want the variable instead.
* [csproj] Update project files
Diffstat (limited to 'msvc/scripts')
-rw-r--r-- | msvc/scripts/genproj.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/msvc/scripts/genproj.cs b/msvc/scripts/genproj.cs index 37b83d006e3..741dff4e06e 100644 --- a/msvc/scripts/genproj.cs +++ b/msvc/scripts/genproj.cs @@ -1004,9 +1004,10 @@ class MsbuildGenerator { Console.Error.WriteLine ($"{library}: Could not find a matching project reference for {Path.GetFileName (reference)}"); Console.Error.WriteLine (" --> Adding reference with hintpath instead"); } - refs.Append (" <Reference Include=\"" + reference + "\">" + NewLine); + var externalDrawing = (reference == Environment.GetEnvironmentVariable ("EXTERNAL_FACADE_DRAWING_REFERENCE")); + refs.Append (" <Reference Include=\"" + (externalDrawing ? "$(EXTERNAL_FACADE_DRAWING_REFERENCE)" : reference) + "\">" + NewLine); refs.Append (" <SpecificVersion>False</SpecificVersion>" + NewLine); - refs.Append (" <HintPath>" + reference + "</HintPath>" + NewLine); + refs.Append (" <HintPath>" + (externalDrawing ? "$(EXTERNAL_FACADE_DRAWING_REFERENCE)" : reference) + "</HintPath>" + NewLine); refs.Append (" <Private>False</Private>" + NewLine); refs.Append (" </Reference>" + NewLine); } |