-
Notifications
You must be signed in to change notification settings - Fork 0
/
after.Release-Tools.sln.targets
27 lines (23 loc) · 1.18 KB
/
after.Release-Tools.sln.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!--?xml version="1.0" encoding="utf-8"?-->
<Project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
<Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration>
<NuGetExe Condition=" '$(NuGetExe)'=='' ">NuGet.exe</NuGetExe>
<NuGetCommand Condition=" '$(NuGetCommand)'=='' AND '$(OS)' == 'Windows_NT'">"$(NuGetExe)"</NuGetCommand>
<NuGetCommand Condition=" '$(NuGetCommand)'=='' AND '$(OS)' != 'Windows_NT' ">mono "$(NuGetExe)"</NuGetCommand>
</PropertyGroup>
<Target Name="GenerateCode" BeforeTargets="Build">
<Exec Command="$(NuGetCommand) restore WPILib\robotdotnet-wpilib.sln"/>
<Exec Command="$(NuGetCommand) restore NetworkTablesCore\NetworkTablesCore.sln"/>
<MSBuild
Projects="WPILib\robotdotnet-wpilib.sln" Properties="Configuration=Release"
/>
<MSBuild
Projects="NetworkTablesCore\NetworkTablesCore.sln" Properties="Configuration=Release"
/>
</Target>
<Target Name="RunCodeAnalysis" AfterTargets="Build">
<Message text="GenerateCode target running" importance="high"></Message>
</Target>
</Project>