-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bu,ped dependency versions * global.json * Some shared assembly information * Fixing version string * Playing with DI * Using DI for view model location * Correct logging in MainWindow * Prototyped timer * Removed deprecated code * Cleaning DI * Removed old DI * Trying to measure acquisition time * Creating cycle timer * Implemented timer * Consuming measurements * Working with UI display * Better timer behavior on UI * Refactoring * Job progress updated * Refactoring * Refactored cycle timer usage * Sharing timer logic * Dealing with a substitute of the scoped DI * Changed how exposure time is determined * Removed some of the unused code * Updated enum helpers * Fixed a bug in debug interface * Small refactoring * Publishing script * Building exes * Revert "Building exes" This reverts commit b8c094c. * Trying github token * Revert "Trying github token" This reverts commit c02150d.
- Loading branch information
1 parent
f304833
commit 7c0e6dc
Showing
48 changed files
with
1,005 additions
and
857 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Deterministic>true</Deterministic> | ||
<LangVersion>9</LangVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Authors>Ilia Kosenkov</Authors> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
<Description>Tools for Dipol-UF astro polarimeters.</Description> | ||
<Copyright>Copyright Ilia Kosenkov © 2017-2022</Copyright> | ||
<PackageLicenseUrl>https://github.com/dipol-uf/DIPOL-UF/blob/master/LICENSE</PackageLicenseUrl> | ||
<PackageProjectUrl>https://github.com/dipol-uf/DIPOL-UF</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/dipol-uf/DIPOL-UF</RepositoryUrl> | ||
<RepositoryType>Git</RepositoryType> | ||
</PropertyGroup> | ||
</Project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
param ( | ||
[string]$PathToSrc = "./src", | ||
[string]$OutputDir = "./publish", | ||
[string]$Arch = "x64", | ||
[string]$Configuration = "Release", | ||
[string]$BuildType = "All" | ||
) | ||
|
||
if($BuildType.Equals("all", [System.StringComparison]::OrdinalIgnoreCase) -or $BuildType.Equals("host", [System.StringComparison]::OrdinalIgnoreCase)) { | ||
$projects = @("Host") | ||
} | ||
if($BuildType.Equals("all", [System.StringComparison]::OrdinalIgnoreCase) -or $BuildType.StartsWith("dipol", [System.StringComparison]::OrdinalIgnoreCase)) { | ||
$projects += "Dipol-UF" | ||
} | ||
|
||
|
||
$regex = [System.Text.RegularExpressions.Regex]::new("^\s*\[assembly:\s*AssemblyVersion\s*\(\s*`"(\d+\.\d+.\d+)`"\s*\)\s*\]"); | ||
|
||
foreach($proj in $projects) { | ||
$csprojPath = "$PathToSrc/$proj/$proj.csproj" | ||
|
||
# Finds version string in the AssemblyInfo.cs | ||
$version = Get-Content "$PathToSrc/$proj/Properties/AssemblyInfo.cs" | ` | ||
ForEach-Object {$regex.Matches($_)} | ` | ||
Where-Object {$_.Success} | ` | ||
ForEach-Object {$_.Groups[1].Value} | ||
|
||
# Creates output directory if it is missing | ||
$dir = "$OutputDir/$($proj)_$($Configuration)_$($Arch)_v$version" | ||
New-Item $dir -Force -ItemType Directory -ErrorAction SilentlyContinue | ||
|
||
if(![System.IO.Path]::IsPathRooted($dir)) { | ||
$dir = "../../$dir" | ||
} | ||
|
||
# Restore and build project | ||
MSBuild.exe $csprojPath -t:restore -verbosity:minimal | ||
MSBuild.exe $csprojPath -p:Configuration=$Configuration -p:Platform=$Arch -verbosity:minimal -p:OutputPath=$dir | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.100", | ||
"rollForward": "latestMinor", | ||
"allowPrerelease": false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
param ( | ||
[string]$PathToSrc = "./src", | ||
[string]$OutputDir = "./publish", | ||
[string]$Arch = "x64", | ||
[string]$Configuration = "Release", | ||
[string]$BuildType = "All" | ||
) | ||
|
||
if($BuildType.Equals("all", [System.StringComparison]::OrdinalIgnoreCase) -or $BuildType.Equals("host", [System.StringComparison]::OrdinalIgnoreCase)) { | ||
$projects = @("Host") | ||
} | ||
if($BuildType.Equals("all", [System.StringComparison]::OrdinalIgnoreCase) -or $BuildType.StartsWith("dipol", [System.StringComparison]::OrdinalIgnoreCase)) { | ||
$projects += "Dipol-UF" | ||
} | ||
|
||
|
||
$regex = [System.Text.RegularExpressions.Regex]::new("^\s*\[assembly:\s*AssemblyVersion\s*\(\s*`"(.*)`"\s*\)\s*\]"); | ||
|
||
foreach($proj in $projects) { | ||
$csprojPath = "$PathToSrc/$proj/$proj.csproj" | ||
|
||
# Finds version string in the AssemblyInfo.cs | ||
$version = Get-Content "$PathToSrc/$proj/Properties/AssemblyInfo.cs" | ` | ||
ForEach-Object {$regex.Matches($_)} | ` | ||
Where-Object {$_.Success} | ` | ||
ForEach-Object {$_.Groups[1].Value} | ||
|
||
# Creates output directory if it is missing | ||
$dir = "$OutputDir/$($proj)_$($Configuration)_$($Arch)_v$version" | ||
New-Item $dir -Force -ItemType Directory -ErrorAction SilentlyContinue | ||
|
||
if(![System.IO.Path]::IsPathRooted($dir)) { | ||
$dir = "../../$dir" | ||
} | ||
|
||
# Restore and build project | ||
MSBuild.exe $csprojPath -t:restore -verbosity:minimal | ||
MSBuild.exe $csprojPath -p:Configuration=$Configuration -p:Platform=$Arch -verbosity:minimal -p:OutputPath=$dir | ||
} |
This file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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 file contains 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
Oops, something went wrong.