From 3f91511599c2a769bb7e5b9c989fb52c8bfc6e30 Mon Sep 17 00:00:00 2001 From: Gijs Reijn Date: Fri, 7 Feb 2025 21:29:04 +0100 Subject: [PATCH 1/2] Fix first run experience (#154) --- .github/actions/spelling/allow.txt | 4 +++- resources/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.psm1 | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt index 1c720079..05106829 100644 --- a/.github/actions/spelling/allow.txt +++ b/.github/actions/spelling/allow.txt @@ -67,4 +67,6 @@ websites wekyb Hmmss MMdd -MMdd \ No newline at end of file +MMdd +NOLOGO + diff --git a/resources/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.psm1 b/resources/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.psm1 index a99d9b6c..5959f792 100644 --- a/resources/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.psm1 +++ b/resources/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.psm1 @@ -5,6 +5,9 @@ $ErrorActionPreference = 'Stop' $PSNativeCommandUseErrorActionPreference = $true Set-StrictMode -Version Latest +# Set environment variable always to true to skip first run experience +$env:DOTNET_NOLOGO = $true + #region Functions function Get-DotNetPath { if ($IsWindows) { From 8faf56d745e105891277957811cfeb66fb193e9d Mon Sep 17 00:00:00 2001 From: Ryan Yates Date: Fri, 7 Feb 2025 20:43:00 +0000 Subject: [PATCH 2/2] fixes #150 (#151) Co-authored-by: Demitrius Nelon --- resources/GitDsc/GitDsc.psd1 | 4 ++-- resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psd1 | 6 ++++++ .../Microsoft.Windows.Developer.psd1 | 6 ++++++ .../Microsoft.Windows.Setting.Accessibility.psd1 | 6 ++++++ .../Microsoft.WindowsSandbox.DSC.psd1 | 4 ++-- resources/NpmDsc/NpmDsc.psd1 | 4 ++-- resources/YarnDsc/YarnDsc.psd1 | 4 ++-- 7 files changed, 26 insertions(+), 8 deletions(-) diff --git a/resources/GitDsc/GitDsc.psd1 b/resources/GitDsc/GitDsc.psd1 index fff1be9a..ae763c0b 100644 --- a/resources/GitDsc/GitDsc.psd1 +++ b/resources/GitDsc/GitDsc.psd1 @@ -104,10 +104,10 @@ Tags = @('PSDscResource_GitClone', 'PSDscResource_GitRemote', 'PSDscResource_GitConfigUserName', 'PSDscResource_GitConfigUserEmail', 'PSDscResource_GitConfigFile') # A URL to the license for this module. - # LicenseUri = '' + LicenseURI= 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' # A URL to the main website for this project. - # ProjectUri = '' + ProjectUri = 'https://github.com/microsoft/winget-dsc/' # A URL to an icon representing this module. # IconUri = '' diff --git a/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psd1 b/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psd1 index 0df7d574..30b0cc7c 100644 --- a/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psd1 +++ b/resources/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.psd1 @@ -19,6 +19,12 @@ # Prerelease string of this module Prerelease = 'alpha' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/microsoft/winget-dsc' } } } diff --git a/resources/Microsoft.Windows.Developer/Microsoft.Windows.Developer.psd1 b/resources/Microsoft.Windows.Developer/Microsoft.Windows.Developer.psd1 index bf9fe0e9..9c330f92 100644 --- a/resources/Microsoft.Windows.Developer/Microsoft.Windows.Developer.psd1 +++ b/resources/Microsoft.Windows.Developer/Microsoft.Windows.Developer.psd1 @@ -33,6 +33,12 @@ # Prerelease string of this module Prerelease = 'alpha' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/microsoft/winget-dsc' } } } diff --git a/resources/Microsoft.Windows.Setting.Accessibility/Microsoft.Windows.Setting.Accessibility.psd1 b/resources/Microsoft.Windows.Setting.Accessibility/Microsoft.Windows.Setting.Accessibility.psd1 index e11cea5e..9fa34c9c 100644 --- a/resources/Microsoft.Windows.Setting.Accessibility/Microsoft.Windows.Setting.Accessibility.psd1 +++ b/resources/Microsoft.Windows.Setting.Accessibility/Microsoft.Windows.Setting.Accessibility.psd1 @@ -39,6 +39,12 @@ # Prerelease string of this module Prerelease = 'alpha' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/microsoft/winget-dsc' } } } diff --git a/resources/Microsoft.WindowsSandbox.DSC/Microsoft.WindowsSandbox.DSC.psd1 b/resources/Microsoft.WindowsSandbox.DSC/Microsoft.WindowsSandbox.DSC.psd1 index b0540f92..224919a5 100644 --- a/resources/Microsoft.WindowsSandbox.DSC/Microsoft.WindowsSandbox.DSC.psd1 +++ b/resources/Microsoft.WindowsSandbox.DSC/Microsoft.WindowsSandbox.DSC.psd1 @@ -100,10 +100,10 @@ Tags = @('PSDscResource_WindowsSandbox') # A URL to the license for this module. - # LicenseUri = '' + LicenseURI= 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' # A URL to the main website for this project. - # ProjectUri = '' + ProjectUri = 'https://github.com/microsoft/winget-dsc/' # A URL to an icon representing this module. # IconUri = '' diff --git a/resources/NpmDsc/NpmDsc.psd1 b/resources/NpmDsc/NpmDsc.psd1 index ad578a96..0e893dab 100644 --- a/resources/NpmDsc/NpmDsc.psd1 +++ b/resources/NpmDsc/NpmDsc.psd1 @@ -101,10 +101,10 @@ Tags = @('PSDscResource_DSC_NpmPackage', 'PSDscResource_DSC_NpmInstall') # A URL to the license for this module. - # LicenseUri = '' + LicenseURI= 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' # A URL to the main website for this project. - # ProjectUri = '' + ProjectUri = 'https://github.com/microsoft/winget-dsc/' # A URL to an icon representing this module. # IconUri = '' diff --git a/resources/YarnDsc/YarnDsc.psd1 b/resources/YarnDsc/YarnDsc.psd1 index 9489d856..e01d9168 100644 --- a/resources/YarnDsc/YarnDsc.psd1 +++ b/resources/YarnDsc/YarnDsc.psd1 @@ -100,10 +100,10 @@ Tags = @('PSDscResource_YarnInstall') # A URL to the license for this module. - # LicenseUri = '' + LicenseURI= 'https://github.com/microsoft/winget-dsc/blob/main/LICENSE' # A URL to the main website for this project. - # ProjectUri = '' + ProjectUri = 'https://github.com/microsoft/winget-dsc/' # A URL to an icon representing this module. # IconUri = ''