Skip to content

Conversation

@dsplaisted
Copy link
Member

This updates the list of Import items for VB to include the Imports that C# by default gets for .NET 6 and higher. This means that VB will now additionally get the following when targeting .NET 6:

  • System.IO
  • System.Net.Http
  • System.Threading

This also reorganizes the imports so that it's more likely that if we expand the list in the future, we will apply that to both languages.

@KathleenDollard Do you think this is the right thing to do?

@ghost
Copy link

ghost commented Jul 14, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

<Import Include="System.Threading.Tasks" Condition="'$(Language)' == 'C#'" />

<!-- These imports were not included by default for VB projects prior to .NET 6, so they apply to both languages -->
<Import Include="System.IO" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit.

It would be nice to sort the Import items when generating the file now that we organize them logically. We used to preserve the alphabetical order as a side effect of how they are organized but it will no longer be the case after this change. I know it's rare for users to browse to this file, but the fact that it's a visible .cs file for C# projects in the obj directory makes me want to strive for more clean looking file.

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.

2 participants