-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Build.msbuildproj
22 lines (22 loc) · 1.53 KB
/
Build.msbuildproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.</SolutionDir>
<ProjectDir>$(SolutionDir)\src\ReSharper.ReJS</ProjectDir>
<PackageOutputDir>$(ProjectDir)\bin\$(Configuration)</PackageOutputDir>
</PropertyGroup>
<Target Name="All" DependsOnTargets="Build;NuGetPack" />
<Target Name="Build" DependsOnTargets="RestorePackages">
<MSBuild Projects="ReSharper.ReJS.sln" Properties="Configuration=$(Configuration)"/>
</Target>
<Target Name="NuGetPack">
<Exec Command="$(NuGetExePath) pack $(ProjectDir)\ReSharper.ReJS.nuspec -Properties "Configuration=$(Configuration)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)"" />
<Exec Command="$(NuGetExePath) pack $(ProjectDir)\ReSharper.ReJS.R90.nuspec -Properties "Configuration=$(Configuration)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)"" />
<Exec Command="$(NuGetExePath) pack $(ProjectDir)\ReSharper.ReJS.R91.nuspec -Properties "Configuration=$(Configuration)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)"" />
</Target>
<Target Name="RestorePackages">
<Exec Command="$(NuGetExePath) restore"/>
</Target>
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" />
</Project>