Skip to content

Commit b6e06ee

Browse files
author
Vlad Cananau
committed
change build.proj to add LocalFeed (as in build branch)
1 parent 10f61e4 commit b6e06ee

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

build.proj

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,25 @@
8888
<NuGetCache Include="$(LOCALAPPDATA)\NuGet\Cache\*.nupkg"/>
8989
</ItemGroup>
9090

91-
<!-- Delete NuGet cache-->
91+
<!-- Delete NuGet cache-->
9292
<Delete Files="@(NuGetCache)" />
93+
94+
<Delete Files="$(NuGetRestoreConfigFile)" />
95+
<WriteLinesToFile
96+
File="$(NuGetRestoreConfigFile)"
97+
Lines="&lt;configuration&gt;&lt;/configuration&gt;"
98+
Overwrite="true"
99+
Encoding="Unicode"/>
100+
101+
<Exec Command="$(NuGetCommand) sources add -Name LocalFeed -Source &quot;$(MSBuildProjectDirectory)\tools\LocalFeed&quot; $(NuGetRestoreConfigSwitch)"/>
93102

94103
<!-- Restore packages -->
95-
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\AzurePowerShell.sln" ContinueOnError="false" />
104+
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\src\AzurePowerShell.sln $(NuGetRestoreConfigSwitch)" ContinueOnError="false" />
96105

97106
<!--Restore the xunit runner needed to run unit tests-->
98107
<Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" />
108+
109+
<Delete Files="$(NuGetRestoreConfigFile)" />
99110
</Target>
100111

101112
<!-- Build all flavors of the Cmdlets -->

0 commit comments

Comments
 (0)