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

Referencing a vcxproj by path and linking to the project #230

Open
jonathansty opened this issue Nov 8, 2022 · 0 comments
Open

Referencing a vcxproj by path and linking to the project #230

jonathansty opened this issue Nov 8, 2022 · 0 comments

Comments

@jonathansty
Copy link

Hi,

I'm trying to use ProjectReferencesByPath to reference an externally generated vcxproj the allow building. I'm unable to get this working correctly though.

First thing I tried:

  • Adding conf.ProjectReferencesByPath.Add(@"path to my vcxproj") as part of the configure of the project
  • Generation works but VS is not happy with this "project cannot be added to the solution because a project with the same project filename already exists in the solution

The other way I tried that does not yield the error and correctly adds the project is:

  • Adding conf.ProjectReferencesByPath.Add(@"path to my vcxproj") as part of the configure of the solution
  • Generation works and visual studio loads.

The main issue here is that there doesn't seem to be a way to reference the vcxproj correctly from within the actual project? E.g. the project that needs to link against my external vcxproj is not able to do this as I can't set it as a reference/dependency.

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

No branches or pull requests

2 participants
@jonathansty and others