Skip to content

[10.0.101]dotnet new gitattributes emits no file #52307

@sharpchen

Description

@sharpchen

Describe the bug

No file was created after dotnet new gitattributes

To Reproduce

$ dotnet --version
10.0.101
$ dotnet new gitattributes
The template "dotnet gitattributes file" was created successfully.
$ # .gitattributes is not created

Exceptions (if any)

Further technical details

details of dotnet --info

$ dotnet --info
.NET SDK:
 Version:           10.0.101
 Commit:            fad253f51b
 Workload version:  10.0.100-manifests.1773493e
 MSBuild version:   18.0.6+fad253f51

Runtime Environment:
 OS Name:     nixos
 OS Version:  26.05
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /nix/store/qjcwx5f3gbm9h3wnlqrqiyr8q8mic2yl-dotnet-sdk-10.0.101/share/dotnet/sdk/10.0.101/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
  Version:      10.0.1
  Architecture: x64
  Commit:       fad253f51b

.NET SDKs installed:
  9.0.308 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/sdk]
  10.0.101 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.11 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/shared/Microsoft.AspNetCore
.App]
  Microsoft.AspNetCore.App 10.0.1 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/shared/Microsoft.AspNetCore
.App]
  Microsoft.NETCore.App 9.0.11 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 10.0.1 [/nix/store/539cpwjk23lbgngmg9v14bgh2bbjc5ib-dotnet-combined/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_PATH                              [/nix/store/13bsw2xj251zn5b96a19f2y54l62gc30-dotnet-wrapped-combined/bin/dotnet]
  DOTNET_ROOT                              [/nix/store/13bsw2xj251zn5b96a19f2y54l62gc30-dotnet-wrapped-combined/share/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

Metadata

Metadata

Labels

Area-Common templatesCovers templates in the repo (classlib, console, common item templates)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions