Skip to content

Commit

Permalink
Add instructions on how to use the library
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Jan 9, 2025
1 parent fa75a2a commit 0c80a87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

namespace Schneegans.Unattend;

/// <summary>
/// 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.
/// </summary>
class Example
{
public static void Main(string[] args)
Expand Down
4 changes: 4 additions & 0 deletions Example.ps1
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion UnattendGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<OutputType>Exe</OutputType>
<OutputType>Library</OutputType>
<RootNamespace>Schneegans.Unattend</RootNamespace>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down

0 comments on commit 0c80a87

Please sign in to comment.