Commit 51c8d02
Add net462 target to GXOData.Client.All for .NET Framework consumers (#11)
The 6.0-GX line resynced with upstream simple-odata-client, which dropped
the net4x target and now ships only net8.0/net7.0/netstandard2.0. As a
result, .NET Framework consumers (notably GeneXus-generated KBs built with
the legacy v4.0.30319 MSBuild) resolve the netstandard2.0 asset, whose
public types (e.g. ODataEntry) live in a netstandard-targeted assembly.
Those projects do not pull in the netstandard.dll facade automatically, so
the C# compiler cannot resolve System.Object for those types and fails with
CS0012, cascading into CS1593 overload-resolution errors against the
GXODataClient query delegates.
Re-add a native .NET Framework asset so NuGet/the GeneXus build prefer it
over netstandard2.0 on net46x+ projects:
- GXOData.Client.All.csproj: add net462 to TargetFrameworks, plus a
net462-only ItemGroup. net462 lacks types the netstandard2.0 sources
assume: reference System.Net.Http (4.3.4, matching DynServiceOData),
add System.ValueTuple (4.5.0, in-box only from net47), and import
System.Net.Http explicitly since the SDK adds it to ImplicitUsings only
for .NET/.NET Standard TFMs, not .NET Framework.
- GXOData.Client.nuspec: add the net462 dependency group and lib\net462
file entries.
- Bump AssemblyVersion 6.0.2.0 -> 6.0.3.0 so a new package is published.
Verified: net462 builds clean, the full solution builds, and dotnet pack
produces a nupkg containing lib/net462/GXOData.Client.All.dll.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1cd2f83 commit 51c8d02
3 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
0 commit comments