Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add additional dependencies to Visual Studio's Project Dependencies#12022

Unanswered
ap0llo asked this question inQ&A
Discussion options

I have a repository (I cannot share unfortunately) where we modelled some additional dependencies between projects that cannot be replaced by project references.

Essentially, we have a custom type of "project references".
These references are evaluated by custom MSBuild targets to make information about the referenced project available in the build of the current project (e.g. the output path).
We don't use project references since we do not want to one project to influence the assembly and package dependencies of the other project.

Everything works as expected when building the project usingdotnet build.

However, there are occasional build errors when building in Visual Studio.
These are caused by differences between howVisual Studio and MSBuild handle dependencies and Visual Studio seems to only read theProjectReference items from the project.

To workaround, the dependencies currently must be modelled inside the solution file (via theProjectDependencies project section) in addition to the project files which is error-prone.

Is there a way to tell Visual Studio about these additional dependencies ? Maybe some special item group that needs to be populated?

Any help with this would be highly appreciated.

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@ap0llo

[8]ページ先頭

©2009-2025 Movatter.jp