You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ensure <Using /> declarations from in-box SDKs are conditioned on C# #19793
The new <Using /> item type is explicitly intended to only be used in C# projects. The code generation targets and core global usings items are already conditioned on C# but we should ensure that the higher-level SDKs (e.g. Web, Worker, WindowsDesktop, etc.) also condition any using item types they bring in by C# too.
Activity
mhutch commentedon Aug 17, 2021
To be absolutely explicit, is this the behavior (and pattern) we expect targets in all the workload SDKs to follow?
Should we have the SDK targets compute a property to centralize this logic? For example, if the SDK targets did this:
Then workload targets could do this:
DamianEdwards commentedon Aug 17, 2021
@mhutch that satisfies the desired specificity I think, so sure 😃
RussKie commentedon Aug 18, 2021
WPF props: https://github.com/dotnet/wpf/blob/main/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.WPF.props
[dotnet] Update logic for default global namespaces and fix the templ…
Follow up to global usings changes
[dotnet] Update logic for default global namespaces and fix the templ…
Follow up to global usings changes
Follow up to global usings changes
Follow up to global usings changes (#19890)
Follow up to global usings changes (#19890)
Follow up to global usings changes
Follow up to global usings changes
Follow up to global usings changes (#19890)