Skip to content

Commit

Permalink
Get SpellChecker sample working on net472
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 3, 2021
1 parent 18e2db0 commit f936f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/SpellChecker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
text,
out IEnumSpellingError* errors).ThrowOnFailure();

Span<PWSTR> suggestionResult = stackalloc PWSTR[1];
Span<PWSTR> suggestionResult = new PWSTR[1];
while (true)
{
if (errors->Next(out ISpellingError* error).ThrowOnFailure() == S_FALSE)
Expand Down
2 changes: 1 addition & 1 deletion test/SpellChecker/SpellChecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net472</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f936f9d

Please sign in to comment.