An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# A dotnet tool for moving project files into the directories specified by the solution (.sln) file

[![NuGet Badge](https://buildstats.info/nuget/RecreateSolutionStructure)](https://www.nuget.org/packages/RecreateSolutionStructure/)
[![codecov](https://codecov.io/gh/rosenbjerg/recreate-sln-structure/branch/main/graph/badge.svg)](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) file

Options:
-i, --ignore-missing-projects Ignore missing project files [default: False]
--version Show version information
-?, -h, --help Show help and usage information
```