-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-projects.ps1
35 lines (27 loc) · 1.19 KB
/
common-projects.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function Get-AllProjectFiles {
[string[]]$csprojFiles = @(
(gi .\LVD.Stakhanovise.NET.Common.Interfaces\LVD.Stakhanovise.NET.Common.Interfaces.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.Interfaces\LVD.Stakhanovise.NET.Interfaces.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.Common\LVD.Stakhanovise.NET.Common.csproj).FullName,
(gi .\LVD.Stakhanovise.NET\LVD.Stakhanovise.NET.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.Info\LVD.Stakhanovise.NET.Info.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.Producer\LVD.Stakhanovise.NET.Producer.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.NetCoreConfigurationExtensionsBindings\LVD.Stakhanovise.NET.NetCoreConfigurationExtensionsBindings.csproj).FullName,
(gi .\LVD.Stakhanovise.NET.Logging.Log4NetLogging\LVD.Stakhanovise.NET.Logging.Log4NetLogging.csproj).FullName
)
return $csprojFiles
}
function Get-ProjectFileName {
param(
[string]$csprojFile
)
[string]$csprojFileName = (Split-path $csprojFile -leaf)
return $csprojFileName
}
function Get-ProjectName {
param(
[string]$csprojFile
)
[string]$csprojFileName = (ProjectFileName -csprojFile $csprojFile)
return $csprojFileName.Replace(".csproj", "")
}