-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use props to hide files instead of .pp extension
The workaround of using the .pp extension no longer works in MSBuild 17. Using the `Visible` MSBuild property makes the intent more clear anyway. https://til.cazzulino.com/dotnet/nuget/hide-contentfiles-from-your-nuget-packages
- Loading branch information
1 parent
6ee2c0d
commit f4cb343
Showing
4 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
|
||
<!-- | ||
Hide content files from Visual Studio solution explorer. Adapted from: | ||
https://til.cazzulino.com/dotnet/nuget/hide-contentfiles-from-your-nuget-packages | ||
--> | ||
<ItemGroup> | ||
<Compile Update="@(Compile)"> | ||
<Visible Condition="'%(NuGetItemType)' == 'Compile' and '%(NuGetPackageId)' == 'IsExternalInit'">false</Visible> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
</Project> |