Remove `SetEnvironmentVariable` Usage

Đang mở
#185 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
tooling

Hướng nghiên cứu

Start with the referenced lines in Workloads/_common/ai-support.ps1 and src/Workloads/_common/ai-support.ps1, then review the linked registry API example and reference issue. Check where SetEnvironmentVariable is used across the toolkit and whether a shared helper fits; done means those usages no longer convert expandable-string paths to strings.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Usage like the below mangles the path and converts it from an expand string to string.
https://github.com/microsoft/WindowsDeveloperConfig/blob/fb564611cfe461c6ec83ddd33f9844f11570a321/Workloads/_common/ai-support.ps1#L1943
https://github.com/microsoft/WindowsDeveloperConfig/blob/fb564611cfe461c6ec83ddd33f9844f11570a321/src/Workloads/_common/ai-support.ps1#L1986

Consider calling registry apis like this. Consider a helper function for the entire toolkit.

dotnet won't fix the api either.

Reference issue.

Ngôn ngữ chính
PowerShell
Star
3.5k
Fork
239
Merge trung bình
9 giờ 32 phút
Pull request đã merge (30 ngày)
39

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/WindowsDeveloperConfig

Tất cả issue của microsoft/WindowsDeveloperConfig

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.