Skip to content

Commit

Permalink
Update references.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcean authored and mmanela committed Dec 11, 2023
1 parent 4e75aef commit 906f43a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions DiffPlex.App/DiffPlex.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<RootNamespace>DiffPlex.UI</RootNamespace>
<AssemblyName>DiffPlex.App</AssemblyName>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<PackageTags>diff</PackageTags>
<Description>Diff files and text.</Description>
<LangVersion>10.0</LangVersion>
<LangVersion>12.0</LangVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<Platforms>x86;x64;arm64</Platforms>
Expand Down Expand Up @@ -43,8 +43,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230502000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.2428" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

Expand Down
10 changes: 5 additions & 5 deletions DiffPlex.Windows/DiffPlex.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageTags>diff</PackageTags>
<PackageIcon>diffplex_icon.png</PackageIcon>
<Description>DiffPlex.Windows is a Windows App SDK control library that allows you to programatically render visual text diffs in your application.</Description>
<LangVersion>10.0</LangVersion>
<LangVersion>12.0</LangVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<Authors>Kingcean Tuan; Matthew Manela</Authors>
Expand All @@ -35,10 +35,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230502000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
<PackageReference Include="Trivial.WindowsKit" Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.2428" />
<PackageReference Include="Trivial.WindowsKit" Version="7.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions DiffPlex.Windows/Handlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public DiffTextLocalWebAppCommandHandler()
if (string.IsNullOrWhiteSpace(Version)) Version = "1.0.0.0";
}

/// <summary>
/// Gets the identifier.
/// </summary>
public string Id => "diffplex";

/// <summary>
/// Gets or sets the description of the command handler.
/// </summary>
Expand All @@ -56,9 +61,9 @@ public DiffTextLocalWebAppCommandHandler()
/// Processes.
/// </summary>
/// <param name="request">The request message.</param>
/// <param name="manifest">The manifest of the local web app.</param>
/// <param name="args">The arguments of the local web app.</param>
/// <returns>The response message.</returns>
public async Task<LocalWebAppResponseMessage> Process(LocalWebAppRequestMessage request, LocalWebAppManifest manifest)
public async Task<LocalWebAppResponseMessage> Process(LocalWebAppRequestMessage request, LocalWebAppCommandHandlerContext args)
{
var oldText = request?.Data?.TryGetStringValue("old") ?? request?.Data?.TryGetStringValue("o") ?? string.Empty;
var newText = request?.Data?.TryGetStringValue("new") ?? request?.Data?.TryGetStringValue("n") ?? string.Empty;
Expand Down

0 comments on commit 906f43a

Please sign in to comment.