Skip to content

Commit 3089e96

Browse files
Merge pull request #44752 from dotnet/main
Merge main into live
2 parents 1e18a1d + 96ece07 commit 3089e96

File tree

10 files changed

+80
-19
lines changed

10 files changed

+80
-19
lines changed

docs/ai/conceptual/understanding-tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The semantic relationships between the tokens can be analyzed by using these tok
8080

8181
After it's trained, a model can calculate an embedding for text that contains multiple tokens. The model tokenizes the text, then calculates an overall embeddings value based on the learned embeddings of the individual tokens. This technique can be used for semantic document searches or adding [vector stores](/semantic-kernel/concepts/vector-store-connectors/) to an AI.
8282

83-
During output generation, the model predicts a vector value for the next token in the sequence. The model then selects the next token from it's vocabulary based on this vector value. In practice, the model calculates multiple vectors by using various elements of the previous tokens' embeddings. The model then evaluates all potential tokens from these vectors and selects the most probable one to continue the sequence.
83+
During output generation, the model predicts a vector value for the next token in the sequence. The model then selects the next token from its vocabulary based on this vector value. In practice, the model calculates multiple vectors by using various elements of the previous tokens' embeddings. The model then evaluates all potential tokens from these vectors and selects the most probable one to continue the sequence.
8484

8585
Output generation is an iterative operation. The model appends the predicted token to the sequence so far and uses that as the input for the next iteration, building the final output one token at a time.
8686

