-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add .version file to shared framework zip #21587
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
Conversation
It looks like in Helix, |
Yeah looks like I might have messed up the conversion to C# of the install aspnet ref package code. I can take a look at fixing those, feel free to just add |
@wtgodbe Actually I spoke too soon, looks like these tests are looking at the shared fx not the ref pack, and I checked out the artifacts on the build: https://dev.azure.com/dnceng/public/_build/results?buildId=635302&view=artifacts&type=publishedArtifacts in Runtime.win-x64.5.0.0-ci, I still see Microsoft.AspNetCore.App.vesrions.txt there, I don't see a .versions file, so I think its copying the built fx correctly, we just aren't producing the .version still
|
@HaoK we are producing the .version file now, but it goes in the shared framework .zip, while the |
Ah interesting, yeah the helix test is working against the nupkg, and I'd guess the local tests are running against the shared framework, so for helix maybe the right thing to do is continue looking for the versions.txt? We could also considering sending both the zip and nupkg to helix and have explicit tests for both? |
@HaoK where does that infra live? If it's easy enough to implement either suggestion then I can do that as part of this PR, otherwise I'd rather disable the |
src/Framework/test/SharedFxTests.cs
Outdated
@@ -133,7 +133,7 @@ public void ItContainsValidDepsJson() | |||
[Fact] | |||
public void ItContainsVersionFile() | |||
{ | |||
var versionFile = Path.Combine(_sharedFxRoot, "Microsoft.AspNetCore.App.versions.txt"); | |||
var versionFile = Path.Combine(_sharedFxRoot, ".version"); |
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.
Tactical fix for now could be to just have a helix guard around the expected file I guess? You can do a string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNET_RUNTIME_PATH"))
check since this wouldn't be set locally to determine which file to look for
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.
Just pushed 582fe0d
Manual port of #21548
Attempts to resolve #21177 by including a
.version
file in our shared framework zip, and aversions.txt
file in our shared framework .nupkg. This more closely mimics what happens inmicrosoft.netcore.app
Testing confirms that the shared framework zips now contain
.version
inshared\Microsoft.AspNetCore.App\3.1.4
, while the .nupkg still includes aversions.txt
file.