-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: ResolveKeySource
is not a dependency of CoreCompile
#10306
Comments
In that binlog:
I think two things should be done:
The reason I'm saying "consider" for 2 is that right now |
I did this in an internal PR that I just completed; not sure when there'll be a new package for Roslyn to reference @jjonescz. |
Thanks, now after updating VSSDK with the fix I see a similar issue - WPF markup is not getting compiled. Again it looks like target Here are binlogs - first a failing one then another succeeding on rebuild for comparison: wpf-binlogs.zip |
Should we create another bug? I think we have another request, asking |
Issue Description
CoreCompile
target callsCsc
withKeyFile="$(KeyOriginatorFile)"
.This
KeyOriginatorFile
property is set by theResolveKeySource
target.ResolveKeySource
target is not a dependency ofCoreCompile
(although it is a dependency of e.g.,Compile
andCoreBuild
)Most of the time it seems the
ResolveKeySource
target is actually executed beforeCoreCompile
so everything works fine - but sometimes it doesn't: dotnet/roslyn#74156Steps to Reproduce
.\Restore.cmd
Creating a minimal repro would be complicated, I don't know the exact conditions needed to get the buggy ordering of targets.
Here's the binlog (from a VS build) where I saw the issue: vs.binlog.zip
Expected Behavior
Build succeeds the second time.
Actual Behavior
Analysis
No response
Versions & Configurations
No response
The text was updated successfully, but these errors were encountered: