Skip to content

Commit 8297f88

Browse files
committed
Update comments and fix mistakes
- Fix message text. - Fix Include logic. - Fix spelling mistakes. - Fix leading whitespace. - Fix casing in code and comments.
1 parent d7f8eeb commit 8297f88

File tree

13 files changed

+29
-27
lines changed

13 files changed

+29
-27
lines changed

Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'net5.0-windows10.0.17763.0'">
15-
<!-- Define the WINDOWS_UWP conditional symbol, since the Windows.Data.Xml and the Windows.UI.Notification namespaces are available -->
15+
<!-- Define the WINDOWS_UWP conditional symbol, since the 'Windows.Data.Xml' and the 'Windows.UI.Notification' namespaces are available -->
1616
<DefineConstants>$(DefineConstants);WINDOWS_UWP;WIN32</DefineConstants>
1717
</PropertyGroup>
1818

@@ -42,13 +42,12 @@
4242
<None Include="Microsoft.Toolkit.Uwp.Notifications.targets" Pack="true" PackagePath="build\native" />
4343
</ItemGroup>
4444

45-
<!-- Desktop Win32 apps -->
45+
<!-- For Desktop Win32 apps' WinRT APIs support -->
4646
<ItemGroup Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netcoreapp3.1'">
47-
<!-- Reference Windows SDK NuGet of correct target platform version -->
4847
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.19041.1" />
4948
</ItemGroup>
5049

51-
<!-- The .NET Core desktop apps also need the Registry NuGet package and System.Reflection.Emit for generating COM class dynamically -->
50+
<!-- The .NET Core desktop apps also need the Registry NuGet package and 'System.Reflection.Emit' for generating COM class dynamically -->
5251
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' or '$(TargetFramework)' == 'net5.0-windows10.0.17763.0'">
5352
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
5453
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
@@ -59,12 +58,15 @@
5958
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="$(ExtrasUwpMetaPackageVersion)" PrivateAssets="All" IsImplicitlyDefined="true" />
6059
</ItemGroup>
6160

62-
<!-- Native (C++) doesn't need 'System.ValueTuple' (plus it's incompatible with this package) -->
61+
<!-- Native (C++) does not need 'System.ValueTuple' (plus it is incompatible with this package) -->
6362
<ItemGroup Condition="'$(TargetFramework)' != 'native'">
6463
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
6564
</ItemGroup>
6665

67-
<!-- Set the nuspec properties. Dependent on version which isn't updated till after 'GetBuildVersion'. Condition ensures we only set once since this runs multiple times for each target. -->
66+
<!--
67+
Set the nuspec properties. Dependent on version which is not updated till after 'GetBuildVersion'.
68+
Condition ensures we only set once since this runs multiple times for each target.
69+
-->
6870
<Target Name="SetNuspecProperties" AfterTargets="GetBuildVersion">
6971
<PropertyGroup Condition="'$(NuspecProperties)' == ''">
7072
<NuspecProperties>buildOutput=bin\$(Configuration);version=$(Version)</NuspecProperties>

SmokeTests/SmokeTests.proj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Condition="'$(NuGetPackageVersion)' == ''">
3434
<Output TaskParameter="ConsoleOutput" PropertyName="NuGetPackageVersion" />
3535
</Exec>
36-
<Message Text="Got GitBank Version... $(NuGetPackageVersion)" Importance="High" />
36+
<Message Text="Got NuGet Package Version... $(NuGetPackageVersion)" Importance="High" />
3737
</Target>
3838

3939
<Target Name="Build"
@@ -44,7 +44,7 @@
4444
<Message Importance="High" Text="Building project %(ProjectsToBuild.Identity): (%(ProjectsToBuild.Configuration)|%(ProjectsToBuild.Platform))" />
4545

4646
<MSBuild Projects="SmokeTest.csproj"
47-
Targets="restore;build"
47+
Targets="Restore;Build"
4848
Properties="CurrentProject=%(ProjectsToBuild.Identity);Configuration=%(ProjectsToBuild.Configuration);Platform=%(ProjectsToBuild.Platform);NuGetPackageVersion=$(NuGetPackageVersion)" />
4949
</Target>
5050

@@ -77,10 +77,10 @@
7777

