Skip to content

Commit fbd44fd

Browse files
committed
UnitsNet.Net35: Add pre-build step to regenerate code
Ideally this was a solution-wide pre-build step, but only way to achieve that is to add a new project and let the others depend on it, but seems a bit overkill. If you edit the source code (shared among the core projects), then the Net35 project will rebuild when you build the solution.
1 parent 8ee7c15 commit fbd44fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UnitsNet/UnitsNet.Net35.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
4949
</ItemGroup>
5050
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
51+
<PropertyGroup>
52+
<PreBuildEvent>call $(ProjectDir)..\GenerateUnits.bat</PreBuildEvent>
53+
</PropertyGroup>
5154
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5255
Other similar extension points exist, see Microsoft.Common.targets.
5356
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)