-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Proposal]: Please add a method to the C# library to copy a directory with all its contents #61873
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Hello, adding such reference is no longer needed in C# projects that target modern .NET. You can add a |
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsCurrently C# does not have an inbuilt method to copy a directory and all its contents. To achieve this task, one needs to write code for it. An example is given on the MSDN website. What is strange, however, is that VB.NET already has an inbuilt method which allows you to achieve this task in one line. Sure, one can add a reference to What's more is that C# has long tried to compete with Java and has succeeded in many aspects. However, Java already has inbuilt methods to copy a directory and its contents and does not require extra work to achieve this. If such a feature were to be added to C#, it would definitely enhance the competitiveness of the language.
|
This is a duplicate of #60903. |
@aks2161989 Thank you for your proposal. Since this is a duplicate, I am going to close the issue. Please follow #60903 for updates. |
Currently C# does not have an inbuilt method to copy a directory and all its contents. To achieve this task, one needs to write code for it. An example is given on the MSDN website.
What is strange, however, is that VB.NET already has an inbuilt method which allows you to achieve this task in one line. Sure, one can add a reference to
Microsoft.VisualBasic
in their C# project and call the VB.NET method, but I am sure most C# developers would appreciate if such a method were to be incorporated in the language itself.What's more is that C# has long tried to compete with Java and has succeeded in many aspects. However, Java already has inbuilt methods to copy a directory and its contents and does not require extra work to achieve this. If such a feature were to be added to C#, it would definitely enhance the competitiveness of the language.
The text was updated successfully, but these errors were encountered: