Commit Graph

2 Commits

Author SHA1 Message Date
Luc BOLOGNA
2d87d3751d **Update .gitignore and improve build.nu script**:
- Updated the `.gitignore` file to ignore Visual Studio's `.vs` directories.
- Modified the `update_dotnet_version` function in `build.nu` to enhance the regular expression used for parsing information from the `dotnet --info` command.

**Changes:**
1. **Updated .gitignore:**
   - Added patterns to ignore Visual Studio's `.vs` directories to keep the repository clean and reduce unnecessary files tracked by Git.

2. **Improved build.nu Script:**
   - Fixed an issue with the `nu build.nu publish` command under Windows 11, Visual Studio 2022, and .NET SDK 9.
   - Updated the regular expression in the `update_dotnet_version` function to correctly parse the version information from the `dotnet --info` output.

**Example Output of `dotnet --info`:**
```plaintext
.NET SDK:
 Version:           9.0.101
 Commit:            eedb237549
 Workload version:  9.0.100-manifests.4a280210
 MSBuild version:   17.12.12+1cce77968

[...]

Host:
  Version:      9.0.0
  Architecture: x64
  Commit:       9d5a6a9aa4
```
2024-12-26 13:02:06 +01:00
494e72d868
Init 2024-03-28 22:26:48 +01:00