|
374 | 374 | <Target Name="BeforeBuild"> |
375 | 375 | </Target> |
376 | 376 | --> |
| 377 | + <UsingTask TaskName="UpdateLoginPage" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> |
| 378 | + <ParameterGroup> |
| 379 | + <ProjectPath Required="true" /> |
| 380 | + </ParameterGroup> |
| 381 | + <Task> |
| 382 | + <Reference Include="System.IO" /> |
| 383 | + <Using Namespace="System.IO" /> |
| 384 | + <Code Type="Fragment" Language="cs"> |
| 385 | + <![CDATA[ |
| 386 | + var fileNames = new[]{ "Login", "Logout" }; |
| 387 | + foreach(var file in fileNames) |
| 388 | + { |
| 389 | + var pagePath = Path.Combine(ProjectPath, String.Format("Apps\\Shell\\Pages\\{0}.aspx", file)); |
| 390 | + if (!File.Exists(pagePath)) |
| 391 | + { |
| 392 | + Log.LogMessage(pagePath + " does not exist.", MessageImportance.High); |
| 393 | + return false; |
| 394 | + } |
| 395 | + var lines = File.ReadAllLines(pagePath); |
| 396 | + // we want to replace the regular page's code behind with our own. |
| 397 | + lines[0] = String.Format("<%@ Page Language=\"C#\" AutoEventWireup=\"true\" Inherits=\"EPiServer.Reference.Commerce.Manager.{0}\" CodeBehind=\"~/{0}.aspx.cs\" %>", file); |
| 398 | + File.WriteAllLines(pagePath, lines); |
| 399 | + } |
| 400 | + |
| 401 | + ]]></Code> |
| 402 | + |
| 403 | + </Task> |
| 404 | + </UsingTask> |
| 405 | + <Target Name="AfterBuild"> |
| 406 | + <UpdateLoginPage ProjectPath="$(ProjectDir)" /> |
| 407 | + </Target> |
377 | 408 | <ItemGroup> |
378 | 409 | <Reference Include="EPiServer.Business.Commerce, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL"> |
379 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\EPiServer.Business.Commerce.dll</HintPath> |
| 410 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\EPiServer.Business.Commerce.dll</HintPath> |
380 | 411 | <Private>True</Private> |
381 | 412 | </Reference> |
382 | 413 | <Reference Include="EPiServer.Commerce.Reporting, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL"> |
383 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\EPiServer.Commerce.Reporting.dll</HintPath> |
| 414 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\EPiServer.Commerce.Reporting.dll</HintPath> |
384 | 415 | <Private>True</Private> |
385 | 416 | </Reference> |
386 | 417 | <Reference Include="EPiServer.Commerce.Internal.Migration, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL"> |
387 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\EPiServer.Commerce.Internal.Migration.dll</HintPath> |
| 418 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\EPiServer.Commerce.Internal.Migration.dll</HintPath> |
388 | 419 | <Private>True</Private> |
389 | 420 | </Reference> |
390 | 421 | <Reference Include="Mediachase.BusinessFoundation, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
391 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.BusinessFoundation.dll</HintPath> |
| 422 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.BusinessFoundation.dll</HintPath> |
392 | 423 | <Private>True</Private> |
393 | 424 | </Reference> |
394 | 425 | <Reference Include="Mediachase.BusinessFoundation.Data, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
395 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.BusinessFoundation.Data.dll</HintPath> |
| 426 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.BusinessFoundation.Data.dll</HintPath> |
396 | 427 | <Private>True</Private> |
397 | 428 | </Reference> |
398 | 429 | <Reference Include="Mediachase.Commerce, Culture=neutral, PublicKeyToken=6e58b501b34abce3, processorArchitecture=MSIL"> |
399 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.dll</HintPath> |
| 430 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.dll</HintPath> |
400 | 431 | <Private>True</Private> |
401 | 432 | </Reference> |
402 | 433 | <Reference Include="Mediachase.Commerce.Marketing.Validators, Culture=neutral, processorArchitecture=MSIL"> |
403 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.Marketing.Validators.dll</HintPath> |
| 434 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.Marketing.Validators.dll</HintPath> |
404 | 435 | <Private>True</Private> |
405 | 436 | </Reference> |
406 | 437 | <Reference Include="Mediachase.Commerce.Plugins.Payment, Culture=neutral, processorArchitecture=MSIL"> |
407 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.Plugins.Payment.dll</HintPath> |
| 438 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.Plugins.Payment.dll</HintPath> |
408 | 439 | <Private>True</Private> |
409 | 440 | </Reference> |
410 | 441 | <Reference Include="Mediachase.Commerce.Plugins.Shipping, Culture=neutral, processorArchitecture=MSIL"> |
411 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.Plugins.Shipping.dll</HintPath> |
| 442 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.Plugins.Shipping.dll</HintPath> |
412 | 443 | <Private>True</Private> |
413 | 444 | </Reference> |
414 | 445 | <Reference Include="Mediachase.Commerce.Website, Culture=neutral, PublicKeyToken=6e58b501b34abce3, processorArchitecture=MSIL"> |
415 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.Website.dll</HintPath> |
| 446 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.Website.dll</HintPath> |
416 | 447 | <Private>True</Private> |
417 | 448 | </Reference> |
418 | 449 | <Reference Include="Mediachase.Commerce.Workflow, Culture=neutral, processorArchitecture=MSIL"> |
419 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Commerce.Workflow.dll</HintPath> |
| 450 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Commerce.Workflow.dll</HintPath> |
420 | 451 | <Private>True</Private> |
421 | 452 | </Reference> |
422 | 453 | <Reference Include="Mediachase.DataProvider, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
423 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.DataProvider.dll</HintPath> |
| 454 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.DataProvider.dll</HintPath> |
424 | 455 | <Private>True</Private> |
425 | 456 | </Reference> |
426 | 457 | <Reference Include="Mediachase.FileUploader, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
427 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.FileUploader.dll</HintPath> |
| 458 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.FileUploader.dll</HintPath> |
428 | 459 | <Private>True</Private> |
429 | 460 | </Reference> |
430 | 461 | <Reference Include="Mediachase.MetaDataPlus, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
431 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.MetaDataPlus.dll</HintPath> |
| 462 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.MetaDataPlus.dll</HintPath> |
432 | 463 | <Private>True</Private> |
433 | 464 | </Reference> |
434 | 465 | <Reference Include="Mediachase.Search, Culture=neutral, PublicKeyToken=6e58b501b34abce3, processorArchitecture=MSIL"> |
435 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Search.dll</HintPath> |
| 466 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Search.dll</HintPath> |
436 | 467 | <Private>True</Private> |
437 | 468 | </Reference> |
438 | 469 | <Reference Include="Mediachase.Search.Extensions, Culture=neutral, PublicKeyToken=6e58b501b34abce3, processorArchitecture=MSIL"> |
439 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Search.Extensions.dll</HintPath> |
| 470 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Search.Extensions.dll</HintPath> |
440 | 471 | <Private>True</Private> |
441 | 472 | </Reference> |
442 | 473 | <Reference Include="Mediachase.Search.LuceneSearchProvider, Culture=neutral, processorArchitecture=MSIL"> |
443 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.Search.LuceneSearchProvider.dll</HintPath> |
| 474 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.Search.LuceneSearchProvider.dll</HintPath> |
444 | 475 | <Private>True</Private> |
445 | 476 | </Reference> |
446 | 477 | <Reference Include="Mediachase.SqlDataProvider, Culture=neutral, PublicKeyToken=41d2e7a615ba286c, processorArchitecture=MSIL"> |
447 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.SqlDataProvider.dll</HintPath> |
| 478 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.SqlDataProvider.dll</HintPath> |
448 | 479 | <Private>True</Private> |
449 | 480 | </Reference> |
450 | 481 | <Reference Include="Mediachase.WebConsoleLib, Culture=neutral, processorArchitecture=MSIL"> |
451 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\Mediachase.WebConsoleLib.dll</HintPath> |
| 482 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\Mediachase.WebConsoleLib.dll</HintPath> |
452 | 483 | <Private>True</Private> |
453 | 484 | </Reference> |
454 | 485 | <Reference Include="Mediachase.ConsoleManager, Culture=neutral, processorArchitecture=MSIL"> |
455 | | - <HintPath>..\..\packages\EPiServer.CommerceManager.13.11.0\lib\net461\Mediachase.ConsoleManager.dll</HintPath> |
| 486 | + <HintPath>..\..\packages\EPiServer.CommerceManager.13.12.0\lib\net461\Mediachase.ConsoleManager.dll</HintPath> |
456 | 487 | <Private>True</Private> |
457 | 488 | </Reference> |
458 | 489 | <Reference Include="AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL"> |
459 | | - <HintPath>..\..\packages\EPiServer.Commerce.Core.13.11.0\lib\net461\AjaxControlToolkit.dll</HintPath> |
| 490 | + <HintPath>..\..\packages\EPiServer.Commerce.Core.13.12.0\lib\net461\AjaxControlToolkit.dll</HintPath> |
460 | 491 | <Private>True</Private> |
461 | 492 | </Reference> |
462 | 493 | <Reference Include="ComponentArt.Web.UI, Version=2012.1.1016.35, Culture=neutral, PublicKeyToken=8fe83dea738b45b7, processorArchitecture=MSIL"> |
463 | | - <HintPath>..\..\packages\EPiServer.CommerceManager.13.11.0\lib\net461\ComponentArt.Web.UI.dll</HintPath> |
| 494 | + <HintPath>..\..\packages\EPiServer.CommerceManager.13.12.0\lib\net461\ComponentArt.Web.UI.dll</HintPath> |
464 | 495 | <Private>True</Private> |
465 | 496 | </Reference> |
466 | 497 | <Reference Include="RssToolkit, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
467 | | - <HintPath>..\..\packages\EPiServer.CommerceManager.13.11.0\lib\net461\RssToolkit.dll</HintPath> |
| 498 | + <HintPath>..\..\packages\EPiServer.CommerceManager.13.12.0\lib\net461\RssToolkit.dll</HintPath> |
468 | 499 | <Private>True</Private> |
469 | 500 | </Reference> |
470 | 501 | <Reference Include="Validators, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> |
471 | | - <HintPath>..\..\packages\EPiServer.CommerceManager.13.11.0\lib\net461\Validators.dll</HintPath> |
| 502 | + <HintPath>..\..\packages\EPiServer.CommerceManager.13.12.0\lib\net461\Validators.dll</HintPath> |
472 | 503 | <Private>True</Private> |
473 | 504 | </Reference> |
474 | 505 | </ItemGroup> |
475 | | - <Import Project="..\..\packages\EPiServer.CommerceManager.13.11.0\build\EPiServer.CommerceManager.targets" |
476 | | - Condition="Exists('..\..\packages\EPiServer.CommerceManager.13.11.0\build\EPiServer.CommerceManager.targets')"/> |
| 506 | + <Import Project="..\..\packages\EPiServer.CommerceManager.13.12.0\build\EPiServer.CommerceManager.targets" |
| 507 | + Condition="Exists('..\..\packages\EPiServer.CommerceManager.13.12.0\build\EPiServer.CommerceManager.targets')"/> |
477 | 508 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
478 | 509 | <PropertyGroup> |
479 | 510 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
480 | 511 | </PropertyGroup> |
481 | | - <Error Condition="!Exists('..\..\packages\EPiServer.CommerceManager.13.11.0\build\EPiServer.CommerceManager.targets')" |
482 | | - Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\EPiServer.CommerceManager.13.11.0\build\EPiServer.CommerceManager.targets'))"/> |
| 512 | + <Error Condition="!Exists('..\..\packages\EPiServer.CommerceManager.13.12.0\build\EPiServer.CommerceManager.targets')" |
| 513 | + Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\EPiServer.CommerceManager.13.12.0\build\EPiServer.CommerceManager.targets'))"/> |
483 | 514 | </Target> |
484 | 515 | </Project> |
0 commit comments