Show all files in file explorer and some extent of refactoring (#32312)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Sat, 15 Feb 2020 00:13:58 +0000 (16:13 -0800)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2020 00:13:58 +0000 (16:13 -0800)
* Show all files in file explorer and some extent of refactoring

* adding comment

* improving the comment

Co-Authored-By: Santiago Fernandez Madero <safern@microsoft.com>
* Update src/libraries/Directory.Build.targets

Co-Authored-By: Santiago Fernandez Madero <safern@microsoft.com>
Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
src/libraries/Directory.Build.targets

index 231bc92..a977d74 100644 (file)
     <ExcludeFromPackage Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)' and '$(ExcludeCurrentNetCoreAppFromPackage)' == 'true'">true</ExcludeFromPackage>
     <ExcludeFromPackage Condition="'$(TargetFramework)' == '$(NetFrameworkCurrent)' and '$(ExcludeCurrentFullFrameworkFromPackage)' == 'true'">true</ExcludeFromPackage>
   </PropertyGroup>
+
+  <!-- The Default behavior in VS is to show files for the first target framework in TargetFrameworks property.
+        This is required to show all the files corresponding to all target frameworks in VS. -->
+  <ItemGroup>
+    <None Include="$(MSBuildProjectDirectory)\**\*.cs"
+          Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(Compile)" />
+  </ItemGroup>
 </Project>