|
31 | 31 | <LibraryRoot>$(MSBuildThisFileDirectory)</LibraryRoot>
|
32 | 32 | <LibrarySourceFolder>$(LibraryRoot)src</LibrarySourceFolder>
|
33 | 33 | <LibraryToolsFolder>$(LibraryRoot)tools</LibraryToolsFolder>
|
| 34 | + <LibraryNugetPackageFolder>$(LibrarySourceFolder)\packages</LibraryNugetPackageFolder> |
34 | 35 | <PublishDirectory>$(LibrarySourceFolder)\Publish</PublishDirectory>
|
35 | 36 | <PackageDirectory>$(LibrarySourceFolder)\Package</PackageDirectory>
|
36 | 37 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
111 | 112 |
|
112 | 113 | <PropertyGroup>
|
113 | 114 | <NuGetCommand>$(MSBuildProjectDirectory)\tools\NuGet.exe</NuGetCommand>
|
114 |
| - <NuGetRestoreConfigFile>$(MSBuildProjectDirectory)\restore.config</NuGetRestoreConfigFile> |
115 |
| - <NuGetRestoreConfigSwitch>-ConfigFile "$(NuGetRestoreConfigFile)"</NuGetRestoreConfigSwitch> |
| 115 | + <NuGetRestoreConfigSwitch>-PackagesDirectory $(LibraryNugetPackageFolder)</NuGetRestoreConfigSwitch> |
116 | 116 | <PowerShellCommand>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellCommand>
|
117 | 117 | </PropertyGroup>
|
118 | 118 |
|
|
127 | 127 | </ItemGroup>
|
128 | 128 | <Delete Files="@(NuGetCache)" />-->
|
129 | 129 |
|
130 |
| - <Delete Files="$(NuGetRestoreConfigFile)" /> |
131 |
| - <WriteLinesToFile |
132 |
| - File="$(NuGetRestoreConfigFile)" |
133 |
| - Lines="<configuration></configuration>" |
134 |
| - Overwrite="true" |
135 |
| - Encoding="Unicode"/> |
136 | 130 |
|
137 |
| - <Exec Command="$(NuGetCommand) sources add -Name LocalFeed -Source "$(MSBuildProjectDirectory)\tools\LocalFeed" $(NuGetRestoreConfigSwitch)"/> |
| 131 | + <!-- <Exec Command="$(NuGetCommand) sources add -Name LocalFeed -Source "$(MSBuildProjectDirectory)\tools\LocalFeed""/> --> |
| 132 | + <!--<Exec Command="$(NuGetCommand) sources add -Name nugetRemote -Source "https://api.nuget.org/v3/index.json" "/> --> |
138 | 133 |
|
139 | 134 | <!-- Restore packages -->
|
140 | 135 | <Exec Command="$(NuGetCommand) restore %(CmdletSolutionsToBuild.FullPath) $(NuGetRestoreConfigSwitch)"
|
|
145 | 140 |
|
146 | 141 | <!--Restore the xunit runner needed to run unit tests-->
|
147 | 142 | <Exec Command="$(NuGetCommand) restore $(MSBuildProjectDirectory)\packages.config -PackagesDirectory $(MSBuildProjectDirectory)\packages" />
|
148 |
| - |
149 |
| - <Delete Files="$(NuGetRestoreConfigFile)" /> |
150 | 143 | </Target>
|
151 | 144 |
|
152 | 145 | <!-- Build all flavors of the Cmdlets -->
|
|
0 commit comments