Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ PublishReadyToRun = false # Disable PublishReadyToRun

| `[msbuild]` | Type | Description |
|------------------|------------|----------------------------|
| `project` | `string[]` | Specifies a list of the path to the project (e.g `csproj`) or solution `*.sln` files to compile with MSBuild. If this path uses a relative path, it will be relative to the location of your TOML configuration file.
| `project` | `string[]` | Specifies a list of the path to the project (e.g `csproj`) or solution `*.sln` / `*.slnx` files to compile with MSBuild. If this path uses a relative path, it will be relative to the location of your TOML configuration file.
| `configuration` | `string` | Specifies the MSBuild `Configuration` property. By default this is set to `Release`.
| `configuration_debug` | `string` | Specifies the MSBuild `Configuration` property for a debug build. By default this is set to `Debug`.
| `properties` | `map<string, string>` | Allows to defines properties that will be pass by MSBuild.
Expand Down Expand Up @@ -796,7 +796,7 @@ Arguments:
dotnet-releaser.toml TOML configuration file path to create. Default is: dotnet-releaser.toml

Options:
--project <project_file> A - relative - path to a solution file (.sln) or project file (.csproj, .fsproj, .vbproj). By default, it will try to find a solution file where this command is run or where the output dotnet-releaser.toml file
--project <project_file> A - relative - path to a solution file (.sln, .slnx) or project file (.csproj, .fsproj, .vbproj). By default, it will try to find a solution file where this command is run or where the output dotnet-releaser.toml file
is specified.
--user <GitHub_user/org> The GitHub user/org where the packages will be published. If not specified, it will try to detect automatically if there is a git repository configured from the folder (and parents) of the TOML configuration
file, and extract any git remote that could give this information.
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ By default, `dotnet-releaser` will:
```
dotnet tool install --global dotnet-releaser
```
- Go to a folder where you have your solution `.sln` file or your project file (`.csproj`, `.fsproj`, `.vbproj`) and run:
- Go to a folder where you have your solution `.sln`/`.slnx` file or your project file (`.csproj`, `.fsproj`, `.vbproj`) and run:
```
dotnet releaser new
```
Expand Down
5 changes: 3 additions & 2 deletions src/dotnet-releaser/ReleaserApp.New.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ private async Task<bool> CreateConfigurationFile(string? destinationFilePath, st
var folder = Path.GetFullPath(Path.GetDirectoryName(destinationFilePath)!);
if (projectFile is null)
{
projectFile = Directory.GetFiles(folder).FirstOrDefault(x => x.EndsWith(".sln"));
projectFile = Directory.GetFiles(folder).FirstOrDefault(x => x.EndsWith(".slnx"))
?? Directory.GetFiles(folder).FirstOrDefault(x => x.EndsWith(".sln"));
string kind = "Solution";
if (projectFile is null)
{
projectFile = Directory.GetFiles(folder).FirstOrDefault(x => x.EndsWith(".csproj") || x.EndsWith(".fsproj") || x.EndsWith(".vbproj"));
kind = "Project";
if (projectFile is null)
{
Error($"Unable to find a solution file (.sln) or project files (.csproj, .fsproj, .vbproj) in the current folder `{folder}`");
Error($"Unable to find a solution file (.sln, .slnx) or project files (.csproj, .fsproj, .vbproj) in the current folder `{folder}`");
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-releaser/ReleaserApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static async Task<int> Run(string[] args)
{
newCommand.Description = "Create a dotnet-releaser TOML configuration file for a specified project.";
var configurationFileArg = AddTomlConfigurationArgument(newCommand, true);
var projectOption = newCommand.Option<string>("--project <project_file>", "A - relative - path to a solution file (.sln) or project file (.csproj, .fsproj, .vbproj). By default, it will try to find a solution file where this command is run or where the output dotnet-releaser.toml file is specified.", CommandOptionType.SingleValue);
var projectOption = newCommand.Option<string>("--project <project_file>", "A - relative - path to a solution file (.sln, .slnx) or project file (.csproj, .fsproj, .vbproj). By default, it will try to find a solution file where this command is run or where the output dotnet-releaser.toml file is specified.", CommandOptionType.SingleValue);
var userOption = newCommand.Option<string>("--user <GitHub_user/org>", "The GitHub user/org where the packages will be published. If not specified, it will try to detect automatically if there is a git repository configured from the folder (and parents) of the TOML configuration file, and extract any git remote that could give this information.", CommandOptionType.SingleValue);
var repoOption = newCommand.Option<string>("--repo <GitHub_repo>", "The GitHub repo name where the packages will be published. If not specified, it will try to detect automatically if there is a git repository configured from the folder (and parents) of the TOML configuration file, and extract any git remote that could give this information.", CommandOptionType.SingleValue);
var forceOption = newCommand.Option<bool>("--force", "Force overwriting the existing TOML configuration file.", CommandOptionType.NoValue);
Expand Down
Loading