question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need support globs outside of the project cone

See original GitHub issue

By 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
davkeancommented, May 4, 2017

@nguerrera The latter.

0reactions
srivatsncommented, May 26, 2017

Fixed by #1246

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found