Skip to content

Commit

Permalink
Move default setting of DisableImplicitNamespaceImports to .targets
Browse files Browse the repository at this point in the history
Users set DisableImplicitFrameworkReferences in project file, so if the default is set in .props then it won't affect the value of DisableImplicitNamespaceImports
  • Loading branch information
basoundr committed May 18, 2017
1 parent ffdbc7f commit 79d9c53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<OptionCompare Condition=" '$(OptionCompare)' == '' ">Binary</OptionCompare>
<OptionStrict Condition=" '$(OptionStrict)' == '' ">Off</OptionStrict>
<OptionInfer Condition=" '$(OptionInfer)' == '' ">On</OptionInfer>
<DisableImplicitNamespaceImports Condition="'$(DisableImplicitNamespaceImports)'==''">$(DisableImplicitFrameworkReferences)</DisableImplicitNamespaceImports>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Copyright (c) .NET Foundation. All rights reserved.
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants),$(ImplicitFrameworkDefine)</DefineConstants>
<DisableImplicitNamespaceImports Condition="'$(DisableImplicitNamespaceImports)'==''">$(DisableImplicitFrameworkReferences)</DisableImplicitNamespaceImports>
</PropertyGroup>
<ItemGroup Condition=" '$(DisableImplicitNamespaceImports)' != 'true' and '$(TargetFrameworkIdentifier)' == '.NETFramework'">
<!-- These namespaces are present in 2.0 Framework assemblies -->
Expand Down

0 comments on commit 79d9c53

Please sign in to comment.