Skip to content

Commit

Permalink
Fix the pre-build steps to work with console builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bartico6 committed Dec 11, 2017
1 parent 1ebf418 commit a55a178
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,14 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>echo $(ConfigurationName) &gt;&gt; $(TargetDir)\env.config</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Target Name="BeforeBuild">
<WriteLinesToFile File="$(OutputPath)\env.config"
Lines="$(ConfigurationName)" Overwrite="true">
</WriteLinesToFile>
</Target>
</Project>

0 comments on commit a55a178

Please sign in to comment.