File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 88
88
<NuGetCache Include =" $(LOCALAPPDATA)\NuGet\Cache\*.nupkg" />
89
89
</ItemGroup >
90
90
91
- <!-- Delete NuGet cache-->
91
+ <!-- Delete NuGet cache-->
92
92
<Delete Files =" @(NuGetCache)" />
93
+
94
+ <Delete Files =" $(NuGetRestoreConfigFile)" />
95
+ <WriteLinesToFile
96
+ File =" $(NuGetRestoreConfigFile)"
97
+ Lines =" < configuration>< /configuration> "
98
+ Overwrite =" true"
99
+ Encoding =" Unicode" />
100
+
101
+ <Exec Command =" $(NuGetCommand) sources add -Name LocalFeed -Source " $(MSBuildProjectDirectory)\tools\LocalFeed" $(NuGetRestoreConfigSwitch)" />
93
102
94
103
<!-- 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" />
96
105
97
106
<!-- Restore the xunit runner needed to run unit tests-->
98
107
<Exec Command =" $(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" />
108
+
109
+ <Delete Files =" $(NuGetRestoreConfigFile)" />
99
110
</Target >
100
111
101
112
<!-- Build all flavors of the Cmdlets -->
You can’t perform that action at this time.
0 commit comments