Skip to content

Commit b35dd59

Browse files
authored
Merge pull request #7057 from dotnet/main
Merge main into live
2 parents 5b97561 + ada9a42 commit b35dd59

7 files changed

Lines changed: 34 additions & 28 deletions

File tree

.github/workflows/dependabot-approve-and-automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v2.3.0
15+
uses: dependabot/fetch-metadata@v2.4.0
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Approve a PR

core/interop/source-generation/ComWrappersGeneration/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ This sample supports NativeAOT and standard CoreCLR deployments. The native meth
2525

2626
### NativeAOT
2727

28-
Build the Native AOT binaries by running `dotnet publish -r <RID>` where `<RID>` is the RuntimeIdentifier for your OS, for example `win-x64`. The projects will copy the binaries to the `OutputFiles\` directory. After publishing, use `regsvr32.exe` to register `Server.dll` with COM by running run `regsvr.exe .\OutputFiles\Server\Server.dll`. Then, run the client application `.\OutputFiles\Client\Client.exe` and observe the output as it activates and uses a COM instance from `Server.dll`.
28+
Build the Native AOT binaries by running `dotnet publish -r <RID>` where `<RID>` is the RuntimeIdentifier for your OS, for example `win-x64`. The projects will copy the binaries to the `OutputFiles\` directory. After publishing, use `regsvr32.exe` to register `Server.dll` with COM by running run `regsvr32.exe .\OutputFiles\Server\Server.dll`. Then, run the client application `.\OutputFiles\Client\Client.exe` and observe the output as it activates and uses a COM instance from `Server.dll`. When you are finished, unregister the server by running `regsvr32.exe /u .\OutputFiles\Server\Server.dll`.
2929

3030
### CoreCLR
3131

32-
Build the projects by running `dotnet publish`. The projects will copy the binaries to the `OutputFiles\` directory. After publishing, use `regsvr32.exe` to register the native binary produced by DNNE, `ServerNE.dll` by running `regsvr.exe .\OutputFiles\Server\ServerNE.dll`. `ServerNE.dll` will start the .NET runtime and call the exported methods in the managed `Server.dll` which register the server with COM. Then, run the client application `.\OutputFiles\Client\Client.exe` and observe the output as it activates and uses a COM instance from `ServerNE.dll`.
32+
Build the projects by running `dotnet publish`. The projects will copy the binaries to the `OutputFiles\` directory. After publishing, use `regsvr32.exe` to register the native binary produced by DNNE, `ServerNE.dll`, by running `regsvr32.exe .\OutputFiles\Server\ServerNE.dll`. `ServerNE.dll` will start the .NET runtime and call the exported methods in the managed `Server.dll` which register the server with COM. Then, run the client application `.\OutputFiles\Client\Client.exe` and observe the output as it activates and uses a COM instance from `ServerNE.dll`. When you are finished, unregister the server by running `regsvr32.exe /u .\OutputFiles\Server\ServerNE.dll`.
3333

3434
## See also
3535

core/interop/source-generation/ComWrappersGeneration/Server/Server.csproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88

9-
<!-- Uncomment to publish as a native executable -->
9+
<!-- Uncomment to publish the project as a single native .dll -->
1010
<!-- <PublishAOT>true</PublishAOT> -->
1111
</PropertyGroup>
1212

@@ -15,10 +15,17 @@
1515
<EnableDynamicLoading>true</EnableDynamicLoading>
1616
<!-- Use our own .def file to export the COM methods as PRIVATE. The Windows native linker (Link.exe) warns when exported COM methods are not PRIVATE. -->
1717
<DnneWindowsExportsDef>Server.def</DnneWindowsExportsDef>
18+
<!-- Copy DNNE .dll and header files to the output directory -->
19+
<DnneAddGeneratedBinaryToProject>true</DnneAddGeneratedBinaryToProject>
20+
</PropertyGroup>
21+
22+
<PropertyGroup Condition="'$(PublishAOT)' == 'true'">
23+
<!-- Don't build the DNNE .dll when publishing a native .dll with Native AOT. -->
24+
<DnneBuildExports>false</DnneBuildExports>
1825
</PropertyGroup>
1926

2027
<ItemGroup>
21-
<PackageReference Include="DNNE" Version="2.0.7" Condition="'$(PublishAOT)' != 'true'"/>
28+
<PackageReference Include="DNNE" Version="2.0.7" />
2229
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
2330
<!-- When publishing AOT, use our own .def file to export the COM methods as PRIVATE. The Windows native linker (Link.exe) warns when exported COM methods are not PRIVATE. -->
2431
<LinkerArg Include="/DEF:&quot;Server.def&quot;" Condition="'$(PublishAOT)' == 'true'"/>

core/nativeaot/NativeLibrary/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ After the native library is built, the above C# `Add` method will be exported as
8787
* Exported methods cannot be called from regular managed C# code, an exception will be thrown.
8888
* Exported methods cannot use regular C# exception handling, they should return error codes instead.
8989

90-
The sample [source code](Class1.cs) demonstrates common techniques used to stay within these limitations.
90+
The sample [source code](LibraryFunctions.cs) demonstrates common techniques used to stay within these limitations.
9191

9292
## Building static libraries
9393

orleans/BankAccount/AccountTransfer.Grains/AccountGrain.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
using AccountTransfer.Interfaces;
2-
using Orleans.Concurrency;
32
using Orleans.Transactions.Abstractions;
43

54
namespace AccountTransfer.Grains;
65

7-
[GenerateSerializer, Immutable]
8-
public record class Balance
6+
[GenerateSerializer]
7+
public class Balance
98
{
10-
public int Value { get; init; } = 1_000;
9+
[Id(0)]
10+
public int Value { get; set; } = 1_000;
1111
}
1212

13-
[Reentrant]
1413
public sealed class AccountGrain : Grain, IAccountGrain
1514
{
1615
private readonly ITransactionalState<Balance> _balance;
@@ -21,7 +20,7 @@ public AccountGrain(
2120

2221
public Task Deposit(int amount) =>
2322
_balance.PerformUpdate(
24-
balance => balance with { Value = balance.Value + amount });
23+
balance => balance.Value += amount);
2524

2625
public Task Withdraw(int amount) =>
2726
_balance.PerformUpdate(balance =>
@@ -34,7 +33,7 @@ public Task Withdraw(int amount) =>
3433
$" This account has {balance.Value} credits.");
3534
}
3635

37-
return balance with { Value = balance.Value + amount };
36+
balance.Value -= amount;
3837
});
3938

4039
public Task<int> GetBalance() =>

windowsforms/FlexGridShowcaseDemo/cs/FlexGridShowcaseDemo.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
5+
<TargetFramework>net8.0-windows</TargetFramework>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<ApplicationIcon>App.ico</ApplicationIcon>
9-
<Company>GrapeCity, Inc.</Company>
10-
<Copyright>(c) GrapeCity, Inc. All rights reserved.</Copyright>
9+
<Company>MESCIUS inc.</Company>
10+
<Copyright>©️ MESCIUS inc. All rights reserved.</Copyright>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
1414
<EmbeddedResource Include="App.ico" />
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="C1.Win" Version="6.0.20231.596" />
19-
<PackageReference Include="C1.Win.FlexGrid" Version="6.0.20231.596" />
20-
<PackageReference Include="C1.Win.Ribbon" Version="6.0.20231.596" />
21-
<PackageReference Include="C1.Win.RulesManager" Version="6.0.20231.596" />
22-
<PackageReference Include="C1.Win.SuperTooltip" Version="6.0.20231.596" />
23-
<PackageReference Include="C1.Win.Themes" Version="6.0.20231.596" />
18+
<PackageReference Include="C1.Win" Version="8.0.20242.700" />
19+
<PackageReference Include="C1.Win.FlexGrid" Version="8.0.20242.700" />
20+
<PackageReference Include="C1.Win.Ribbon" Version="8.0.20242.700" />
21+
<PackageReference Include="C1.Win.RulesManager" Version="8.0.20242.700" />
22+
<PackageReference Include="C1.Win.SuperTooltip" Version="8.0.20242.700" />
23+
<PackageReference Include="C1.Win.Themes" Version="8.0.20242.700" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

windowsforms/FlexGridShowcaseDemo/cs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ products:
66
page_type: sample
77
name: "Windows Forms Datagrid Sample: FlexGrid Showcase (C#)"
88
urlFragment: "winforms-flexgridshowcase-cs"
9-
description: ".NET 6.0 Windows Forms application that demonstrates how to use GrapeCity FlexGrid"
9+
description: ".NET 8.0 Windows Forms application that demonstrates how to use ComponentOne FlexGrid"
1010
---
1111

1212
# FlexGrid Showcase Demo
1313

14-
This sample is a .NET 6.0 Windows Forms application that demonstrates how to use GrapeCity [`FlexGrid`](https://www.grapecity.com/componentone/winforms-ui-controls/flexgrid-winforms-data-grid), a Windows Forms Datagrid control.
14+
This sample is a .NET 8.0 Windows Forms application that demonstrates how to use ComponentOne [`FlexGrid`](https://developer.mescius.com/componentone/winforms-ui-controls/flexgrid-winforms-data-grid), a Windows Forms Datagrid control.
1515

1616
The sample shows different operations with `FlexGrid`:
1717

@@ -23,25 +23,25 @@ The sample shows different operations with `FlexGrid`:
2323

2424
![Screenshot with grouped data](../images/screenshot2.png)
2525

26-
There are several GrapeCity packages used in the sample:
26+
There are several ComponentOne packages used in the sample:
2727

2828
* [`FlexGrid`](https://www.nuget.org/packages/C1.Win.FlexGrid)
2929
* [`Ribbon`](https://www.nuget.org/packages/C1.Win.Ribbon)
3030
* [`RulesManager`](https://www.nuget.org/packages/C1.Win.RulesManager)
3131
* [`SuperTooltip`](https://www.nuget.org/packages/C1.Win.SuperTooltip)
3232
* [`Themes`](https://www.nuget.org/packages/C1.Win.Themes)
3333

34-
For more code examples and tutorials see the [documentation](https://www.grapecity.com/componentone/docs/win/online-flexgrid/overview.html).
34+
For more code examples and tutorials see the [documentation](https://developer.mescius.com/componentone/docs/win/online-flexgrid/overview.html).
3535

3636
Mentioned controls and packages require a valid license for runtime testing and distribution.
3737

3838
Also there is 30-day trial for evaluation purposes.
3939

40-
For more licensing information visit [www.grapecity.com/componentone/licensing](https://www.grapecity.com/componentone/licensing).
40+
For more licensing information visit [developer.mescius.com/componentone/licensing](https://developer.mescius.com/componentone/licensing).
4141

4242
## Sample prerequisites
4343

44-
This sample is written in C# and targets .NET 6.0 running on Windows. It requires the [.NET 6.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0).
44+
This sample is written in C# and targets .NET 8.0 running on Windows. It requires the [.NET 8.0 SDK](https://dotnet.microsoft.com/download/dotnet/8.0).
4545

4646
## Building the sample
4747

0 commit comments

Comments
 (0)