mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 18:11:04 +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>
|
||||
<!-- By default the SDK produces ref assembly for 5.0 or later -->
|
||||
<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>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
<IsShipping>false</IsShipping>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<RunAnalyzers>false</RunAnalyzers>
|
||||
<DisableImplicitNamespaceImports_DotNet>true</DisableImplicitNamespaceImports_DotNet>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- MSBuild doesn't understand the Checked configuration -->
|
||||
|
|
|
@ -59,10 +59,6 @@
|
|||
'$(DisableImplicitFrameworkReferences)' != 'true' and
|
||||
'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and
|
||||
('$(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>
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)versioning.targets" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue