Skip to content

[Release/3.1] Set IsShipping=false for all TestingUtils projects #2782

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

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Dec 12, 2019

3.1 port of #2781

Without this, the ref project(s) in this dir get the default value of IsShipping=true from Arcade: https://github.com/dotnet/arcade/blob/0c9b0442f2ce607a90615a7bfad4ead069150bc6/src/Microsoft.DotNet.Arcade.Sdk/tools/Version.BeforeCommonTargets.targets#L18. This means that other projects which compile against ref projects in this folder (i.e., Microsoft.Extensions.Logging.Testing compiles against Microsoft.AspNetCore.Testing) will get non-suffixed versions for their dependencies. When we ship stable, Microsoft.Extensions.Logging.Testing lists a dependency on a stable version of Microsoft.AspNetCore.Testing, which does not exist.

We should think of a better way to resolve this issue - for example, AspNetCore calculates a global default for IsShipping, which would prevent this type of issue: https://github.com/aspnet/AspNetCore/blob/20fc1adf2ada01a4a1fc7934706d2b641acbb9f4/Directory.Build.props#L23

It's also worth noting that Microsoft.AspNetCore.Testing is unique in that it is a non-shipping project that has a ref assembly. We should understand why that ref assembly is needed, and decide if it can be removed (removing it caused some errors that seemed non-trivial to fix). The ref assembly was added in this PR: #2483

CC @dougbu @JunTaoLuo @mmitche

@wtgodbe
Copy link
Member Author

wtgodbe commented Dec 12, 2019

I'll be back at my desk in around ~45 minutes, let's wait for @dougbu's signoff before merging

Copy link

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine and won't need to be reverted later.

Please file a follow-up issue to get to the bottom of why we added the ref/ project for a non-shipping package. That guy should be removed ASAP.

@wtgodbe wtgodbe merged commit 0743e1c into release/3.1 Dec 12, 2019
@wtgodbe wtgodbe deleted the NonShipping31 branch December 12, 2019 21:43
JunTaoLuo pushed a commit to dotnet/aspnetcore that referenced this pull request Feb 12, 2020
JunTaoLuo pushed a commit to dotnet/aspnetcore that referenced this pull request Feb 15, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 11, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 11, 2020
maryamariyan pushed a commit to maryamariyan/runtime that referenced this pull request Mar 27, 2020
@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants