Skip to content
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

Improved UX for nuget developers - referencing project as nuget #8772

Open
JanKrivanek opened this issue May 18, 2023 · 3 comments
Open

Improved UX for nuget developers - referencing project as nuget #8772

JanKrivanek opened this issue May 18, 2023 · 3 comments
Labels
backlog gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you triaged

Comments

@JanKrivanek
Copy link
Member

JanKrivanek commented May 18, 2023

Summary

V-Next continutation of #8398
Add option to to treat referenced project (ProjectReference) as NuGet package (PackageReference).

This way the package developer could have a solution containing the project producing the package as well as project integration testing the package, that is utilizing not only the actual code, but as well other possible assets (analyzers, msbuild .props/.targets files). This can currently be achieved only via additional steps (packing the project, flushing nuget caches, adding the location with build package to sources, referencing the build package).

Related:

@JanKrivanek JanKrivanek added the gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you label May 18, 2023
@jrdodds
Copy link
Contributor

jrdodds commented May 22, 2023

... as NuGet package (PackageDependence).

Should that be PackageReference?

@atrauzzi
Copy link

This would be extra nice if the references could be to projects in other solutions as well. Thereby enabling multi-repo scenarios where packages are built in a separate code repository.

@JanKrivanek
Copy link
Member Author

This would be extra nice if the references could be to projects in other solutions as well. Thereby enabling multi-repo scenarios where packages are built in a separate code repository.

The solution (.sln) boundary is usualy not a big deal for msbuild (as it operates on projects and their dependencies) - as soon as there is no additional build logic, that is not a part of the said project (e.g. custom build script used to produce nuget). That happens as well - and in such case some specific conventions would need to be prescribed and followed (something along the lines of https://github.com/dotutils/MSBuild.BuildLink/blob/main/docs/buildlink.json.md).

All that being said - this topic is currently below the focus line of the team. So no promisses (but stay tunned ;-))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog gathering-feedback The issue requires feedback in order to be planned, please comment if the feature is useful for you triaged
Projects
None yet
Development

No branches or pull requests

4 participants