Skip to content
4 changes: 4 additions & 0 deletions .openpublishing.redirection.fundamentals.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@
{
"source_path_from_root": "/docs/fundamentals/networking/http/http-autoclient.md",
"redirect_url": "/dotnet/fundamentals/networking/http/http-overview"
},
{
"source_path_from_root": "/docs/fundamentals/syslib-diagnostics/syslib5003.md",
"redirect_url": "/dotnet/fundamentals/syslib-diagnostics/syslib5003"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
| [SYSLIB1228][1228] | (Reserved for System.Text.Json.SourceGeneration.) |
| [SYSLIB1229][1229] | (Reserved for System.Text.Json.SourceGeneration.) |
| [SYSLIB1230][1230] | Deriving from a `GeneratedComInterface`-attributed interface defined in another assembly is not supported. |
| [SYSLIB5003][5003] | SVE is a preview feature can be used by enabling `EnablePreviewFeatures` flag. |

<!-- Include adds ## Suppress warnings (H2 heading) -->
[!INCLUDE [suppress-source-generator-diagnostics](includes/suppress-source-generator-diagnostics.md)]
Expand Down Expand Up @@ -313,3 +314,4 @@
[1228]: syslib1220-1229.md
[1229]: syslib1220-1229.md
[1230]: syslib1230.md
[5003]: syslib5003.md

Check failure on line 317 in docs/fundamentals/syslib-diagnostics/source-generator-overview.md

View workflow job for this annotation

GitHub Actions / lint

Files should end with a single newline character

docs/fundamentals/syslib-diagnostics/source-generator-overview.md:317:21 MD047/single-trailing-newline Files should end with a single newline character https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md047.md
23 changes: 23 additions & 0 deletions docs/fundamentals/syslib-diagnostics/syslib5003.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: SYSLIB5003 warning
description: Learn about the diagnostic that generates compile-time warning SYSLIB5003.
ms.date: 11/01/2024
f1_keywords:
- syslib5003
---

# SYSLIB5003: SVE is a preview feature can be used by enabling EnablePreviewFeatures flag

In .NET 9 first set of non-streaming SVE APIs were introduced as [[Experimental]](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.codeanalysis.experimentalattribute?view=net-9.0). This indicates that both the internal implementation and the generated code for SVE may undergo changes. This includes potential modifications to method signatures, parameters, or namespaces in future updates, aimed at ensuring robust support for upcoming SVE technologies and streaming SVE designs. If you are using these APIs in your project, enable the preview mode in your project using `EnablePreviewFeatures`.

```csharp
<PropertyGroup>
<EnablePreviewFeatures>True</EnablePreviewFeatures>
</PropertyGroup>
```

[!INCLUDE [suppress-syslib-warning](includes/suppress-source-generator-diagnostics.md)]

## See also

- [Future work](https://devblogs.microsoft.com/dotnet/engineering-sve-in-dotnet/#8.-future)
3 changes: 3 additions & 0 deletions docs/navigate/tools-diagnostics/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1902,6 +1902,9 @@ items:
- name: SYSLIB1230
href: ../../fundamentals/syslib-diagnostics/syslib1230.md
displayProperty: syslib1230, syslib1231, syslib1232, syslib1233, syslib1234, syslib1235, syslib1236, syslib1237, syslib1238, syslib1239
- name: SYSLIB5003
href: ../../fundamentals/syslib-diagnostics/syslib5003.md
displayProperty: syslib5003
- name: API compatibility
items:
- name: Overview
Expand Down
Loading