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.

Place files in root of output

See original GitHub issue

I’m creating a template where I want to include a .gitlab-ci.yml and README.md, which needs to be in the root of the output. As in, if it’s a solution, I’d want them in the same folder as the sln, but if it’s a project, I’d want it in the same folder as the csproj.

Right now, I have to make two separate templates, one as a solution, containing the project, and one with the project. Even then when using the solution template with Visual Studio, I have to check Place solution in same directory as project for the files in my solution template to be placed besides the solution. I feel like I should be able to achieve what I want with only one template though.

Would be nice with some kind of option to always place specific files in the “root” of the output. Or get to know what the user selects during the Visual Studio solution creation process, so I can do a postAction where I move the files?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
phenningcommented, Jan 3, 2022

@h3rmanj since this issue is closed and the feature relates to the Visual Studio host, we can continue this in the linked issue:

https://github.com/sayedihashimi/template-sample/issues/31

1reaction
h3rmanjcommented, Jun 14, 2021

No, I do not use that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter: Input Output
A ROOT file is like a UNIX file directory. It can contain directories and objects organized in unlimited number of levels. It also...
Read more >
ROOT files
ROOT files contain C++ objects that are stored to disk. ... column x that contains random numbers, and stores that dataset in a...
Read more >
Copy to Output Directory copies folder structure but only ...
@Jonno The goal is to copy the file(s) directly to the root output directory, regardless of RecursiveDirectory. The built-in "Content" Build ...
Read more >
How to copy a folder to output directory and keep its root ...
I haven't tried it with wildcards, works fine for just one file.
Read more >
Content roots | IntelliJ IDEA Documentation
Create a content root for your project and configure a folder structure for your production code, your tests, and resource files.
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