-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Use Microsoft.AspNetCore.InternalTesting.csproj for _GetPackageVersionInfo #53152
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
eng/Npm.Workspace.nodeproj
Outdated
<PackageVersion>$(PackageVersion)</PackageVersion> | ||
</_NodePackageNameAndVersions> | ||
</_ResolvedPackageVersionInfo> |
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.
This is incorrect, isn't it?
https://github.com/dotnet/aspnetcore/pull/53152/files#diff-87ba8ac7845060f8e3f14f5fb637b6790e56ce05e5503d2b96293301339d3910L38
returns the correct item group.
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.
The other part is that this doesn't need to match <Output TaskParameter="TargetOutputs" ItemName="_ResolvedPackageVersionInfo" />
The TargetOuput here is provided in the Returns
, ItemName
is only where in the calling context the output needs to be placed, but they both don't have to match.
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.
Alright, then we must just not be setting PackageVersion in the node project anymore. There's no strong reason to use that project as far as I know, I'll try using dotnet-user-jwts.
I was keeping the structure as close as possible to what was there. I don't feel strongly about it either way. The previous code was grabbing the version from the functional test project directly, which was a bit random. I don't know exactly what the version info is being used for, so I just made sure we captured all the versions. In reality we version all the packages simultaneously. In my view, if we are generating some sort of manifest, we should include the versions for all packages that we ship, just in case we break something and produce the wrong version. |
The comment below isn't entirely accurate: The target in which we call |
Seems that we can rip the entire thing in that case. |
Test build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2345984&view=results
Agreed - #53153 |
There's no need to use a node project to calculate the nonstable package version of the repo during publishing - use
Microsoft.AspNetCore.InternalTesting.csproj
instead.Related - #53091. @javiercn, is the commented-out portion of the target going to be used anywhere other than in publishing.props? If so we should separate that out into a separate target & name it something else.