This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Demo | |
| { | |
| using FluentValidation; | |
| using FluentValidation.Internal; | |
| using FluentValidation.Validators; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using StructureMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ConvertTo-CentralPackageManagement() { | |
| Write-Host 'Searching for package references' | |
| $packages = @{} | |
| $conditionalPackages = @{} | |
| foreach ($csproj in (Get-ChildItem -Include *.csproj, *.props -Recurse)) { | |
| $root = [xml]($csproj | Get-Content -Raw) | |
| foreach ($itemGroup in $root.Project.ItemGroup) { | |
| foreach ($packageReference in $itemGroup.PackageReference) { | |
| if ($packageReference.Include -and $packageReference.Version) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Reflection.Emit; | |
| using System.Runtime.CompilerServices; | |
| using System.Threading.Tasks; | |
| #nullable disable | |
| // The stand up link https://www.youtube.com/watch?v=jaPk6Nt33KM | |
| // String vs. string |
OlderNewer