You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Samples/WebSocket/README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -95,9 +95,10 @@ This sample requires that network capabilities be set in the *Package.appxmanife
95
95
## Build the sample
96
96
97
97
1. If you download the samples ZIP, be sure to unzip the entire archive, not just the folder with the sample you want to build.
98
-
2. Start Microsoft Visual Studio and select **File**\>**Open**\>**Project/Solution**.
99
-
3. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C#, or JavaScript). Double-click the Visual Studio Solution (.sln) file.
100
-
4. Press Ctrl+Shift+B, or select **Build**\>**Build Solution**.
98
+
2.**Important**: From an elevated Powershell command prompt, navigate to the `WebSocket/shared` folder and execute the Powershell script `.\\clientCertGenerator.ps1`, This script will generate a custom RootCert.cer and clientCert.pfx, which are required for the application and server.
99
+
3. Start Microsoft Visual Studio and select **File**\>**Open**\>**Project/Solution**.
100
+
4. Starting in the folder where you unzipped the samples, go to the Samples subfolder, then the subfolder for this specific sample, then the subfolder for your preferred language (C++, C++/WinRT, C#). Double-click the Visual Studio Solution (.sln) file.
101
+
5. Press Ctrl+Shift+B, or select **Build**\>**Build Solution**.
<ErrorCondition="!Exists('$(MSBuildThisFileDirectory)\..\shared\clientCert.pfx')"Text="Before building this project, run the clientCertGenerator.ps1 script elevated as described in the README.md."/>
<ErrorCondition="!Exists('$(MSBuildThisFileDirectory)\..\shared\clientCert.pfx')"Text="Before building this project, run the clientCertGenerator.ps1 script elevated as described in the README.md."/>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
209
-
Other similar extension points exist, see Microsoft.Common.targets.
210
208
<TargetName="BeforeBuild">
209
+
<ErrorCondition="!Exists('$(MSBuildThisFileDirectory)\..\shared\clientCert.pfx')"Text="Before building this project, run the clientCertGenerator.ps1 script as described in the README.md."/>
211
210
</Target>
211
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
212
+
Other similar extension points exist, see Microsoft.Common.targets.
0 commit comments