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
# This script updates all .csproj-files from .NET 8 to .NET 9. It updates TargetFramework and | |
# all Microsoft- and System-packages. | |
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files, | |
# including in subdirectories, will be converted. | |
$configFiles = Get-ChildItem -Path . -Recurse | Where-Object { $_.Name -match '\.csproj$|^Directory\.Packages\.props$' } | |
foreach ($file in $configFiles) | |
{ |
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
# This script updates all .csproj-files from .NET 7 to .NET 8. It updates TargetFramework and | |
# all Microsoft- and System-packages. | |
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files, | |
# including in subdirectories, will be converted. | |
$configFiles = Get-ChildItem . *.csproj -rec | |
foreach ($file in $configFiles) | |
{ |
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
# This script updates all .csproj-files from .NET 6 to .NET 7. It updates TargetFramework and | |
# all Microsoft- and System-packages. | |
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files, | |
# including in subdirectories, will be converted. | |
$configFiles = Get-ChildItem . *.csproj -rec | |
foreach ($file in $configFiles) | |
{ |
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
# This script updates all .csproj-files from .NET 5 to .NET 6 preview. It updates TargetFramework and | |
# all Microsoft- and System-packages. | |
# Put this script in the folder that contains the .csproj-files and then run it. All .csproj-files, | |
# including in subdirectories, will be converted. | |
$configFiles = Get-ChildItem . *.csproj -rec | |
foreach ($file in $configFiles) | |
{ |