Skip to content

Commit

Permalink
Fix Build Issues for TFS Build
Browse files Browse the repository at this point in the history
  • Loading branch information
LianwMS committed Jan 31, 2015
1 parent f9e031d commit 6eb6a52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OData/WebApiOData.msbuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<TestResultsDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\test\TestResults\</TestResultsDirectory>
<SkipStrongNamesExe>$(MSBuildThisFileDirectory)packages\Microsoft.Web.SkipStrongNames.1.0.0\tools\SkipStrongNames.exe</SkipStrongNamesExe>
<SkipStrongNamesXml>$(MSBuildThisFileDirectory)tools\SkipStrongNames.xml</SkipStrongNamesXml>
<NuGetExe>$(MSBuildThisFileDirectory).nuget\NuGet.exe</NuGetExe>
<NuGetExeFile>$(MSBuildThisFileDirectory).nuget\NuGet.exe</NuGetExeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -51,16 +51,16 @@
</Target>

<Target Name="DownloadNuGet">
<DownloadNuGet OutputFileName="$(NuGetExe)" MinimumVersion="2.7.0" />
<DownloadNuGet OutputFileName="$(NuGetExeFile)" MinimumVersion="2.7.0" />
</Target>

<Target Name="RestoreSkipStrongNames" DependsOnTargets="DownloadNuGet">
<Exec Command='"$(NuGetExe)" restore .nuget\packages.config -PackagesDirectory packages -NonInteractive -Verbosity quiet -ConfigFile .nuget\NuGet.Config' />
<Exec Command='"$(NuGetExeFile)" restore .nuget\packages.config -PackagesDirectory packages -NonInteractive -Verbosity quiet -ConfigFile .nuget\NuGet.Config' />
</Target>

<Target Name="RestorePackages" DependsOnTargets="DownloadNuGet">
<Message Text="Restoring NuGet packages..." Importance="High" />
<Exec Command='"$(NuGetExe)" restore "%(SolutionsToBuild.Identity)" -PackagesDirectory packages -NonInteractive -Verbosity quiet -ConfigFile "$(MsBuildThisFileDirectory)\.nuget\NuGet.Config"' />
<Exec Command='"$(NuGetExeFile)" restore "%(SolutionsToBuild.Identity)" -PackagesDirectory packages -NonInteractive -Verbosity quiet -ConfigFile "$(MsBuildThisFileDirectory)\.nuget\NuGet.Config"' />
<!-- Pick the right Microsoft.Web.FxCop package to use and copy it to a standard location. -->
</Target>

Expand Down

0 comments on commit 6eb6a52

Please sign in to comment.