Skip to content

Commit 5f7ae53

Browse files
authored
fix: include XML documentation in package (#744)
Fixes #743
1 parent f3cdce3 commit 5f7ae53

82 files changed

Lines changed: 1168 additions & 360 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Directory.Build.props

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55
<Authors>Tatham Oddie &amp; friends</Authors>
66
<SignAssembly Condition="'$(Configuration)' == 'Release'">True</SignAssembly>
77
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)StrongName.snk</AssemblyOriginatorKeyFile>
8-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
9-
<IncludeSymbols>true</IncludeSymbols>
10-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
11-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
128
<LangVersion>9.0</LangVersion>
139
<PackageTags>testing</PackageTags>
1410
<PackageProjectUrl>https://github.com/System-IO-Abstractions/System.IO.Abstractions</PackageProjectUrl>
1511
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1612
<PackageReadmeFile>README.md</PackageReadmeFile>
13+
<DefineConstants Condition="'$(TargetFramework)' != 'net461'">$(DefineConstants);FEATURE_FILE_SYSTEM_ACL_EXTENSIONS</DefineConstants>
1714
<DefineConstants Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net5.0' OR '$(TargetFramework)' == 'netcoreapp3.1' OR '$(TargetFramework)' == 'netstandard2.1'">$(DefineConstants);FEATURE_ASYNC_FILE;FEATURE_ENUMERATION_OPTIONS;FEATURE_ADVANCED_PATH_OPERATIONS;FEATURE_PATH_JOIN_WITH_SPAN</DefineConstants>
1815
<DefineConstants Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net5.0'">$(DefineConstants);FEATURE_FILE_MOVE_WITH_OVERWRITE</DefineConstants>
1916
<DefineConstants Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net5.0'">$(DefineConstants);FEATURE_SUPPORTED_OS_ATTRIBUTE</DefineConstants>

benchmarks/System.IO.Abstractions.Benchmarks/FileSystemAbstractionBenchmarks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class FileSystemAbstractionBenchmarks
2222
#endregion
2323

2424
#region CTOR's
25-
public FileSystemAbstractionBenchmarks( )
25+
public FileSystemAbstractionBenchmarks()
2626
{
2727
// Initialize file support
2828
_fileSupport = new FileSupport();

renovate.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

renovate.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
extends: ["config:base"],
3+
ignorePaths: [
4+
// Clear the default list to enable Renovate for all files
5+
],
6+
}

src/Directory.Build.props

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project>
2+
<Import Project="../Directory.Build.props" />
3+
<PropertyGroup>
4+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
5+
<IncludeSymbols>true</IncludeSymbols>
6+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
8+
<GenerateDocumentationFile >true</GenerateDocumentationFile>
9+
<InheritDocEnabled>true</InheritDocEnabled>
10+
</PropertyGroup>
11+
</Project>

src/System.IO.Abstractions.TestingHelpers/CommonExceptions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace System.IO.Abstractions.TestingHelpers
44
{
55
internal static class CommonExceptions
66
{
7-
private const int _fileLockHResult = unchecked((int) 0x80070020);
7+
private const int _fileLockHResult = unchecked((int)0x80070020);
88

99
public static FileNotFoundException FileNotFound(string path) =>
1010
new FileNotFoundException(
@@ -37,9 +37,9 @@ public static UnauthorizedAccessException AccessDenied(string path) =>
3737
public static Exception InvalidUseOfVolumeSeparator() =>
3838
new NotSupportedException(StringResources.Manager.GetString("THE_PATH_IS_NOT_OF_A_LEGAL_FORM"));
3939

40-
public static Exception PathIsNotOfALegalForm(string paramName) =>
40+
public static Exception PathIsNotOfALegalForm(string paramName) =>
4141
new ArgumentException(
42-
StringResources.Manager.GetString("THE_PATH_IS_NOT_OF_A_LEGAL_FORM"),
42+
StringResources.Manager.GetString("THE_PATH_IS_NOT_OF_A_LEGAL_FORM"),
4343
paramName
4444
);
4545

@@ -50,11 +50,11 @@ public static ArgumentNullException FilenameCannotBeNull(string paramName) =>
5050
);
5151

5252
public static ArgumentException IllegalCharactersInPath(string paramName = null) =>
53-
paramName != null
53+
paramName != null
5454
? new ArgumentException(StringResources.Manager.GetString("ILLEGAL_CHARACTERS_IN_PATH_EXCEPTION"), paramName)
5555
: new ArgumentException(StringResources.Manager.GetString("ILLEGAL_CHARACTERS_IN_PATH_EXCEPTION"));
5656

57-
public static Exception InvalidUncPath(string paramName) =>
57+
public static Exception InvalidUncPath(string paramName) =>
5858
new ArgumentException(@"The UNC path should be of the form \\server\share.", paramName);
5959

6060
public static IOException ProcessCannotAccessFileInUse(string paramName = null) =>

src/System.IO.Abstractions.TestingHelpers/IMockFileDataAccessor.cs

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace System.IO.Abstractions.TestingHelpers
66
/// <summary>
77
/// Provides access to the file system storage.
88
/// </summary>
9-
public interface IMockFileDataAccessor
9+
public interface IMockFileDataAccessor : IFileSystem
1010
{
1111
/// <summary>
1212
/// Gets a file.
@@ -15,12 +15,24 @@ public interface IMockFileDataAccessor
1515
/// <returns>The file. <see langword="null"/> if the file does not exist.</returns>
1616
MockFileData GetFile(string path);
1717

18+
/// <summary>
19+
/// </summary>
1820
void AddFile(string path, MockFileData mockFile);
21+
22+
/// <summary>
23+
/// </summary>
1924
void AddDirectory(string path);
2025

26+
/// <summary>
27+
/// </summary>
2128
void AddFileFromEmbeddedResource(string path, Assembly resourceAssembly, string embeddedResourcePath);
29+
30+
/// <summary>
31+
/// </summary>
2232
void AddFilesFromEmbeddedNamespace(string path, Assembly resourceAssembly, string embeddedResourcePath);
2333

34+
/// <summary>
35+
/// </summary>
2436
void MoveDirectory(string sourcePath, string destPath);
2537

2638
/// <summary>
@@ -54,17 +66,20 @@ public interface IMockFileDataAccessor
5466
/// </summary>
5567
IEnumerable<string> AllDirectories { get; }
5668

57-
StringOperations StringOperations { get; }
69+
/// <summary>
70+
/// Gets a helper for string operations.
71+
/// </summary>
5872

59-
IFile File { get; }
60-
IDirectory Directory { get; }
61-
IFileInfoFactory FileInfo {get; }
62-
IPath Path { get; }
63-
IDirectoryInfoFactory DirectoryInfo { get; }
64-
IDriveInfoFactory DriveInfo { get; }
73+
StringOperations StringOperations { get; }
6574

75+
/// <summary>
76+
/// Gets a helper for verifying file system paths.
77+
/// </summary>
6678
PathVerifier PathVerifier { get; }
6779

80+
/// <summary>
81+
/// Gets a reference to the underlying file system.
82+
/// </summary>
6883
IFileSystem FileSystem { get; }
6984
}
7085
}

0 commit comments

Comments
 (0)