Skip to content
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

Update Microsoft.NET.Test.Sdk to latest #5291

Closed
2 tasks
RussKie opened this issue Apr 18, 2020 · 12 comments · Fixed by #5654
Closed
2 tasks

Update Microsoft.NET.Test.Sdk to latest #5291

RussKie opened this issue Apr 18, 2020 · 12 comments · Fixed by #5654
Assignees

Comments

@RussKie
Copy link
Member

RussKie commented Apr 18, 2020

  • This issue is blocking
  • This issue is causing unreasonable pain

The current shipped version of Microsoft.NET.Test.Sdk is 16.1.1 which is almost a year old (5/30/2019).
Is there a reason not to update to a later version? The current stable is 16.5.0, 16.6 is in beta.

I know I can request a specific version through Versions.props in our repo, just curious why is that we are still using an old package...

@garath
Copy link
Member

garath commented Jun 15, 2020

@RussKie I don't think it's set to this version for any particular reason, and will look at updating it. Is there a feature you need in the later versions?

@RussKie
Copy link
Member Author

RussKie commented Jun 15, 2020

I should have linked the original issue that prompted this - dotnet/winforms#2926
In a nutshell we needed a newer versions (16.4+) to be able to run x86 tests under VS.

@garath
Copy link
Member

garath commented Jun 16, 2020

I've updated the default version as mentioned.

I see that winforms has also specified a version, so hopefully you're unblocked. Let me know if anything looks amiss.

@garath
Copy link
Member

garath commented Jun 18, 2020

Reopening as this change was rejected by a test in the validation build. We'll have to investigate what exactly broke and reevaluate updating this default. It may be noisier than we anticipated.

See also #5673.

@garath garath reopened this Jun 18, 2020
@garath garath removed their assignment Jun 18, 2020
@nohwnd
Copy link
Member

nohwnd commented Jun 19, 2020

I tried to find where it fails, but only found this message that would normally be a warning:

"The assembly 'content\testhost.dll' is not inside the 'lib' folder and hence it won't be added as a reference when the package is installed into a project. Move it into the 'lib' folder if it needs to be referenced."

If there are some other problems, feel free to mention me, or file an issue on vstest an I will have a look.

@MattGal MattGal changed the title Update Microsoft.NET.Test.Sdk? Update Microsoft.NET.Test.Sdk to latest Jun 30, 2020
@riarenas
Copy link
Member

riarenas commented Jul 6, 2020

My approach for this is going to be:

  • Start with @garath's change to update the version in arcade-validation (should fail the same way it did before)
  • Make the changes necessary to the test projects that fail until arcade-validation builds
  • Use the arcade-validation mechanism to run builds of runtime / aspnetcore/ installer
  • See what the issues that pop up are

Once we understand any other breaking changes that are revealed from this exercise, we can give some guidance on any steps that repos will need to perform once the version change makes it to them.

@riarenas
Copy link
Member

riarenas commented Jul 7, 2020

The only problem is the warning. Supressing it fixes arcade-validation's build.

I haven't found any other problems with updating the version. Will start running the change against other repos today:

This change has the potential to be disruptive, and will fail the build whenever the following conditions are met:

  • The repo has WarnAsError turned on (our guidance is that this should be turned on)
  • A test project has: IsPackable set to true
  • NU5100 isn't supressed

The only workarounds are to either make the test project not produce a package, or to supress the NU5100 warning.

@riarenas
Copy link
Member

riarenas commented Jul 7, 2020

These builds should reveal whether there are any problems in the big repos. If there aren't I think we can just get away with making the change in Arcade and then letting repos know of the two workarounds for when this warning is shown.

@riarenas
Copy link
Member

riarenas commented Jul 7, 2020

Some failures in the aspnetcore build. Looking into them.

@riarenas
Copy link
Member

riarenas commented Jul 8, 2020

All the builds were able to build and package correctly after some retrying due to agent disconnections. I'm pretty comfortable that updating the version won't be a problem in these big repos, and that we can get away with just letting users know how to fix the issue if there are any failures.

@riarenas
Copy link
Member

riarenas commented Jul 8, 2020

PRs are open:

@riarenas
Copy link
Member

This has gone out with the latest arcade promotion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants