Skip to content

Commit a8f46b1

Browse files
committed
added netcore as target, updated devtools, updated version
1 parent 6bfbbf6 commit a8f46b1

File tree

7 files changed

+34
-36
lines changed

7 files changed

+34
-36
lines changed

AdvancedDataGridView.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30804.86
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35527.113 d17.12
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdvancedDataGridView", "AdvancedDataGridView\AdvancedDataGridView.csproj", "{6EBA0A55-B390-4479-A564-58D46094998D}"
77
EndProject
28 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ About
1010

1111
## Requirements
1212

13-
* Microsoft Windows with .NET Framework 4, .NET Core 5 or later
13+
* Microsoft Windows with .NET Framework 4, .NET Core 3.1, .NET 5 or later
1414

1515
## FAQ
1616

_DevTools/App.config

Lines changed: 0 additions & 20 deletions
This file was deleted.

_DevTools/AutoBuilder.config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $solutionName = "AdvancedDataGridView"
66
$versionMajor = "1"
77
$versionMinor = "2"
88
$versionBuild = GetVersionBuild
9-
$versionRevision = "17"
9+
$versionRevision = "18"
1010
#build version number
1111
$version = GetVersion $versionMajor $versionMinor $versionBuild $versionRevision
1212

_DevTools/Tools/AutoBuilder/AutoBuilder.ps1

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ task ReleaseBin -depends CleanWorking, UpdateVersion, Build {
266266
}
267267

268268
#check if is SDK project
269-
$isSdk = Select-String -Path "$sourceDir\$projectFile" -Pattern '<Project Sdk="Microsoft.NET.Sdk">' -SimpleMatch -Quiet
269+
$isSdk = Select-String -Path "$sourceDir\$projectFile" -Pattern 'Microsoft.NET.Sdk' -SimpleMatch -Quiet
270270

271271
#copy project release files
272272
robocopy @("$projectDirectory\bin\Release", "$workingDir\Bin\$projectName", '*.*', '/S', '/NP', '/XO', '/XF', '*.pdb', '*.xml') | Out-Default
@@ -479,18 +479,36 @@ task Test -depends Build {
479479
$projectDirectoryFileInfo = Get-ChildItem "$sourceDir\$projectFile"
480480
$projectDirectory = $projectDirectoryFileInfo.DirectoryName
481481

482-
ForEach ($test in $tests)
482+
#check if is SDK project
483+
$isSdk = Select-String -Path "$sourceDir\$projectFile" -Pattern 'Microsoft.NET.Sdk' -SimpleMatch -Quiet
484+
485+
if($isSdk)
483486
{
484-
$targetFrameworks = GetTargetFrameworks($projectDirectoryFileInfo)
485-
if ($projectName -eq $test.Name)
487+
ForEach ($test in $tests)
486488
{
487-
ForEach($targetFramework in $targetFrameworks)
488-
{
489-
$targetFrameworkName = $targetFramework.Name
490-
491-
Write-Host -ForegroundColor Green "Running tests " $test.Name " on " $targetFrameworkName
492-
493-
exec { dotnet test "$sourceDir\$projectFile" -c "Release" -f "$targetFrameworkName" | Out-Default }
489+
$targetFrameworks = GetTargetFrameworks($projectDirectoryFileInfo)
490+
if ($projectName -eq $test.Name)
491+
{
492+
ForEach($targetFramework in $targetFrameworks)
493+
{
494+
$targetFrameworkName = $targetFramework.Name
495+
496+
Write-Host -ForegroundColor Green "Running tests " $test.Name " on " $targetFrameworkName
497+
498+
exec { dotnet test "$sourceDir\$projectFile" -c "Release" -f "$targetFrameworkName" | Out-Default }
499+
}
500+
}
501+
}
502+
}
503+
else
504+
{
505+
ForEach ($test in $tests)
506+
{
507+
if ($projectName -eq $test.Name)
508+
{
509+
Write-Host -ForegroundColor Green "Running tests " $test.Name
510+
511+
exec { dotnet test "$sourceDir\$projectFile" -c "Release" | Out-Default }
494512
}
495513
}
496514
}
@@ -627,4 +645,4 @@ function Update-VersionProjectFiles ([string] $solutionFile, [string] $versionNu
627645

628646
$xmlDoc.Save("$sourceDir\$projectFile")
629647
}
630-
}
648+
}

0 commit comments

Comments
 (0)