-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Installer: Get channels from release.json, and other improvements #51485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1b82fe0
8265b1f
d601300
5a95d37
1119e22
3d755ab
36d14a4
846587b
e9962b0
8527690
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>$(ResolverTargetFramework);net472</TargetFrameworks> | ||
| <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For my understanding, why did we use net8.0 here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I didn't have the condition it gave me an error saying the property wasn't supported for .NET Framework, and the error suggested this condition. I think the property is maybe supported on .NET 6 and higher. |
||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,15 +66,15 @@ internal void Initialize(IntPtr info, IntPtr resultContext) | |
| var runtimes = new hostfxr_dotnet_environment_framework_info[infoStruct.framework_count]; | ||
| for (var i = 0; i < (int)infoStruct.framework_count; i++) | ||
| { | ||
| var pointer = new IntPtr(infoStruct.frameworks.ToInt64() + i * Marshal.SizeOf(typeof(hostfxr_dotnet_environment_framework_info))); | ||
| var pointer = new IntPtr(infoStruct.frameworks.ToInt64() + i * Marshal.SizeOf<hostfxr_dotnet_environment_framework_info>()); | ||
| runtimes[i] = Marshal.PtrToStructure<hostfxr_dotnet_environment_framework_info>(pointer); | ||
| } | ||
| RuntimeInfo = runtimes.Select(runtime => new NetRuntimeInfo(runtime.name, runtime.version, runtime.path)); | ||
|
|
||
| var sdks = new hostfxr_dotnet_environment_sdk_info[infoStruct.sdk_count]; | ||
| for (var i = 0; i < (int)infoStruct.sdk_count; i++) | ||
| { | ||
| var pointer = new IntPtr(infoStruct.sdks.ToInt64() + i * Marshal.SizeOf(typeof(hostfxr_dotnet_environment_sdk_info))); | ||
| var pointer = new IntPtr(infoStruct.sdks.ToInt64() + i * Marshal.SizeOf<hostfxr_dotnet_environment_sdk_info>()); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| sdks[i] = Marshal.PtrToStructure<hostfxr_dotnet_environment_sdk_info>(pointer); | ||
| } | ||
| SdkInfo = sdks.Select(sdk => new NetSdkInfo(sdk.version, sdk.path)); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep this in a data structure of special keyword channels we support.