diff --git a/AnalyzeOthers.ps1 b/AnalyzeOthers.ps1
index 5a97185..25ddba4 100644
--- a/AnalyzeOthers.ps1
+++ b/AnalyzeOthers.ps1
@@ -1,32 +1,6 @@
-#done
-#$url= "https://github.com/fullstackhero/dotnet-starter-kit"
-#done
-#$url="https://github.com/ivanpaulovich/clean-architecture-manga"
-#many sln
-#$url ="https://github.com/evolutionary-architecture/evolutionary-architecture-by-example"
-#done
-#$url="https://github.com/jasontaylordev/CleanArchitecture"
-#done
-#$url="https://github.com/jbogard/ContosoUniversityDotNetCore-Pages"
-#3 sln
-#$url="https://github.com/dotnet/eShop"
-#the project do not compile -errors
-# $url="https://github.com/kgrzybek/modular-monolith-with-ddd"
-# $url="https://github.com/nitish-kaushik/aspnetcore-webapi-clean-architecture"
-#$url="https://github.com/nopSolutions/nopCommerce"
-#TBD error : $url="https://github.com/dotnetcore/CAP"
-# $url="https://github.com/dotnetcore/CAP"
-# $url="https://github.com/meysamhadeli/booking-microservices"
-# $url="https://github.com/rafaelfgx/Architecture"
-#$url="https://github.com/ardalis/CleanArchitecture"
+function AnalyzeProject ( $url ){
-#$url = "https://github.com/danpdc/cleanArchitectureTemplate"
-
-#TODO: https://github.com/topics/architecture?l=c%23&o=desc&s=stars
-
-#TODO: https://github.com/simplcommerce/SimplCommerce
-#TODO: https://github.com/grandnode/grandnode2
-#TODO: https://github.com/gothinkster/aspnetcore-realworld-example-app
+Push-Location .
$name = $url.Split('/')[-1]
$analyzerPath = Get-Location
@@ -58,7 +32,6 @@ Set-Content -Path $filePath -Value $jsonContent
}
-Push-Location ..
if(-not (Test-Path $name)) {
git clone $url
@@ -84,8 +57,8 @@ $sln | ForEach-Object {
dotnet tool update netpackageanalyzerconsole
Write-Host "Current path: $(Get-Location)"
# Push-Location .
- dotnet PackageAnalyzer generateFiles -wg Docusaurus
- # dotnet PackageAnalyzer generateFiles -wg HtmlSummary
+ # dotnet PackageAnalyzer generateFiles -wg Docusaurus
+ dotnet PackageAnalyzer generateFiles -wg HtmlSummary
cd Analysis
cd docs
@@ -124,4 +97,35 @@ $sln | ForEach-Object {
}
Pop-Location
+cls
+}
+
+#done
+AnalyzeProject "https://github.com/fullstackhero/dotnet-starter-kit"
+#done
+AnalyzeProject "https://github.com/ivanpaulovich/clean-architecture-manga"
+#many sln
+#$url ="https://github.com/evolutionary-architecture/evolutionary-architecture-by-example"
+#done
+AnalyzeProject "https://github.com/jasontaylordev/CleanArchitecture"
+#done
+AnalyzeProject "https://github.com/jbogard/ContosoUniversityDotNetCore-Pages"
+#3 sln
+AnalyzeProject "https://github.com/dotnet/eShop"
+#the project do not compile -errors
+# $url="https://github.com/kgrzybek/modular-monolith-with-ddd"
+AnalyzeProject "https://github.com/nitish-kaushik/aspnetcore-webapi-clean-architecture"
+AnalyzeProject "https://github.com/nopSolutions/nopCommerce"
+AnalyzeProject "https://github.com/dotnetcore/CAP"
+AnalyzeProject "https://github.com/meysamhadeli/booking-microservices"
+AnalyzeProject "https://github.com/rafaelfgx/Architecture"
+AnalyzeProject "https://github.com/ardalis/CleanArchitecture"
+
+AnalyzeProject "https://github.com/danpdc/cleanArchitectureTemplate"
+
+#TODO: https://github.com/topics/architecture?l=c%23&o=desc&s=stars
+
+#TODO: https://github.com/simplcommerce/SimplCommerce
+#TODO: https://github.com/grandnode/grandnode2
+#TODO: https://github.com/gothinkster/aspnetcore-realworld-example-app
diff --git a/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/InterceptMethodCall.cs b/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/InterceptMethodCall.cs
index f199229..2bdd8f6 100644
--- a/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/InterceptMethodCall.cs
+++ b/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/InterceptMethodCall.cs
@@ -5,7 +5,16 @@ public static void InterceptMethod(DataFromInterceptTiming data)
{
var duration = data.EndTime-data.StartTime;
Console.WriteLine($"{TheAssemblyInfo.GeneratedNameNice}");
- Console.WriteLine("Generated duration seconds: " + duration.TotalSeconds.ToString("#"));
+ var durat = duration.TotalSeconds;
+ if(durat< 120)
+ {
+ Console.WriteLine("Generated duration seconds: " + duration.TotalSeconds.ToString("#"));
+ }
+ else
+ {
+ Console.WriteLine("Generated duration minutes: " + duration.TotalMinutes.ToString("#"));
+ }
+
//Console.WriteLine("method called: " + data.ClassName + "." + data.MethodName);
//Console.WriteLine("start time: " + data.StartTime);
//Console.WriteLine("end time: " + data.EndTime);
diff --git a/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/NetPackageAnalyzerConsole.csproj b/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/NetPackageAnalyzerConsole.csproj
index 4c4db83..2a2aabd 100644
--- a/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/NetPackageAnalyzerConsole.csproj
+++ b/src/NetPackageAnalyzer/NetPackageAnalyzerConsole/NetPackageAnalyzerConsole.csproj
@@ -30,7 +30,7 @@
- 8.2024.1006.2232
+ 8.2024.1008.1900
True
true
PackageAnalyzer
diff --git a/src/NetPackageAnalyzer/NetPackageAnalyzerObjects/AssemblyDataFromMSFT.cs b/src/NetPackageAnalyzer/NetPackageAnalyzerObjects/AssemblyDataFromMSFT.cs
index da1278e..fe45aec 100644
--- a/src/NetPackageAnalyzer/NetPackageAnalyzerObjects/AssemblyDataFromMSFT.cs
+++ b/src/NetPackageAnalyzer/NetPackageAnalyzerObjects/AssemblyDataFromMSFT.cs
@@ -24,7 +24,8 @@ public NamePerCount[] ClassNumberMethods()
{
return genericMetricsAssembly
.SelectMany(it => it.Childs)
- .Select(it => new NamePerCount(it.Name, it.Childs.Length))
+ .Distinct()
+ .Select(a => new NamePerCount(a.Name, a.Childs.Length))
.ToArray();
}