Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/core/deploying/native-aot/warnings/il3058.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ public class Program
}
```

```
```output
warning IL3058: Referenced assembly 'MyLibrary' is not built with `<IsAotCompatible>true</IsAotCompatible>` and may not be compatible with AOT.
```

## How to fix violations

You have several options to fix this warning:

- **Update the referenced library** to be built with `<IsAotCompatible>true</IsAotCompatible>`. This is the preferred approach if you control the library source code. The `IsAotCompatible` property marks the assembly as compatible with Native AOT and enables AOT-specific analysis.
- **Disable the verification** by setting `<VerifyReferenceAotCompatibility>false</VerifyReferenceAotCompatibility>` in your project file if you're confident that the library works correctly with Native AOT even without the attribute.
- If you control the library source code, **update the referenced library** to be built with `<IsAotCompatible>true</IsAotCompatible>`. The `IsAotCompatible` property marks the assembly as compatible with Native AOT and enables AOT-specific analysis. This is the preferred approach.
- If you're confident that the library works correctly with Native AOT even without the attribute, **disable the verification** by setting `<VerifyReferenceAotCompatibility>false</VerifyReferenceAotCompatibility>` in your project file.

## See also

Expand Down
6 changes: 3 additions & 3 deletions docs/core/deploying/trimming/trim-warnings/il2125.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ public class Program
}
```

```
```output
warning IL2125: Referenced assembly 'MyLibrary' is not built with `<IsTrimmable>true</IsTrimmable>` and may not be compatible with trimming.
```

## How to fix violations

You have several options to fix this warning:

- **Update the referenced library** to be built with `<IsTrimmable>true</IsTrimmable>`. This is the preferred approach if you control the library source code. For guidance on making libraries trim-compatible, see [Prepare .NET libraries for trimming](../prepare-libraries-for-trimming.md).
- **Disable the verification** by setting `<VerifyReferenceTrimCompatibility>false</VerifyReferenceTrimCompatibility>` in your project file if you're confident that the library works correctly with trimming even without the attribute.
- If you control the library source code, **update the referenced library** to be built with `<IsTrimmable>true</IsTrimmable>`. For guidance on making libraries trim-compatible, see [Prepare .NET libraries for trimming](../prepare-libraries-for-trimming.md). This is the preferred approach.
- If you're confident that the library works correctly with trimming even without the attribute, **disable the verification** by setting `<VerifyReferenceTrimCompatibility>false</VerifyReferenceTrimCompatibility>` in your project file.

## See also