7878
<Target Name="CheckNuGetPackages">
7979
<PropertyGroup>
80-
<NuGetOutputPath>$(MSBuildThisFileDirectory)..\bin\nupkg</NuGetOutputPath>
80+
<NuGetOutputPath>$(MSBuildThisFileDirectory)..\bin\nupkg\</NuGetOutputPath>
8181
</PropertyGroup>
8282
<ItemGroup>
83-
<NuGetPackage Include="$(NuGetOutputPath)\*.nupkg" />
83+
<NuGetPackage Include="$(NuGetOutputPath)*.nupkg" />
8484
</ItemGroup>
8585
<Error Condition="'@(NuGetPackage)' == ''" Text="Directory '$(NuGetOutputPath)' is empty" />
8686
</Target>

UITests/UITests.Tests.Shared/Controls/ColorPickerButtonTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ColorPickerButtonTest : UITestBase
2525
[TestProperty("Platform", "Any")]
2626
public static void ClassInitialize(TestContext testContext)
2727
{
28-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
28+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
2929
}
3030

3131
/// <summary>

UITests/UITests.Tests.Shared/Controls/ConstrainedBoxTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class ConstrainedBoxTest : UITestBase
2727
[TestProperty("Platform", "Any")]
2828
public static void ClassInitialize(TestContext testContext)
2929
{
30-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
30+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
3131
}
3232

3333
[TestMethod]

UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class GridSplitterTest : UITestBase
3333
[TestProperty("Platform", "Any")]
3434
public static void ClassInitialize(TestContext testContext)
3535
{
36-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
36+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
3737
}
3838

3939
[TestMethod]

UITests/UITests.Tests.Shared/Controls/RangeSelectorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class RangeSelectorTest : UITestBase
2626
[TestProperty("Platform", "Any")]
2727
public static void ClassInitialize(TestContext testContext)
2828
{
29-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
29+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
3030
}
3131

3232
[TestMethod]

UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class RichSuggestBoxTest : UITestBase
2727
[TestProperty("Platform", "Any")]
2828
public static void ClassInitialize(TestContext testContext)
2929
{
30-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
30+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
3131
}
3232

3333
[TestMethod]

UITests/UITests.Tests.Shared/Controls/TextBoxMaskTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class TextBoxMaskTest : UITestBase
2525
[TestProperty("Platform", "Any")]
2626
public static void ClassInitialize(TestContext testContext)
2727
{
28-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
28+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
2929
}
3030

3131
[TestMethod]

UITests/UITests.Tests.Shared/Examples/SimpleTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class SimpleTest : UITestBase
2525
[TestProperty("Platform", "Any")]
2626
public static void ClassInitialize(TestContext testContext)
2727
{
28-
TestEnvironment.Initialize(testContext, WinUICsUWPSampleApp);
28+
TestEnvironment.Initialize(testContext, WinUICSharpUWPSampleApp);
2929
}
3030

3131
[TestMethod]

UITests/UITests.Tests.Shared/TestAssembly.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public static void AssemblyInitialize(TestContext testContext)
3636
[AssemblyCleanup]
3737
public static void AssemblyCleanup()
3838
{
39-
TestEnvironment.AssemblyCleanupWorker(UITestBase.WinUICsUWPSampleApp);
39+
TestEnvironment.AssemblyCleanupWorker(UITestBase.WinUICSharpUWPSampleApp);
4040
}
4141

42-
private static async Task InitalizeComService()
42+
private static async Task InitializeComService()
4343
{
4444
CommunicationService = new AppServiceConnection();
4545

@@ -84,7 +84,7 @@ internal static async Task<AppServiceResponse> SendCustomMessageToApp(ValueSet m
8484
{
8585
if (CommunicationService is null)
8686
{
87-
await InitalizeComService();
87+
await InitializeComService();
8888
}
8989

9090
return await CommunicationService.SendMessageAsync(message);
@@ -94,7 +94,7 @@ private static async Task<bool> SendMessageToApp(ValueSet message)
9494
{
9595
if (CommunicationService is null)
9696
{
97-
await InitalizeComService();
97+
await InitializeComService();
9898
}
9999

100100
var response = await CommunicationService.SendMessageAsync(message);

0 commit comments

Comments
 (0)