Skip to content

Refactor SDK Resolver into separate library, add simple workload manifest reader#12884

Merged
wli3 merged 3 commits intodotnet:masterfrom
dsplaisted:xml-workload-manifest
Aug 17, 2020
Merged

Refactor SDK Resolver into separate library, add simple workload manifest reader#12884
wli3 merged 3 commits intodotnet:masterfrom
dsplaisted:xml-workload-manifest

Conversation

@dsplaisted
Copy link
Copy Markdown
Member

Adds the following two projects:

  • Microsoft.DotNet.SdkResolver
  • Microsoft.DotNet.WorkloadManifestReader

The workload manifest format is super simple, to be replaced eventually by what is specified in dotnet/designs#120.

Example of workload manifest:

<WorkloadManifest>
  <Workloads>
    <Workload Name="Xamarin.Android workload">
      <RequiredPack Name="Xamarin.Android.Workload"/>
    </Workload>
  </Workloads>
  <WorkloadPacks>
    <Pack Name="Xamarin.Android.Workload"
          Version="1.0.1"
          Kind="sdk" />
  </WorkloadPacks>
</WorkloadManifest>

@dsplaisted dsplaisted requested review from a team and wli3 August 12, 2020 04:09
{
class WorkloadManifest
{
public Dictionary<string, List<string>> Workloads { get; set; } = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interface is the same as the real thing or a place holder too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure the API will change.

@wli3
Copy link
Copy Markdown

wli3 commented Aug 12, 2020

And for template pack, it will just have the pack "kind" be "template" right?

@dsplaisted
Copy link
Copy Markdown
Member Author

And for template pack, it will just have the pack "kind" be "template" right?

I think so. The API doesn't currently represent the pack "kind".

@dsplaisted dsplaisted force-pushed the xml-workload-manifest branch from 37637fc to a948332 Compare August 12, 2020 17:00
@wli3
Copy link
Copy Markdown

wli3 commented Aug 12, 2020

I'll just change the manifest reader in my PR later. Since the API shape is not final

@wli3
Copy link
Copy Markdown

wli3 commented Aug 12, 2020

Test failed

@wli3 wli3 merged commit 47a348b into dotnet:master Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants