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

Move ProjectReference into a conditional import #1043

Open
wants to merge 1 commit into
base: v3.6
Choose a base branch
from
Open

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Apr 9, 2024

This makes the ProjectReference item itself completely undiscoverable for project systems that enumerate references using the MSBuild API that gets items regardless of condition, which appears to be how the legacy project system (csproj.dll) does it at least sometimes.

Fixes #1040

This makes the `ProjectReference` item itself completely undiscoverable for project systems that enumerate references using the MSBuild API that gets items regardless of condition, which appears to be how the legacy project system (csproj.dll) does it at least sometimes.

Fixes #1040
@AArnott AArnott added this to the v3.6 milestone Apr 9, 2024
@AArnott
Copy link
Collaborator Author

AArnott commented Apr 9, 2024

@thomas-ravkilde Can you test this? You can download the nupkg from the PR build artifacts. Let me know if you need more instructions.

@thomas-ravkilde
Copy link

@AArnott Sorry for the delay. I'm afraid I need some more instructions. I thought I could just include prereleases in the VS NuGet Package Manager but that doesn't appear to be the case. I see v3.6.79-alpha as the latest prerelease on v3.6. Where do I find the PR build artifacts?

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 24, 2024

Perfectly understandable, and thank you for trying. The instructions for consuming PR build artifacts is near the bottom of our README.
But even that only carries CI builds. For a PR build, you'd need to download the nupkg artifact from the PR build and then point your nuget.config file to the directory that contains the nupkg. You can get it from the deployables-Windows artifact here.

@thomas-ravkilde
Copy link

Ah, I see. Thanks, I couldn't figure out how to get to the PR build artifacts.

Unfortunately, the change doesn't fix the issue:
image

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 24, 2024

Thanks for testing and reporting back.
I have no idea how it would be failing at this point unless there's something very peculiar in your setup.
Can you send me a minimal repro?

@thomas-ravkilde
Copy link

thomas-ravkilde commented Apr 25, 2024

Hm... Very interesting.

  • I created a new .NET Framework 4.8 Console project. --> No issue.
  • I removed all projects in my solution to create a minimal repro. --> Still got the warning.
  • Cleaned the solution and rebuilt. --> Still got the warning.
  • Ran git clean -xdf, cleaned the solution and rebuilt. --> Now there's no warning.

So it appears that your change did actually fix the issue but that there was something sticky in the build process.

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 25, 2024

Progress. Great.

Can you verify with one more step: roll back to the latest release of NB.GV and verify that even after git clean the warning comes back?

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.

None yet

2 participants