mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-12 02:30:29 +09:00
Globally disable implicit namespaces (#56348)
This commit is contained in:
parent
08605bf193
commit
7545f986f9
3 changed files with 3 additions and 5 deletions
|
@ -280,6 +280,9 @@
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<!-- By default the SDK produces ref assembly for 5.0 or later -->
|
<!-- By default the SDK produces ref assembly for 5.0 or later -->
|
||||||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
||||||
|
<!-- We have very special projects that don't always contain default references. We also build MSBuild Tasks
|
||||||
|
and there are some implicit namespaces that clash, i.e System.Threading.Tasks. -->
|
||||||
|
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<IsShipping>false</IsShipping>
|
<IsShipping>false</IsShipping>
|
||||||
<SignAssembly>false</SignAssembly>
|
<SignAssembly>false</SignAssembly>
|
||||||
<RunAnalyzers>false</RunAnalyzers>
|
<RunAnalyzers>false</RunAnalyzers>
|
||||||
<DisableImplicitNamespaceImports_DotNet>true</DisableImplicitNamespaceImports_DotNet>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- MSBuild doesn't understand the Checked configuration -->
|
<!-- MSBuild doesn't understand the Checked configuration -->
|
||||||
|
|
|
@ -59,10 +59,6 @@
|
||||||
'$(DisableImplicitFrameworkReferences)' != 'true' and
|
'$(DisableImplicitFrameworkReferences)' != 'true' and
|
||||||
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
|
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
|
||||||
('$(IsReferenceAssembly)' == 'true' or '$(IsSourceProject)' == 'true')">true</DisableImplicitAssemblyReferences>
|
('$(IsReferenceAssembly)' == 'true' or '$(IsSourceProject)' == 'true')">true</DisableImplicitAssemblyReferences>
|
||||||
|
|
||||||
<!-- When we disable implicit assembly references disabling namespace imports is not handled by the SDK as this is our custom
|
|
||||||
way to disable assembly references for OOBs. -->
|
|
||||||
<DisableImplicitNamespaceImports Condition="'$(DisableImplicitAssemblyReferences)' == 'true'">true</DisableImplicitNamespaceImports>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project="$(RepositoryEngineeringDir)versioning.targets" />
|
<Import Project="$(RepositoryEngineeringDir)versioning.targets" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue