https://github.com/rosenbjerg/recreate-sln-structure
A dotnet tool for moving project files into the directories specified by the solution (.sln) file.
https://github.com/rosenbjerg/recreate-sln-structure
cache-optimization docker docker-build dotnet dotnet-restore sln
Last synced: 11 days ago
JSON representation
A dotnet tool for moving project files into the directories specified by the solution (.sln) file.
- Host: GitHub
- URL: https://github.com/rosenbjerg/recreate-sln-structure
- Owner: rosenbjerg
- License: mit
- Created: 2023-02-07T15:59:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T21:19:51.000Z (about 2 years ago)
- Last Synced: 2025-05-05T15:06:51.884Z (18 days ago)
- Topics: cache-optimization, docker, docker-build, dotnet, dotnet-restore, sln
- Language: C#
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A dotnet tool for moving project files into the directories specified by the solution (.sln) file
[](https://www.nuget.org/packages/RecreateSolutionStructure/)
[](https://codecov.io/gh/rosenbjerg/recreate-sln-structure)Useful for optimizing cache reuse in containerized .NET builds
## Usage example
```dockerfile
COPY ["MySolution.sln", "**/*.csproj", "./"]
RUN recreate-sln-structure MySolution.sln && dotnet restore MySolution.sln
```## Help
```
Description:
Recreate solution directory tree, i.e. for use in building a containerized .NET application with cached restore layer
Takes the path to a solution (.sln) file as input, and moves
Example: 'recreate-sln-structure MySolution.sln'Usage:
recreate-sln-structure [options]Arguments:
File path to the solution (.sln) fileOptions:
-i, --ignore-missing-projects Ignore missing project files [default: False]
--version Show version information
-?, -h, --help Show help and usage information
```