Expand Down
2 changes: 1 addition & 1 deletion docs/core/project-sdk/msbuild-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ Use the `DefaultItemExcludes` property to define glob patterns for files and fol
```

> [!NOTE]
> The `DefaultItemExcludes` property excludes files and folders from being watched by `dotnet watch`. For more information, see [Ignore specified folders and files from `dotnet watch`](/dotnet/core/tools/dotnet-watch#ignore-specified-files-and-folders).
> The `DefaultItemExcludes` property excludes files and folders from being watched by `dotnet watch`. For more information, see [Ignore specified folders and files from `dotnet watch`](../tools/dotnet-watch.md#ignore-specified-files-and-folders).

### DefaultItemExcludesInProjectFolder

Expand Down
Binary file removed docs/core/testing/media/create-unit-test-window.png
Binary file not shown.
Binary file removed docs/core/testing/media/create-unit-test.png
Binary file not shown.
Binary file removed docs/core/testing/media/test-copilot-prompt.png
Binary file not shown.
Binary file removed docs/core/testing/media/test-copilot-result.png
Binary file not shown.
Binary file removed docs/core/testing/media/test-mehod-stub.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ The project or solution or C# (file-based app) file to operate on. If a file isn

- `SOLUTION` is the path and filename of a solution file (*.sln* or *.slnx* extension), or the path to a directory that contains a solution file.

- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (*.csproj*) file. For more information, see [Build file-based C# apps](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
- `FILE` is an argument added in .NET 10. The path and filename of a file-based app. File-based apps are contained within a single file that is built and run without a corresponding project (*.csproj*) file. For more information, see [Build file-based C# apps](../../../csharp/fundamentals/tutorials/file-based-programs.md).
16 changes: 8 additions & 8 deletions docs/csharp/language-reference/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ items:
- name: CS0198
href: ../misc/cs0198.md
- name: CS0200
href: ../misc/cs0200.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS0201
href: ./compiler-messages/cs0201.md
- name: CS0202
Expand Down Expand Up @@ -1108,7 +1108,7 @@ items:
- name: CS0544
href: ../misc/cs0544.md
- name: CS0545
href: ./compiler-messages/cs0545.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS0546
href: ../misc/cs0546.md
- name: CS0547
Expand All @@ -1124,7 +1124,7 @@ items:
- name: CS0570
href: ./compiler-messages/cs0570.md
- name: CS0571
href: ./compiler-messages/cs0571.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS0572
href: ../misc/cs0572.md
- name: CS0573
Expand Down Expand Up @@ -1314,7 +1314,7 @@ items:
- name: CS0837
href: ../misc/cs0837.md
- name: CS0840
href: ./compiler-messages/cs0840.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS0841
href: ../misc/cs0841.md
- name: CS0842
Expand All @@ -1336,7 +1336,7 @@ items:
- name: CS1013
href: ../misc/cs1013.md
- name: CS1014
href: ../misc/cs1014.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS1015
href: ../misc/cs1015.md
- name: CS1017
Expand Down Expand Up @@ -1364,7 +1364,7 @@ items:
- name: CS1041
href: ../misc/cs1041.md
- name: CS1043
href: ../misc/cs1043.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS1044
href: ../misc/cs1044.md
- name: CS1055
Expand Down Expand Up @@ -1752,7 +1752,7 @@ items:
- name: CS8141
href: ./compiler-messages/cs8141.md
- name: CS8145
href: ./compiler-messages/cs8145.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS8146
href: ./compiler-messages/cs8146.md
- name: CS8147
Expand Down Expand Up @@ -1824,7 +1824,7 @@ items:
- name: CS8515
href: ./compiler-messages/cs8515.md
- name: CS9036
href: ./compiler-messages/cs9036.md
href: ./compiler-messages/property-declaration-errors.md
- name: CS9043
href: ./compiler-messages/cs9043.md
- name: Level 1 warning messages
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ The following table lists the `EXTOBS0XXX` obsoletions from the `Microsoft.Exten
| Diagnostic ID | Warning or error | Description |
|---------------|------------------|-------------|
| [EXTOBS0001](extobs0001.md) | Warning | <xref:Microsoft.Extensions.Diagnostics.ResourceMonitoring.IResourceMonitor> is obsolete and will be removed in a future version. Consider using [Resource Monitoring observable instruments](../../core/diagnostics/built-in-metrics-diagnostics.md#microsoftextensionsdiagnosticsresourcemonitoring). |
| [EXTOBS0002](extobs0002.md) | Warning | The `AddServiceLogEnricher` extension methods have been marked as obsolete starting in package version 10.1.0. The methods enrich application logs, not service logs, so they have been replaced with correctly named `AddApplicationLogEnricher` methods. |

## Suppress warnings

Expand Down
4 changes: 4 additions & 0 deletions docs/navigate/devops-testing/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ items:
href: ../../core/deploying/trimming/trim-warnings/il2122.md
- name: IL2123
href: ../../core/deploying/trimming/trim-warnings/il2123.md
- name: IL2125
href: ../../core/deploying/trimming/trim-warnings/il2125.md
- name: Native AOT deployment model
items:
- name: Overview
Expand Down Expand Up @@ -605,6 +607,8 @@ items:
href: ../../core/deploying/native-aot/warnings/il3056.md
- name: IL3057
href: ../../core/deploying/native-aot/warnings/il3057.md
- name: IL3058
href: ../../core/deploying/native-aot/warnings/il3058.md
- name: iOS-like platforms
items:
- name: Overview
Expand Down
2 changes: 2 additions & 0 deletions docs/navigate/tools-diagnostics/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4181,6 +4181,8 @@ items:
items:
- name: EXTOBS0001
href: ../../fundamentals/syslib-diagnostics/extobs0001.md
- name: EXTOBS0002
href: ../../fundamentals/syslib-diagnostics/extobs0002.md
- name: API compatibility
items:
- name: Overview
Expand Down
Loading