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

Support building launch assets for NET6-NET9 projects #4349

Merged
merged 2 commits into from
Jan 15, 2021

Conversation

JoeRobich
Copy link
Member

Resolves #4346.

Copy link
Contributor

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

}

export function findNetCoreAppTargetFramework(project: MSBuildProject): TargetFramework {
return project.TargetFrameworks.find(tf => tf.ShortName.startsWith('netcoreapp'));
}

export function findModernNetFrameworkTargetFramework(project: MSBuildProject): TargetFramework {
let regexp = new RegExp('^net[5-6]');
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of explicitly testing for '6', would it make any sense to change this to [0-9+] and then convert the number to a string and accept anything >= 50?

Copy link
Member Author

Choose a reason for hiding this comment

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

Then I would need to do additional filtering to exclude net[1-4], Maybe the simpler option is to check for net[5-9] which would buy us a few years.

@codecov
Copy link

codecov bot commented Jan 15, 2021

Codecov Report

Merging #4349 (84da799) into master (e8cfe10) will decrease coverage by 0.08%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4349      +/-   ##
==========================================
- Coverage   86.08%   85.99%   -0.09%     
==========================================
  Files          60       60              
  Lines        1875     1878       +3     
  Branches      217      218       +1     
==========================================
+ Hits         1614     1615       +1     
- Misses        200      202       +2     
  Partials       61       61              
Flag Coverage Δ
integration 100.00% <ø> (ø)
unit 85.99% <20.00%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/omnisharp/protocol.ts 78.32% <20.00%> (-0.97%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8cfe10...84da799. Read the comment docs.

@JoeRobich JoeRobich changed the title Support building launch assets for NET6 projects Support building launch assets for NET6-NET9 projects Jan 15, 2021
Copy link
Contributor

@filipw filipw left a comment

Choose a reason for hiding this comment

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

🥳

@JoeRobich JoeRobich merged commit b89b7cb into dotnet:master Jan 15, 2021
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.

Debugging failed as unable to generate "launch.json" in VSCode.
3 participants