Skip to content

Add aliases support for legacy package reference projects - #84

Merged
tmeschter merged 2 commits into
dotnet:masterfrom
nkolev92:master-nkolev92-addAliasesSupport
May 1, 2020
Merged

tmeschter merged 2 commits into
dotnet:masterfrom
nkolev92:master-nkolev92-addAliasesSupport

Conversation

@dmonroym
dmonroym requested review from jmarolf and tmeschter April 29, 2020 22:25
if (aliases != null)
{
item.SetMetadata(Aliases, aliases);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this imply that project.assets.json allows aliases on things other than assembly references? Not that I think it matters; I'm just curious.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nope, it's mostly a consequence of how the tasks are implemented and I didn't want to refactor too much around it.

The Aliases will only be specified in the compile groups.

On the SDK side, I implemented on the compile time items only: dotnet/sdk#11451

Comment thread NuGet.config
<add key="roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" />
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This repo is arcade powered now, so it needed some dependencies from there.
Don't recall 100% what the failure was but I can figure it out if you need me to.

@tmeschter
tmeschter merged commit 286d99e into dotnet:master May 1, 2020
@nkolev92
nkolev92 deleted the master-nkolev92-addAliasesSupport branch September 4, 2020 00:29
adamint pushed a commit that referenced this pull request Sep 24, 2024
Add aliases support for legacy package reference projects
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.

Handle the Aliases compile item metadata for PackageReference

2 participants