|
133 | 133 | -- NoCopyLocal flag has been set for the configuration. |
134 | 134 | -- |
135 | 135 |
|
136 | | - function suite.markedPrivate_onNoCopyLocal() |
| 136 | + function suite.markedPrivate_onNoCopyLocal_ViaFlag() |
137 | 137 | links { "../Libraries/nunit.framework" } |
138 | 138 | flags { "NoCopyLocal" } |
139 | 139 | prepare() |
|
153 | 153 | ]] |
154 | 154 | end |
155 | 155 |
|
| 156 | + function suite.markedPrivate_onNoCopyLocal_ViaAPI() |
| 157 | + links { "../Libraries/nunit.framework" } |
| 158 | + allowcopylocal "Off" |
| 159 | + prepare() |
| 160 | + test.capture [[ |
| 161 | + <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
| 162 | + <Reference Include="nunit.framework"> |
| 163 | + <HintPath>..\Libraries\nunit.framework.dll</HintPath> |
| 164 | + <Private>False</Private> |
| 165 | + </Reference> |
| 166 | + </ItemGroup> |
| 167 | + <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
| 168 | + <Reference Include="nunit.framework"> |
| 169 | + <HintPath>..\Libraries\nunit.framework.dll</HintPath> |
| 170 | + <Private>False</Private> |
| 171 | + </Reference> |
| 172 | + </ItemGroup> |
| 173 | + ]] |
| 174 | + end |
| 175 | + |
156 | 176 |
|
157 | 177 | -- |
158 | 178 | -- If there are entries in the copylocal() list, then only those |
|
286 | 306 | -- |
287 | 307 |
|
288 | 308 | if http ~= nil and _OPTIONS["test-all"] then |
289 | | - function suite.nugetPackages_onNoCopyLocal() |
| 309 | + function suite.nugetPackages_onNoCopyLocal_ViaFlag() |
290 | 310 | dotnetframework "2.0" |
291 | 311 | nuget { "NUnit:3.6.1" } |
292 | 312 | flags { "NoCopyLocal" } |
@@ -315,6 +335,35 @@ if http ~= nil and _OPTIONS["test-all"] then |
315 | 335 | ]] |
316 | 336 | end |
317 | 337 |
|
| 338 | + function suite.nugetPackages_onNoCopyLocal_ViaAPI() |
| 339 | + dotnetframework "2.0" |
| 340 | + nuget { "NUnit:3.6.1" } |
| 341 | + allowcopylocal "Off" |
| 342 | + prepare() |
| 343 | + test.capture [[ |
| 344 | + <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
| 345 | + <Reference Include="nunit.framework"> |
| 346 | + <HintPath>packages\NUnit.3.6.1\lib\net20\nunit.framework.dll</HintPath> |
| 347 | + <Private>False</Private> |
| 348 | + </Reference> |
| 349 | + <Reference Include="NUnit.System.Linq"> |
| 350 | + <HintPath>packages\NUnit.3.6.1\lib\net20\NUnit.System.Linq.dll</HintPath> |
| 351 | + <Private>False</Private> |
| 352 | + </Reference> |
| 353 | + </ItemGroup> |
| 354 | + <ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
| 355 | + <Reference Include="nunit.framework"> |
| 356 | + <HintPath>packages\NUnit.3.6.1\lib\net20\nunit.framework.dll</HintPath> |
| 357 | + <Private>False</Private> |
| 358 | + </Reference> |
| 359 | + <Reference Include="NUnit.System.Linq"> |
| 360 | + <HintPath>packages\NUnit.3.6.1\lib\net20\NUnit.System.Linq.dll</HintPath> |
| 361 | + <Private>False</Private> |
| 362 | + </Reference> |
| 363 | + </ItemGroup> |
| 364 | + ]] |
| 365 | + end |
| 366 | + |
318 | 367 | function suite.nugetPackages_onCopyLocalListExclusion() |
319 | 368 | dotnetframework "2.0" |
320 | 369 | nuget { "NUnit:3.6.1" } |
|
0 commit comments