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

cleanup test projects #2363

Merged
merged 3 commits into from Aug 12, 2021
Merged

cleanup test projects #2363

merged 3 commits into from Aug 12, 2021

Conversation

TimothyMothra
Copy link
Member

@TimothyMothra TimothyMothra commented Aug 12, 2021

As a part of #2251, I'm reviewing all test projects and trying to get them on the same target frameworks.
This PR is pulling some of my changes out of #2361.

I'm cleaning up test projects by removing unused properties:

  • <Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> was a bug fix for VS2017 and no longer necessary. (link)

  • Some of the extra properties in the AspNetCore projects were preventing VS and some CLI from running those tests (FIXED!!)

  • Preparing to move the <TargetFrameworks> to the Test.props file. We few exceptions, we should have uniform TargetFrameworks across all our projects.
    I'll convert individual test projects to use the centralized TargetFrameworks in follow up PRs because this is requiring some other changes in those individual projects (preprocessors and conditional PackageReferences)

<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>

<!-- Side effect of adding the Test.props, some analyzers are now running in this project. I'll fix these in a follow up PR. -->
<NoWarn>CS0618</NoWarn>
</PropertyGroup>
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI: these extra settings were preventing VS and some CLI from running these tests.

@TimothyMothra TimothyMothra enabled auto-merge (squash) August 12, 2021 21:30
@TimothyMothra TimothyMothra merged commit bf9957e into develop Aug 12, 2021
@TimothyMothra TimothyMothra deleted the tilee/cleanup_test_projects branch August 12, 2021 21:41
- net5.0 (EoL Feb 2022)
- net6.0 (GA Nov 2021)
-->
<TargetFrameworks>net462;net472;net480;netcoreapp3.1;net5.0</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

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

net48 vs net480?

@TimothyMothra
Copy link
Member Author

#2379

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

Successfully merging this pull request may close these issues.

None yet

3 participants