From 0c80a87194ef66d8dc0209ccb64bd94cfedfcc20 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 10 Jan 2025 00:33:32 +0100 Subject: [PATCH] Add instructions on how to use the library #152 --- Example.cs | 4 ++++ Example.ps1 | 4 ++++ UnattendGenerator.csproj | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Example.cs b/Example.cs index 749b390..f69c02d 100644 --- a/Example.cs +++ b/Example.cs @@ -5,6 +5,10 @@ namespace Schneegans.Unattend; +/// +/// This file demonstrates how to use the generator as a stand-alone application. To run this code, change the project's +/// output type from ‘Class Library’ to ‘Console Application’ in Visual Studio. +/// class Example { public static void Main(string[] args) diff --git a/Example.ps1 b/Example.ps1 index 64b32fe..0bddf3a 100644 --- a/Example.ps1 +++ b/Example.ps1 @@ -1,3 +1,7 @@ +# This file demonstrates how to use the library in PowerShell 7.4.x. +# Download a recent build artifact from GitHub and unzip it, or build the library yourself in Visual Studio. +# Note that you cannot use this library in Windows PowerShell 5.x. + using namespace Schneegans.Unattend; Import-Module -Name "${env:USERPROFILE}\Downloads\net8.0\UnattendGenerator.dll"; $generator = [UnattendGenerator]::new(); diff --git a/UnattendGenerator.csproj b/UnattendGenerator.csproj index 80fb43a..65ab915 100644 --- a/UnattendGenerator.csproj +++ b/UnattendGenerator.csproj @@ -3,7 +3,7 @@ net8.0;net9.0 true - Exe + Library Schneegans.Unattend enable