Skip to content

Conversation

@rolfbjarne
Copy link
Member

  • Add 'ImplicitUsings=true' to all the templates.
  • Make the implicit global namespaces C#-only.
  • Add the implicit global namespaces to the 'Using' itemgroup instead of the
    'Import' itemgroup.
  • Make sure the global namespaces are set from AutoImport.props, so that the
    user may remove any global namespace they don't want in their project file
    (by doing something like: <Using Remove="Foundation" />)

Ref: dotnet/sdk#19521
Ref: dotnet/sdk#19793

Fixes #12457.

…ates. Fixes dotnet#12457.

* Add 'ImplicitUsings=true' to all the templates.
* Make the implicit global namespaces C#-only.
* Add the implicit global namespaces to the 'Using' itemgroup instead of the
  'Import' itemgroup.
* Make sure the global namespaces are set from AutoImport.props, so that the
  user may remove any global namespace they don't want in their project file
  (by doing something like: `<Using Remove="Foundation" />`)

Ref: dotnet/sdk#19521
Ref: dotnet/sdk#19793

Fixes dotnet#12457.
@rolfbjarne rolfbjarne added not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests labels Aug 18, 2021
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (only version changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

4 tests failed, 137 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: Failed (Test run failed.
    Tests run: 2469 Passed: 2398 Inconclusive: 10 Failed: 1 Ignored: 70)
  • monotouch-test/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 2638 Passed: 2488 Inconclusive: 35 Failed: 2 Ignored: 148)
  • link sdk/Mac [dotnet]/Debug [dotnet]: BuildFailure
  • link sdk/Mac [dotnet]/Release [dotnet]: BuildFailure

Pipeline on Agent XAMBOT-1101.BigSur'
Merge d6c0447 into ef61ab5

@rolfbjarne
Copy link
Member Author

Test failures are unrelated:

@rolfbjarne rolfbjarne merged commit ab88892 into dotnet:main Aug 19, 2021
@rolfbjarne rolfbjarne deleted the dotnet-templates-take2 branch August 19, 2021 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Templates are broken because of changes to implicit namespace support

5 participants