-
Notifications
You must be signed in to change notification settings - Fork 757
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
chore: Remove non-working caching unmodified xaml files #11452
chore: Remove non-working caching unmodified xaml files #11452
Conversation
var outputFile = Path.Combine( | ||
_targetPath, | ||
$@"g\{typeof(XamlCodeGenerator).Name}\{_fileDefinition.UniqueID}.g.cs" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, the files are not written to disk. So, in most cases this code does nothing.
The code isn't correct anyway. The fact that XAML file didn't change doesn't mean that the generated code will remain the same.
@@ -202,11 +201,6 @@ public XamlCodeGeneration(GeneratorExecutionContext context) | |||
_enableFuzzyMatching = true; | |||
} | |||
|
|||
_targetPath = Path.Combine( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may still need that part for the uno.sourcegeneration side. We'll remove it when we remove Xamarin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeromelaban The comment was referring specifically to Roslyn, and the logic is not correct anyway. Do we still need to wait if the caching isn't guaranteed to be correct?
If we still want to keep it, should it be conditioned on !NETSTANDARD2_0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes let's keep it for !NETSTANDARD2_0 for now.
90c936e
to
6465583
Compare
GitHub Issue (If applicable): closes #
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):