Skip to content

Commit b70cede

Browse files
Youssef1313mairaw
authored andcommitted
Fix build warnings (#16669)
* Update cpp-cli.md * Update console-webapiclient.md * Update console-webapiclient.md
1 parent 5aa7597 commit b70cede

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/core/porting/cpp-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To port a C++/CLI project to .NET Core, make the following changes to the vcxpro
2626
1. Replace `<CLRSupport>true</CLRSupport>` properties with `<CLRSupport>NetCore</CLRSupport>`. This property is often in configuration-specific property groups, so you may need to replace it in multiple places.
2727
2. Replace `<TargetFrameworkVersion>` properties with `<TargetFramework>netcoreapp3.1</TargetFramework>`.
2828
3. Remove any .NET Framework references (like `<Reference Include="System" />`). .NET Core SDK assemblies are automatically referenced when using `<CLRSupport>NetCore</CLRSupport>`.
29-
4. Update API usage in cpp files, as necessary, to remove APIs unavailable to .NET Core. Because C++/CLI projects tend to be fairly thin interop layers, there are often not many changes needed. The [.NET Portability Analyzer](../../standard/analyzers/portability-analyzer) can be used to identify unsupported .NET APIs used by C++/CLI binaries just as with purely managed binaries. Guidelines for determining code portability and updating projects to work with .NET Core APIs are available in the [library porting guidance](./libraries.md#determining-the-portability-of-your-code).
29+
4. Update API usage in cpp files, as necessary, to remove APIs unavailable to .NET Core. Because C++/CLI projects tend to be fairly thin interop layers, there are often not many changes needed. The [.NET Portability Analyzer](../../standard/analyzers/portability-analyzer.md) can be used to identify unsupported .NET APIs used by C++/CLI binaries just as with purely managed binaries. Guidelines for determining code portability and updating projects to work with .NET Core APIs are available in the [library porting guidance](./libraries.md#determine-portability).
3030

3131
### WPF and Windows Forms usage
3232

docs/csharp/tutorials/console-webapiclient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The first step is to create a new application. Open a command prompt and
4444
create a new directory for your application. Make that the current
4545
directory. Enter the following command in a console window:
4646

47-
```console
47+
```dotnetcli
4848
dotnet new console --name WebApiClient
4949
```
5050

0 commit comments

Comments
 (0)