Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

File IO #32668

Merged
merged 121 commits into from Dec 18, 2018
Merged

File IO #32668

Show file tree
Hide file tree
Changes from 112 commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
b448fa1
Baseline commit, get things back to state in original PR
paul1956 Sep 24, 2018
beb4fd7
Remove #Const that was left over from old PR
paul1956 Sep 24, 2018
b37d54c
Merge branch 'master' of https://github.com/paul1956/corefx
paul1956 Oct 6, 2018
5c31e56
Update to lastest master, addd FileIO, MsgBox on Windows (throw on ot…
paul1956 Oct 7, 2018
578dc10
Minor cleanup to not require VB 15.5, fix Msgbox Ref, remove unnessar…
paul1956 Oct 7, 2018
d64039c
Resolve Conflict
paul1956 Oct 7, 2018
0595054
FIx some Unix configuration issues
paul1956 Oct 7, 2018
0e81bf6
Add manual Tests on Windows for MsgBox and automatic test for Unix
paul1956 Oct 8, 2018
a56a933
Cleanup comments and Doc Comments in TextFieldParser and add addition…
paul1956 Oct 8, 2018
8e986aa
Cleanup formatting, dead comments...
paul1956 Oct 8, 2018
e3fc96f
Add missing license comments and more comment cleanup.
paul1956 Oct 8, 2018
0e94766
Minor changes to make code more readable
paul1956 Oct 8, 2018
e6fd317
Modify to conform to Reference Source format and ordering
paul1956 Oct 9, 2018
752e804
Move Constants out of Globals where they don't belong. Restore 3 Reso…
paul1956 Oct 10, 2018
f2f9681
More code cleanup
paul1956 Oct 10, 2018
603530c
Merge branch 'master' into FileIO1
paul1956 Oct 11, 2018
01a9637
Add tests framework for TextFieldParser
paul1956 Oct 11, 2018
6015255
Merge branch 'FileIO1' of https://github.com/paul1956/corefx into Fil…
paul1956 Oct 11, 2018
d3e594f
Resolve conflicts
paul1956 Oct 11, 2018
f718dc0
All tests for SpecialDirectories and TextFieldParser, add resources f…
paul1956 Oct 16, 2018
7b58cbf
FIx FixedFormatTest
paul1956 Oct 16, 2018
da2aef2
FIx spelling of Unix Error string
paul1956 Oct 16, 2018
a949726
Ignore errors in tests on OS's that don't support SpecialDirectory. A…
paul1956 Oct 16, 2018
ea4ceb9
Fix DriveInfo tests
paul1956 Oct 16, 2018
cb9cee1
Add Option Strict to tests to capture subtle bugs.
paul1956 Oct 16, 2018
ee06784
Merge FileSystem.Portable back into FileSystem, remove stale comments…
paul1956 Oct 17, 2018
189a6e5
Update logic for creating Application Specific Paths and remove inval…
paul1956 Oct 17, 2018
2ee8fbf
Add missing license text and fix location of Option's. Add needed com…
paul1956 Oct 17, 2018
9a9f253
Fix and add test for SpecialDirectories.MyDocument on Nano
paul1956 Oct 19, 2018
fe22219
Added commented out Debugging code to Dummy so others will find it. F…
paul1956 Oct 19, 2018
eba899c
Still trying to fix SpecialDirectories on Windows.10.Amd64.ClientRS4.…
paul1956 Oct 19, 2018
68b8326
Stilll trying to ignore failing test on Windows.10.Amd64.ClientRS4.Op…
paul1956 Oct 19, 2018
74d25d2
All files have been restore to original function order as best as po…
paul1956 Oct 20, 2018
39278ca
Move OS independ function from Windows specific file to Common file.
paul1956 Oct 20, 2018
828f1ca
Improve tests on Nano
paul1956 Oct 21, 2018
9cea56d
Temporary fix to debug failing test (Do not review)
paul1956 Oct 21, 2018
04db821
Fix issue where ApplicatioData folder was not created.
paul1956 Oct 21, 2018
cd73966
[Don't review] Still debugging failing special directory tests.
paul1956 Oct 22, 2018
3040712
Still working on fixes to OS specific SpecialDirectories
paul1956 Oct 22, 2018
4023740
Add additional Diagnostics to SpecialDirectoriesTests
paul1956 Oct 22, 2018
594815d
Remove trailing / or \
paul1956 Oct 22, 2018
3a0abc1
Correct comment
paul1956 Oct 22, 2018
89b00e1
Remove / and \ from end of SpecialFolder.ApplicationData.
paul1956 Oct 22, 2018
930dfda
Still fine tuning Special Directory Tests.
paul1956 Oct 22, 2018
d27ed91
More attempts to fix CurrentUserApplicationData on one system
paul1956 Oct 22, 2018
9ef5f97
Address PR comments, restructure code to follow Reference Source, fix…
paul1956 Oct 23, 2018
ccfb5a8
Add missing license file and remove Windows code from Unix builds
paul1956 Oct 23, 2018
8c184db
Fix Unix builds
paul1956 Oct 23, 2018
d48ccf1
HostProtection does not exist
paul1956 Oct 23, 2018
105fd4d
Fix string.length = 0 to = ""
paul1956 Oct 23, 2018
26cfda8
Address all PR Feedback. A lot of moving stuff around to match Refere…
paul1956 Oct 24, 2018
2404f30
Fix issue where MakeValidFileName always returned "" and implemented …
paul1956 Oct 24, 2018
efd3a1d
Address PR feedback, fix implementation CreateValidFullPath
paul1956 Oct 25, 2018
6c845f1
Remove debugging code causing tests to fail
paul1956 Oct 25, 2018
e7a50b3
Address more PR Feedback
paul1956 Oct 25, 2018
50cb064
Add code to catch all the ways special folders to fail for DEBUG ONLY…
paul1956 Oct 26, 2018
5df803a
Remove unused code and updates SpecialDirectoryTests for new logic
paul1956 Oct 26, 2018
757fe58
Fine tuning GetCompanyProductVersionList
paul1956 Oct 26, 2018
a9bcf47
More fine tuning of SpecialDirectories for Unix
paul1956 Oct 26, 2018
1373b0c
More fixes to SpecialDirectories
paul1956 Oct 26, 2018
f1d3329
Change tests for UnsupportedPlatforms to look for correct error.
paul1956 Oct 26, 2018
f26ab27
Change error handling and CurrentUserApplicationDataFolderTest to han…
paul1956 Oct 26, 2018
2ca5a3b
Update tests to account for PlatformNotSupportedException
paul1956 Oct 26, 2018
35580bf
Remove debug code, change error message to provide inner exception. F…
paul1956 Oct 26, 2018
95e143b
Moved MsgBox to Tests.VB, reverted all FileIO functions to match Refe…
paul1956 Oct 27, 2018
e30829f
Remove MessageBox Unix tests
paul1956 Oct 27, 2018
108aa0e
Remove MsgBox Code from project file vs comment out per PR Feedback.
paul1956 Oct 27, 2018
4ca5470
HostProtection not available, so it is commented out until I can get …
paul1956 Oct 27, 2018
4493b4a
Make FileIO.Windows not compile on Unix
paul1956 Oct 27, 2018
8c7de9e
Address PR feedback
paul1956 Oct 30, 2018
e58c1b4
Normalize line-feeds, remove some double CRLF's
paul1956 Oct 30, 2018
94cd1ce
Move MoveFileExFlags Enum to FileIO.Vb since it is needed for both Un…
paul1956 Oct 30, 2018
0e5843d
Add NativeMethods.Unix to handle MoveFileEx stub which will never be …
paul1956 Oct 30, 2018
3f013cf
Remove IsAttached used for debugging
paul1956 Oct 30, 2018
c611c64
Add a stub for ThrowWinIOError for Unix
paul1956 Oct 30, 2018
ccd1017
Move Windows Specific function to .Windows file, create stuff for Non…
paul1956 Oct 30, 2018
52d88b4
Fix Unix stub
paul1956 Oct 30, 2018
8e92eb8
Change test from = Unix to != Windows
paul1956 Oct 31, 2018
54824de
Address PR feedback, delete excluded files
paul1956 Nov 1, 2018
e8e2ec6
Move more MsgBox artifacts to VB.Test.Interactive.Windows
paul1956 Nov 1, 2018
229a41e
Move more MsgBox artifacts to VB/Tests/Interactive.Windows.vb
paul1956 Nov 1, 2018
d28a04a
Merge branch 'FileIO1' of https://github.com/paul1956/corefx into Fil…
paul1956 Nov 1, 2018
0cdc142
Move MoveFileExFlags to NativeTypes and remove some extra blank lines.
paul1956 Nov 1, 2018
a600af4
Remove Sealed Modifier from Ref file
paul1956 Nov 1, 2018
0bde4e7
Remove Sealed Modifier from Special Directories to match Reference
paul1956 Nov 1, 2018
924c563
Address PR Feedback
paul1956 Nov 2, 2018
ad61781
Restore file to Commit 7cad8486 before I made any changes
paul1956 Nov 2, 2018
3edf5e4
Remove Interaction from Public API, the fact that is not public is a …
paul1956 Nov 2, 2018
e0a985c
Revert back to commit 74126cad by Omar Tawfik
paul1956 Nov 3, 2018
24f6c5b
Remove Interaction.Windows.VB from VB Test Project.
paul1956 Nov 3, 2018
1f9d5bb
All long path test
paul1956 Nov 13, 2018
ded2b2c
Fix logic error in FileSystemWindows.vb and add helper routine to con…
paul1956 Nov 14, 2018
29c8fef
Minor cleanup, don't review
paul1956 Nov 14, 2018
96fa94a
FIx failures on non-windows platforms
paul1956 Nov 14, 2018
25a8f06
Add support for testing long paths,
paul1956 Nov 14, 2018
9f51441
Test on Unix to make sure exception in thrown, fix crash in LongDirec…
paul1956 Nov 14, 2018
ffe2889
Remove comment from Ref file, address PR feedback in SpecialDirectoie…
paul1956 Nov 15, 2018
47b46df
Fix LongDirectoryPathTest on systems that don't support long paths
paul1956 Nov 15, 2018
09b77d2
Fix off by 1, directory name length must be LESS than 248. Add some d…
paul1956 Nov 15, 2018
46bcb67
Fix another off by 1
paul1956 Nov 15, 2018
54511c8
Simplify LongPathTests
paul1956 Nov 15, 2018
1bfb5ba
Remove PathFeatures, create simple check for LongPathSupport, remove …
paul1956 Nov 16, 2018
05d8860
Improve LongPath detection. Add tests for LongPathSupport, at least o…
paul1956 Nov 16, 2018
5dd7ea3
Address PR Feedback and continue to test LongDirectoryPaths. Lots of …
paul1956 Nov 16, 2018
a02679a
Fix logic and remove duplicate function
paul1956 Nov 16, 2018
80f7b14
Remove all LongDirectoryPath testing, if needed add to future PR
paul1956 Nov 16, 2018
af26d55
Add LongDirectoryPathTest back with improved logic, add back Shared t…
paul1956 Nov 16, 2018
fa13905
Test LongDirectoryPaths without creating multiple subdirectories auto…
paul1956 Nov 16, 2018
7eced6a
Correct length of directory name
paul1956 Nov 16, 2018
01649dc
Add additional checks for LongDirectoryPathTest to handle different e…
paul1956 Nov 16, 2018
29340a9
Add additional diagnostic to LongDirectoryPathTest, reduce duplicate …
paul1956 Nov 17, 2018
23406a3
Issue #3387 will prevent LongDirectPath from actually working on all …
paul1956 Nov 17, 2018
84953b2
Address all PR Feedback
paul1956 Dec 5, 2018
b3185fd
Fix helper function WriteFIle, remove left over code, fix off by 1
paul1956 Dec 5, 2018
dbb5762
Fix test for Wildcard Match
paul1956 Dec 5, 2018
2bb4445
Fix more off by 1 and some comments
paul1956 Dec 5, 2018
85c8ddd
Add comment to reflect source of MultiFormatTest
paul1956 Dec 7, 2018
0e9977e
Merge branch 'master' into FileIO1
cston Dec 14, 2018
5cdc4d1
Update Configuration.props
cston Dec 17, 2018
eef3cb7
Update proj files
cston Dec 17, 2018
7946e18
Exclude Windows implementation from package
cston Dec 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 22 additions & 22 deletions src/Microsoft.VisualBasic/Microsoft.VisualBasic.sln
Expand Up @@ -4,15 +4,15 @@ VisualStudioVersion = 15.0.27213.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualBasic.Tests", "tests\Microsoft.VisualBasic.Tests.csproj", "{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}"
ProjectSection(ProjectDependencies) = postProject
{a32671b6-5470-4f9c-9cd8-4094b9ab0799} = {a32671b6-5470-4f9c-9cd8-4094b9ab0799}
{A32671B6-5470-4F9C-9CD8-4094B9AB0799} = {A32671B6-5470-4F9C-9CD8-4094B9AB0799}
EndProjectSection
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.VisualBasic.VB.Tests", "tests\VB\Microsoft.VisualBasic.VB.Tests.vbproj", "{da95454e-5f0e-4f8a-871a-25d1ab62867a}"
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.VisualBasic.VB.Tests", "tests\VB\Microsoft.VisualBasic.VB.Tests.vbproj", "{DA95454E-5F0E-4F8A-871A-25D1AB62867A}"
ProjectSection(ProjectDependencies) = postProject
{a32671b6-5470-4f9c-9cd8-4094b9ab0799} = {a32671b6-5470-4f9c-9cd8-4094b9ab0799}
{A32671B6-5470-4F9C-9CD8-4094B9AB0799} = {A32671B6-5470-4F9C-9CD8-4094B9AB0799}
EndProjectSection
EndProject
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.VisualBasic", "src\Microsoft.VisualBasic.vbproj", "{a32671b6-5470-4f9c-9cd8-4094b9ab0799}"
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Microsoft.VisualBasic", "src\Microsoft.VisualBasic.vbproj", "{A32671B6-5470-4F9C-9CD8-4094B9AB0799}"
ProjectSection(ProjectDependencies) = postProject
{82A4357C-0A9F-4970-AAEA-216A73D8A73E} = {82A4357C-0A9F-4970-AAEA-216A73D8A73E}
EndProjectSection
Expand All @@ -31,30 +31,30 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Debug|Any CPU.ActiveCfg = netstandard-Debug|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Debug|Any CPU.Build.0 = netstandard-Debug|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Release|Any CPU.ActiveCfg = netstandard-Release|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Release|Any CPU.Build.0 = netstandard-Release|Any CPU
{da95454e-5f0e-4f8a-871a-25d1ab62867a}.Debug|Any CPU.ActiveCfg = netstandard-Debug|Any CPU
{da95454e-5f0e-4f8a-871a-25d1ab62867a}.Debug|Any CPU.Build.0 = netstandard-Debug|Any CPU
{da95454e-5f0e-4f8a-871a-25d1ab62867a}.Release|Any CPU.ActiveCfg = netstandard-Release|Any CPU
{da95454e-5f0e-4f8a-871a-25d1ab62867a}.Release|Any CPU.Build.0 = netstandard-Release|Any CPU
{a32671b6-5470-4f9c-9cd8-4094b9ab0799}.Debug|Any CPU.ActiveCfg = netstandard-Debug|Any CPU
{a32671b6-5470-4f9c-9cd8-4094b9ab0799}.Debug|Any CPU.Build.0 = netstandard-Debug|Any CPU
{a32671b6-5470-4f9c-9cd8-4094b9ab0799}.Release|Any CPU.ActiveCfg = netstandard-Release|Any CPU
{a32671b6-5470-4f9c-9cd8-4094b9ab0799}.Release|Any CPU.Build.0 = netstandard-Release|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Debug|Any CPU.ActiveCfg = netstandard-Debug|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Debug|Any CPU.Build.0 = netstandard-Debug|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Release|Any CPU.ActiveCfg = netstandard-Release|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Release|Any CPU.Build.0 = netstandard-Release|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Debug|Any CPU.ActiveCfg = netstandard-Windows_NT-Debug|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Debug|Any CPU.Build.0 = netstandard-Windows_NT-Debug|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Release|Any CPU.ActiveCfg = netstandard-Windows_NT-Release|Any CPU
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8}.Release|Any CPU.Build.0 = netstandard-Windows_NT-Release|Any CPU
{DA95454E-5F0E-4F8A-871A-25D1AB62867A}.Debug|Any CPU.ActiveCfg = netstandard-Windows_NT-Debug|Any CPU
{DA95454E-5F0E-4F8A-871A-25D1AB62867A}.Debug|Any CPU.Build.0 = netstandard-Windows_NT-Debug|Any CPU
{DA95454E-5F0E-4F8A-871A-25D1AB62867A}.Release|Any CPU.ActiveCfg = netstandard-Unix-Release|Any CPU
{DA95454E-5F0E-4F8A-871A-25D1AB62867A}.Release|Any CPU.Build.0 = netstandard-Unix-Release|Any CPU
{A32671B6-5470-4F9C-9CD8-4094B9AB0799}.Debug|Any CPU.ActiveCfg = netstandard-Windows_NT-Debug|Any CPU
{A32671B6-5470-4F9C-9CD8-4094B9AB0799}.Debug|Any CPU.Build.0 = netstandard-Windows_NT-Debug|Any CPU
{A32671B6-5470-4F9C-9CD8-4094B9AB0799}.Release|Any CPU.ActiveCfg = netstandard-Unix-Release|Any CPU
{A32671B6-5470-4F9C-9CD8-4094B9AB0799}.Release|Any CPU.Build.0 = netstandard-Unix-Release|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Debug|Any CPU.ActiveCfg = netstandard-Windows_NT-Debug|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Debug|Any CPU.Build.0 = netstandard-Windows_NT-Debug|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Release|Any CPU.ActiveCfg = netstandard-Windows_NT-Release|Any CPU
{82A4357C-0A9F-4970-AAEA-216A73D8A73E}.Release|Any CPU.Build.0 = netstandard-Windows_NT-Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{325260D6-D5DD-4E06-9DA2-9AF2AD9DE8C8} = {1A2F9F4A-A032-433E-B914-ADD5992BB178}
{da95454e-5f0e-4f8a-871a-25d1ab62867a} = {1A2F9F4A-A032-433E-B914-ADD5992BB178}
{a32671b6-5470-4f9c-9cd8-4094b9ab0799} = {E107E9C1-E893-4E87-987E-04EF0DCEAEFD}
{DA95454E-5F0E-4F8A-871A-25D1AB62867A} = {1A2F9F4A-A032-433E-B914-ADD5992BB178}
{A32671B6-5470-4F9C-9CD8-4094B9AB0799} = {E107E9C1-E893-4E87-987E-04EF0DCEAEFD}
{82A4357C-0A9F-4970-AAEA-216A73D8A73E} = {2E666815-2EDB-464B-9DF6-380BF4789AD4}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.VisualBasic/ref/Configurations.props
Expand Up @@ -2,7 +2,8 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
netstandard;
netstandard-Unix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference assemblies cannot differ by runtime. Runtime is never considered when resolving files that get passed to the compiler.

netstandard-Windows_NT;
</BuildConfigurations>
</PropertyGroup>
</Project>
171 changes: 164 additions & 7 deletions src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.cs
Expand Up @@ -44,6 +44,11 @@ public sealed partial class Collection : System.Collections.ICollection, System.
public void Remove(int Index) { }
public void Remove(string Key) { }
}
public enum CompareMethod
{
Binary = 0,
Text = 1,
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move CompareMethod back to original location.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is where it was before I started in Commit 2dde65

[System.AttributeUsageAttribute((System.AttributeTargets)(4), Inherited=false, AllowMultiple=false)]
public sealed partial class ComClassAttribute : System.Attribute
{
Expand All @@ -56,17 +61,11 @@ public sealed partial class ComClassAttribute : System.Attribute
public string InterfaceID { get { throw null; } }
public bool InterfaceShadows { get { throw null; } set { } }
}
public enum CompareMethod
{
Binary = 0,
Text = 1,
}
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
public sealed partial class Constants
{
internal Constants() { }
public const string vbBack = "\b";
public const Microsoft.VisualBasic.CompareMethod vbBinaryCompare = Microsoft.VisualBasic.CompareMethod.Binary;
public const string vbCr = "\r";
public const string vbCrLf = "\r\n";
public const string vbFormFeed = "\f";
Expand All @@ -76,9 +75,11 @@ public sealed partial class Constants
public const string vbNullChar = "\0";
public const string vbNullString = null;
public const string vbTab = "\t";
public const Microsoft.VisualBasic.CompareMethod vbTextCompare = Microsoft.VisualBasic.CompareMethod.Text;
public const string vbVerticalTab = "\v";
public const CompareMethod vbBinaryCompare = CompareMethod.Binary;
public const CompareMethod vbTextCompare = CompareMethod.Text;
}

public sealed partial class ControlChars
{
public const char Back = '\b';
Expand Down Expand Up @@ -482,3 +483,159 @@ public partial class NetworkAvailableEventArgs : System.EventArgs
public bool IsNetworkAvailable { get { throw null; } }
}
}
namespace Microsoft.VisualBasic.FileIO
{
public enum DeleteDirectoryOption
{
DeleteAllContents = 5,
ThrowIfDirectoryNonEmpty = 4,
}
public enum FieldType
{
Delimited = 0,
FixedWidth = 1,
}
public partial class FileSystem
{
public FileSystem() { }
public static string CurrentDirectory { get { throw null; } set { } }
public static System.Collections.ObjectModel.ReadOnlyCollection<System.IO.DriveInfo> Drives { get { throw null; } }
public static string CombinePath(string baseDirectory, string relativePath) { throw null; }
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName) { }
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite) { }
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI) { }
public static void CopyDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel) { } public static void CopyFile(string sourceFileName, string destinationFileName) { }
public static void CopyFile(string sourceFileName, string destinationFileName, bool overwrite) { }
public static void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI) { }
public static void CopyFile(string sourceFileName, string destinationFileName, UIOption showUI, UICancelOption onUserCancel) { }
public static void CreateDirectory(string directory) { }
public static void DeleteDirectory(string directory, DeleteDirectoryOption onDirectoryNotEmpty) { }
public static void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle) { }
public static void DeleteDirectory(string directory, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel) { }
public static void DeleteFile(string file) { }
public static void DeleteFile(string file, UIOption showUI, RecycleOption recycle) { }
public static void DeleteFile(string file, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel) { }
public static bool DirectoryExists(string directory) { throw null; }
public static bool FileExists(string file) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, Microsoft.VisualBasic.FileIO.SearchOption searchType) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> FindInFiles(string directory, string containsText, bool ignoreCase, Microsoft.VisualBasic.FileIO.SearchOption searchType, params string[] fileWildcards) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> GetDirectories(string directory) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> GetDirectories(string directory, SearchOption searchType, params string[] wildcards) { throw null; }
public static System.IO.DirectoryInfo GetDirectoryInfo(string directory) { throw null; }
public static System.IO.DriveInfo GetDriveInfo(string drive) { throw null; }
public static System.IO.FileInfo GetFileInfo(string file) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> GetFiles(string directory) { throw null; }
public static System.Collections.ObjectModel.ReadOnlyCollection<string> GetFiles(string directory, SearchOption searchType, params string[] wildcards) { throw null; }
public static string GetName(string path) { throw null; }
public static string GetParentPath(string path) { throw null; }
public static string GetTempFileName() { throw null; }
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName) { }
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, bool overwrite) { }
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI) { }
public static void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel) { }
public static void MoveFile(string sourceFileName, string destinationFileName) { }
public static void MoveFile(string sourceFileName, string destinationFileName, bool overwrite) { }
public static void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI) { }
public static void MoveFile(string sourceFileName, string destinationFileName, UIOption showUI,UICancelOption onUserCancel) { }
public static TextFieldParser OpenTextFieldParser(string file) { throw null; }
public static TextFieldParser OpenTextFieldParser(string file, params int[] fieldWidths) { throw null; }
public static TextFieldParser OpenTextFieldParser(string file, params string[] delimiters) { throw null; }
public static System.IO.StreamReader OpenTextFileReader(string file) { throw null; }
public static System.IO.StreamReader OpenTextFileReader(string file, System.Text.Encoding encoding) { throw null; }
public static System.IO.StreamWriter OpenTextFileWriter(string file, bool append) { throw null; }
public static System.IO.StreamWriter OpenTextFileWriter(string file, bool append, System.Text.Encoding encoding) { throw null; }
public static byte[] ReadAllBytes(string file) { throw null; }
public static string ReadAllText(string file) { throw null; }
public static string ReadAllText(string file, System.Text.Encoding encoding) { throw null; }
public static void RenameDirectory(string directory, string newName) { }
public static void RenameFile(string file, string newName) { }
public static void WriteAllBytes(string file, byte[] data, bool append) { }
public static void WriteAllText(string file, string text, bool append) { }
public static void WriteAllText(string file, string text, bool append, System.Text.Encoding encoding) { }
}
public partial class MalformedLineException : System.Exception
{
public MalformedLineException() { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
protected MalformedLineException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public MalformedLineException(string message) { }
public MalformedLineException(string message, System.Exception innerException) { }
public MalformedLineException(string message, long lineNumber) { }
public MalformedLineException(string message, long lineNumber, System.Exception innerException) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Always)]
public long LineNumber { get { throw null; } set { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
public override string ToString() { throw null; }
}
public enum RecycleOption
{
DeletePermanently = 2,
SendToRecycleBin = 3,
}
public enum SearchOption
{
SearchAllSubDirectories = 3,
SearchTopLevelOnly = 2,
}
public partial class SpecialDirectories
{
public SpecialDirectories() { }
public static string AllUsersApplicationData { get { throw null; } }
public static string CurrentUserApplicationData { get { throw null; } }
public static string Desktop { get { throw null; } }
public static string MyDocuments { get { throw null; } }
public static string MyMusic { get { throw null; } }
public static string MyPictures { get { throw null; } }
public static string ProgramFiles { get { throw null; } }
public static string Programs { get { throw null; } }
public static string Temp { get { throw null; } }
}
public partial class TextFieldParser : System.IDisposable
{
public TextFieldParser(System.IO.Stream stream) { }
public TextFieldParser(System.IO.Stream stream, System.Text.Encoding defaultEncoding) { }
public TextFieldParser(System.IO.Stream stream, System.Text.Encoding defaultEncoding, bool detectEncoding) { }
public TextFieldParser(System.IO.Stream stream, System.Text.Encoding defaultEncoding, bool detectEncoding, bool leaveOpen) { }
public TextFieldParser(System.IO.TextReader reader) { }
public TextFieldParser(string path) { }
public TextFieldParser(string path, System.Text.Encoding defaultEncoding) { }
public TextFieldParser(string path, System.Text.Encoding defaultEncoding, bool detectEncoding) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public string[] CommentTokens { get { throw null; } set { } }
public string[] Delimiters { get { throw null; } set { } }
public bool EndOfData { get { throw null; } }
public string ErrorLine { get { throw null; } }
public long ErrorLineNumber { get { throw null; } }
public int[] FieldWidths { get { throw null; } set { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public bool HasFieldsEnclosedInQuotes { get { throw null; } set { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public long LineNumber { get { throw null; } }
public Microsoft.VisualBasic.FileIO.FieldType TextFieldType { get { throw null; } set { } }
public bool TrimWhiteSpace { get { throw null; } set { } }
public void Close() { }
void Dispose() { }
protected virtual void Dispose(bool disposing) { }
~TextFieldParser() { }
public string PeekChars(int numberOfChars) { throw null; }
public string[] ReadFields() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public string ReadLine() { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public string ReadToEnd() { throw null; }
public void SetDelimiters(params string[] delimiters) { }
public void SetFieldWidths(params int[] fieldWidths) { }
void System.IDisposable.Dispose() { throw new System.NotImplementedException(); }
}
public enum UICancelOption
{
DoNothing = 2,
ThrowException = 3
}
public enum UIOption
{
OnlyErrorDialogs = 2,
AllDialogs = 3
}
}
2 changes: 1 addition & 1 deletion src/Microsoft.VisualBasic/ref/Microsoft.VisualBasic.csproj
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
<ProjectGuid>{82A4357C-0A9F-4970-AAEA-216A73D8A73E}</ProjectGuid>
<Configurations>netstandard-Debug;netstandard-Release</Configurations>
<Configurations>netstandard-Unix-Debug;netstandard-Unix-Release;netstandard-Windows_NT-Debug;netstandard-Windows_NT-Release</Configurations>
</PropertyGroup>
<ItemGroup>
<Compile Include="Microsoft.VisualBasic.cs" />
Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.VisualBasic/src/Configurations.props
Expand Up @@ -2,7 +2,8 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
netstandard;
netstandard-Unix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to keep a RID-less implementation since this goes into a package. Can we rename this configuration from netstandard-Unix to just netstandard? Then below give the FileSystem.Unix.vb file a different name.

netstandard-Windows_NT;
_netfx;
</BuildConfigurations>
</PropertyGroup>
Expand Down