docs/azure/includes/dotnet-all.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@
400400
| Common | NuGet [2.2.1](https://www.nuget.org/packages/Microsoft.Azure.Common/2.2.1) | | |
401401
| Common - Dependencies | NuGet [1.0.0](https://www.nuget.org/packages/Microsoft.Azure.Common.Dependencies/1.0.0) | | |
402402
| Computer Vision | NuGet [7.0.1](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Vision.ComputerVision/7.0.1) | | GitHub [7.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Microsoft.Azure.CognitiveServices.Vision.ComputerVision_6.0.0-preview.1/sdk/cognitiveservices/Vision.ComputerVision) |
403-
| Cosmos DB | NuGet [3.42.0](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.42.0)<br>NuGet [3.47.0-preview.1](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.47.0-preview.1) | [docs](https://learn.microsoft.com/dotnet/api/overview/azure/cosmosdb) | GitHub [3.42.0](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/3.12.0/Microsoft.Azure.Cosmos) |
403+
| Cosmos DB | NuGet [3.42.0](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.42.0)<br>NuGet [3.48.0-preview.0](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.48.0-preview.0) | [docs](https://learn.microsoft.com/dotnet/api/overview/azure/cosmosdb) | GitHub [3.42.0](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/3.12.0/Microsoft.Azure.Cosmos) |
404404
| Custom Image Search | NuGet [2.1.0-preview.1](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.BingCustomImageSearch/2.1.0-preview.1) | | GitHub [2.1.0-preview.1](https://github.com/Azure/azure-sdk-for-net/tree/Microsoft.Azure.CognitiveServices.Search.BingCustomImageSearch_2.1.0-preview.1/sdk/cognitiveservices/Search.BingCustomImageSearch) |
405405
| Custom Image Search | NuGet [2.0.0](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.CustomImageSearch/2.0.0) | | |
406406
| Custom Search | NuGet [2.1.0-preview.1](https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.Search.BingCustomSearch/2.1.0-preview.1) | | GitHub [2.1.0-preview.1](https://github.com/Azure/azure-sdk-for-net/tree/Microsoft.Azure.CognitiveServices.Search.BingCustomSearch_2.1.0-preview.1/sdk/cognitiveservices/Search.BingCustomSearch) |
@@ -478,7 +478,7 @@
478478
| App Service - API Apps Service | NuGet [0.9.64](https://www.nuget.org/packages/Microsoft.Azure.AppService.ApiApps.Service/0.9.64) | | |
479479
| Code Analyzers for Durable Functions | NuGet [0.5.0](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.DurableTask.Analyzers/0.5.0) | | GitHub [0.5.0](https://github.com/Azure/azure-functions-durable-extension/tree/Analyzer-v0.3.0/src/WebJobs.Extensions.DurableTask.Analyzers) |
480480
| Cosmos DB - BulkExecutor | NuGet [2.5.1-preview](https://www.nuget.org/packages/Microsoft.Azure.CosmosDB.BulkExecutor/2.5.1-preview) | | GitHub [2.5.1-preview](https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started) |
481-
| Cosmos DB - Direct | NuGet [3.37.9](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Direct/3.37.9) | | GitHub [3.37.9](https://github.com/Azure/azure-cosmos-dotnet-v3) |
481+
| Cosmos DB - Direct | NuGet [3.37.10](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Direct/3.37.10) | | GitHub [3.37.10](https://github.com/Azure/azure-cosmos-dotnet-v3) |
482482
| Cosmos DB - Encryption | NuGet [2.0.3](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Encryption/2.0.3)<br>NuGet [2.1.0-preview4](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Encryption/2.1.0-preview4) | | GitHub [2.0.3](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/releases/encryption/1.0.0-preview4/Microsoft.Azure.Cosmos.Encryption) |
483483
| Cosmos DB - Encryption | NuGet [1.0.0-preview07](https://www.nuget.org/packages/Microsoft.Azure.Cosmos.Encryption.Custom/1.0.0-preview07) | | |
484484
| Extensions - Caching Cosmos | NuGet [1.7.0](https://www.nuget.org/packages/Microsoft.Extensions.Caching.Cosmos/1.7.0) | | GitHub [1.7.0](https://github.com/Azure/Microsoft.Extensions.Caching.Cosmos/tree/v1.0.0-preview4) |

docs/csharp/methods.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,16 @@ You can also choose to define your methods with a statement body and a `return`
163163

164164
:::code language="csharp" source="snippets/methods/return44.cs" id="snippet43":::
165165

166-
To use a value returned from a method, the calling method can use the method call itself anywhere a value of the same type would be sufficient. You can also assign the return value to a variable. For example, the following three code examples accomplish the same goal:
166+
To use a value returned from a method, you can assign the return value to a variable:
167+
168+
:::code language="csharp" source="snippets/methods/return44.cs" id="snippet47":::
169+
170+
The calling method can also use the method call itself anywhere a value of the same type would be sufficient. For example, the following two code examples accomplish the same goal:
167171

168172
:::code language="csharp" source="snippets/methods/return44.cs" id="snippet45":::
169173

170174
:::code language="csharp" source="snippets/methods/return44.cs" id="snippet46":::
171175

172-
:::code language="csharp" source="snippets/methods/return44.cs" id="snippet47":::
173-
174176
Sometimes, you want your method to return more than a single value. You use *tuple types* and *tuple literals* to return multiple values. The tuple type defines the data types of the tuple's elements. Tuple literals provide the actual values of the returned tuple. In the following example, `(string, string, string, int)` defines the tuple type returned by the `GetPersonalInfo` method. The expression `(per.FirstName, per.MiddleName, per.LastName, per.Age)` is the tuple literal; the method returns the first, middle, and family name, along with the age, of a `PersonInfo` object.
175177

176178
```csharp

docs/csharp/snippets/methods/named1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static void Main()
1313
var moto = new TestMotorcycle();
1414
moto.StartEngine();
1515
moto.AddGas(15);
16-
int travelTime = moto.Drive(miles: 170, speed: 60);
16+
int travelTime = moto.Drive(speed: 60, miles: 170);
1717
Console.WriteLine("Travel time: approx. {0} hours", travelTime);
1818
}
1919
}

docs/csharp/snippets/methods/return44.cs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//<Snippet43>
2-
class SimpleMathExtnsion
2+
class SimpleMathExtension
33
{
44
public int DivideTwoNumbers(int number1, int number2)
55
{
@@ -19,12 +19,25 @@ public int SquareANumber(int number) =>
1919
}
2020
//</Snippet44>
2121

22+
static class TestSimpleMathExtension
23+
{
24+
static void Main()
25+
{
26+
var obj = new SimpleMathExtension();
27+
28+
//<Snippet47>
29+
int result = obj.DivideTwoNumbers(6,2);
30+
// The result is 3.
31+
Console.WriteLine(result);
32+
//</Snippet47>
33+
}
34+
}
35+
2236
static class TestSimpleMath
2337
{
2438
static void Main()
2539
{
2640
var obj = new SimpleMath();
27-
var obj2 = new SimpleMathExtnsion();
2841

2942
//<Snippet45>
3043
int result = obj.AddTwoNumbers(1, 2);
@@ -38,11 +51,5 @@ static void Main()
3851
// The result is 9.
3952
Console.WriteLine(result);
4053
//</Snippet46>
41-
42-
//<Snippet47>
43-
result = obj2.DivideTwoNumbers(6,2);
44-
// The result is 3.
45-
Console.WriteLine(result);
46-
//</Snippet47>
4754
}
4855
}

docs/framework/release-notes/2025/01-14-january-cumulative-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This security update addresses a remote code execution vulnerability detailed in
2222

2323
#### CLR
2424

25-
Address crashes that can occur due to certain interactions between multi-module assembly native image usage and OS code integrity enforcement policy updates. (*Applies to: .NET Framework 4.8, 4.8.1.*)
25+
Address crashes that can occur due to certain interactions between multi-module assembly native image usage and OS code integrity enforcement policy updates. (*Applies to: .NET Framework 4.8, 4.8.1*)
2626

2727
## Known issues in this release
2828

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: January 2025 cumulative update preview
3+
description: Learn about the improvements in the .NET Framework January 2025 cumulative update preview.
4+
ms.date: 01/28/2025
5+
---
6+
# January 2025 cumulative update preview
7+
8+
_Released January 28, 2025_
9+
10+
## Summary of what's new in this release
11+
12+
- [Security improvements](#security-improvements)
13+
- [Quality and reliability improvements](#quality-and-reliability-improvements)
14+
15+
### Security improvements
16+
17+
There are no new security improvements in this release. This update is cumulative and contains all previously released security improvements.
18+
19+
### Quality and reliability improvements
20+
21+
#### CLR
22+
23+
Addresses an issue with printing large number of pages due to an OutOfMemory exception. To apply this improvement, you must set the following AppContextSwitch. (*Applies to: .NET Framework 4.8, 4.8.1*)
24+
25+
```
26+
<runtime>
27+
<AppContextSwitchOverrides value="Switch.System.Windows.Controls.ReleaseDiscardableFontReasources=true"/>
28+
</runtime>
29+
```
30+
31+
## Known issues in this release
32+
33+
This release contains no known issues.
34+
35+
## Summary tables
36+
37+
The following table outlines the updates in this release.
38+
39+
| Product version | Cumulative update preview |
40+
| --- | --- |
41+
| **Windows 11, version 24H2** | |
42+
| .NET Framework 3.5, 4.8.1 | [5050577](https://support.microsoft.com/kb/5050577) |
43+
| **Windows 11, version 22H2 and Windows 11, version 23H2** | |
44+
| .NET Framework 3.5, 4.8.1 | [5050578](https://support.microsoft.com/kb/5050578) |
45+
| **Windows 10, version 22H2** | **[5050593](https://support.microsoft.com/kb/5050593)** |
46+
| .NET Framework 3.5, 4.8 | [5050579](https://support.microsoft.com/kb/5050579) |
47+
| .NET Framework 3.5, 4.8.1 | [5050576](https://support.microsoft.com/kb/5050576) |
48+
49+
The operating system row lists a KB that's used for update offering purposes. When the operating system KB is offered, the applicability logic determines the specific .NET Framework update(s) installed. Updates for individual .NET Framework versions are installed based on the version of .NET Framework that is already present on the device. Because of this, the operating system KB is not expected to be listed as installed updates on the device. The expected updates installed are the .NET Framework-specific version updates listed in the previous table.

docs/framework/release-notes/release-notes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: .NET Framework release information
33
description: Improvements in the .NET Framework servicing cumulative updates.
4-
ms.date: 01/14/2025
4+
ms.date: 01/28/2025
55
---
66
# .NET Framework release notes
77

@@ -11,7 +11,8 @@ The .NET Framework updates include cumulative security and reliability improveme
1111

1212
.NET Framework cumulative update releases are discussed in detail in the following individual release notes:
1313

14-
* January 14, 2025 - [cumulative update](./2025/01-14-january-cumulative-update.md) **New Release**
14+
* January 28, 2025 - [cumulative update preview](./2025/01-28-january-cumulative-update-preview.md) **New Release**
15+
* January 14, 2025 - [cumulative update](./2025/01-14-january-cumulative-update.md)
1516
* November 21, 2024 - [cumulative update preview](./2024/11-21-november-preview-cumulative-update.md)
1617
* November 12, 2024 - [security and quality rollup](./2024/11-12-november-security-and-quality-rollup.md)
1718
* Octber 22, 2024 - [cumulative update preview](./2024/10-22-october-preview-cumulative-update.md)

docs/framework/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ items:
707707
href: release-notes/2024/11-21-november-preview-cumulative-update.md
708708
- name: January 2025 cumulative update
709709
href: release-notes/2025/01-14-january-cumulative-update.md
710+
- name: January 2025 cumulative update preview
711+
href: release-notes/2025/01-28-january-cumulative-update-preview.md
710712
- name: What's new
711713
href: whats-new/index.md
712714
- name: What's new in accessibility

docs/standard/serialization/system-text-json/deserialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "How to deserialize JSON in C#"
33
description: "Learn how to use the System.Text.Json namespace to deserialize from JSON in .NET. Includes sample code."
4-
ms.date: 10/19/2023
4+
ms.date: 02/11/2025
55
no-loc: [System.Text.Json, Newtonsoft.Json]
66
dev_langs:
77
- "csharp"

0 commit comments

Comments
 (0)