Skip to content

Commit

Permalink
Correcting import
Browse files Browse the repository at this point in the history
  • Loading branch information
svrooij committed Dec 27, 2024
1 parent 0f49cd7 commit ffe4488
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace TokenMagician;
[OutputType(typeof(string))] // You can specify an output type as you're used to.
[GenerateBindings] // If your class is partial, and you want to go for max speed, add this attribute to have it generate the bindings at compile time.
[Alias("Get-MsiToken")]
public partial class GetMsiTokenCommand : DependencyCmdlet<Startup>
public partial class GetMsiToken : DependencyCmdlet<Startup>
{
/// <summary>
/// Specifies the tenant id for which you want a token
Expand Down
2 changes: 1 addition & 1 deletion src/TokenMagician/TokenMagician.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<NoWarn>$(NoWarn);CS1591</NoWarn>
<NoWarn>$(NoWarn);CS1591;CS8633</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/TokenMagician/TokenMagician.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if (-not $IsCoreClr) {
# just load the module assembly directly.

# The type can be any type within our ALCLoader project
$innerMod = if ('TokenMagician.GetMsiTokenCommand' -as [type]) {
$modAssembly = [ALCLoader.ConvertToNewtonsoftJsonCommand].Assembly
$innerMod = if ('TokenMagician.GetMsiToken' -as [type]) {
$modAssembly = [TokenMagician.GetMsiToken].Assembly
&$importModule -Assembly $modAssembly -Force -PassThru
}
else {
Expand Down

0 comments on commit ffe4488

Please sign in to comment.