豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Determine project.json dependency name to use for msbuild projects #1914

@emgarten

Description

@emgarten

MSBuild projects can be referenced in project.json as dependencies to add additional metadata such as include/exclude. The problem is that Visual Studio allows duplicate project names, to solve this NuGet creates unique names by adding the solution folders to the name.

Example: If a project MyProject is under a solution folder src it will be given the name src\\MyProject

This name isn't obvious to the users.

The name is also displayed in the lock file.

One possible solution is to use the project name until a conflict is hit, then all conflicts will be forced to use the full unique name.

NuGet could also support understanding both the unique and short name.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions