Need support globs outside of the project cone
See original GitHub issueBy default, project items outside of the project cone are not shown in the solution explorer, unless they have link metadata. To show files added through glob, the developer must add globs like this inside the project:
<Compile Include="..\Shared\**\*.cs">
<Link>ExternalFiles\%(RecursiveDir)\%(Filename)%(Extension)</Link>
</Compile>
But this is hard to remember and hard to use. The idea is to create something in the .targets file, and apply Link metadata to items with <LinkBase> metadata, so inside the project, it can be:
<Compile Include="..\Shared\**\*.cs">
<LinkBase>ExternalFiles</LinkBase>
</Compile>
or
<Compile Include="..\Shared\**\*.cs">
<LinkBase></LinkBase>
</Compile>
If it maps to the project root folder directly.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Unmanaged DLLs of a nuget package show up in the root . ...
In order to support globs outside of the project cone (ie ), we decided that CPS should show items outside the project cone...
Read more >MSBuild reference for .NET SDK projects
Use the DefaultItemExcludesInProjectFolder property to define glob patterns for files and folders in the project folder that should be excluded ...
Read more >Including content files in .csproj that are outside the project ...
I have a C# project say MyProject.csproj located at "C:\Projects\MyProject\". I also have files that I want copied into the output directory of ......
Read more >Git - git-sparse-checkout Documentation
This command is used to create sparse checkouts, which change the working tree from having all tracked files present to only having a...
Read more >Git - git-add Documentation
The git status command can be used to obtain a summary of which files have changes that are staged for the next commit....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nguerrera The latter.
Fixed by #1246