Skip to content

Commit 187f933

Browse files
author
Jake Ginnivan
committed
Setup solution level package restore before running tests
1 parent b2b665c commit 187f933

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.nuget/NuGet.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
55

66
<!-- Enable the restore command to run before builds -->
7-
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
7+
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages>
88

99
<!-- Property that enables building a package from a project -->
1010
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>

TestStack.BDDfy.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
<ItemGroup>
102102
<NUnitAddinFiles Include="$(teamcity_dotnet_nunitaddin)-2.6.2.*" />
103103
</ItemGroup>
104-
104+
105+
<Exec Command="$(MSBuildProjectDirectory)\.nuget\nuget.exe install &quot;$(MSBuildProjectDirectory)\.nuget\packages.config&quot; -o &quot;$(MSBuildProjectDirectory)\packages&quot;" />
105106
<MakeDir Directories="$(NUnitHome)addins" />
106107
<Copy SourceFiles="@(NUnitAddinFiles)" DestinationFolder="$(NUnitHome)addins" />
107108

0 commit comments

Comments
 (0)