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

Add GetSourceProjectSafe #502

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

mavimaec
Copy link
Contributor

@mavimaec mavimaec commented Nov 1, 2024

Overview

Our solution contains a number of .csproj and .vcxproj files. A recent change to our own .vcxproj files suddenly caused the Avalonia design preview to fail when Reference.SourceProject was being accessed in SolutionService.cs. These failures showed up as either COM errors or as NotImplementedException (depending on the .vcxproj).

Despite the Avalonia design preview's failure, our solution would build correctly and we could correctly run our Avalonia desktop application.

To resolve the issue, we implemented the changes in this PR and installed a locally built version of AvaloniaVS.VS2022.vsix. The Avalonia design preview is now working correctly in our solution with this fix.

Testing

  • Fix tested in VS2022 (v17.11.5) using a local build of the AvaloniaVS.VS2022.vsix.
  • This fix restores the Avalonia design previewer's functionality in our solution.

@maxkatz6 maxkatz6 merged commit c52e954 into AvaloniaUI:master Nov 4, 2024
2 checks passed
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.

2 participants