diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-07-18 22:58:31 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-07-18 22:58:44 +0300 |
commit | 2f5bfcd48cedaa0b154b56f8b53f7bd87d5e21ad (patch) | |
tree | aa2a92904eaa1749a3893b8c2063f4966aa16f3f /msvc | |
parent | 777b956a35c4d59c0169d957bd1a5f3f4742e33f (diff) |
[genconsts] Fix PostBuildEvent
The Microsoft.CSharp.targets import needs to come before the PostBuildEvent,
otherwise TargetPath won't be set.
Diffstat (limited to 'msvc')
-rwxr-xr-x | msvc/scripts/genconsts.csproj | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/msvc/scripts/genconsts.csproj b/msvc/scripts/genconsts.csproj index fa523495fff..a13108547e7 100755 --- a/msvc/scripts/genconsts.csproj +++ b/msvc/scripts/genconsts.csproj @@ -12,10 +12,12 @@ <OutputPath>.\</OutputPath>
<ProjectGuid>{702AE2C0-71DD-4112-9A06-E4FABCA59986}</ProjectGuid>
<RunPostBuildEvent>Always</RunPostBuildEvent>
+ </PropertyGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
<PostBuildEvent>cd $(MSBuildProjectDirectory)
$(TargetPath)</PostBuildEvent>
</PropertyGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="genconsts.cs" />
<Reference Include="System" />
|