Skip to content

Commit

Permalink
Lib updates and only load on 6+
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Aug 4, 2020
1 parent 327dc34 commit 054f930
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2,826 deletions.
7 changes: 6 additions & 1 deletion BurntToast/BurntToast.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ $WinMajorVersion = (Get-CimInstance -ClassName Win32_OperatingSystem -Property V
if ($WinMajorVersion -ge 10) {
$Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue )
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue )
$Library = @( Get-ChildItem -Path $PSScriptRoot\lib\*.dll -Recurse -ErrorAction SilentlyContinue )
$Library = @( Get-ChildItem -Path $PSScriptRoot\lib\Microsoft.Toolkit.Uwp.Notifications\*.dll -Recurse -ErrorAction SilentlyContinue )

if ($IsWindows) {
$Library += @( Get-ChildItem -Path $PSScriptRoot\lib\Microsoft.Windows.CsWinRT\*.dll -Recurse -ErrorAction SilentlyContinue )
$Library += @( Get-ChildItem -Path $PSScriptRoot\lib\Microsoft.Windows.SDK.NET\*.dll -Recurse -ErrorAction SilentlyContinue )
}

# Add one class from each expected DLL here:
$LibraryMap = @{
Expand Down
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Microsoft.Toolkit.Uwp.Notifications.6.1.0\lib\net461
1 change: 1 addition & 0 deletions BurntToast/lib/Microsoft.Windows.CsWinRT/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Microsoft.Windows.CsWinRT.0.1.0-prerelease.200629.3\lib\net5.0
1 change: 1 addition & 0 deletions BurntToast/lib/Microsoft.Windows.SDK.NET/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Microsoft.Windows.SDK.NET.10.0.18362.3-preview\lib\netcoreapp5.0

0 comments on commit 054f930

Please sign in to comment.