Skip to content

Commit 4118108

Browse files
committed
Update version to 2.25206.0.1-PreRelease
- Bump version in `.nuspec`, `AssemblyInfo.cs`, and `.csproj` files. - Update release notes with recompilation instructions. - Refresh dependencies to match the new version. - Modify `SdkSupport.cs` to reflect updated SDK version constants. - Add `FilePath` property to `CsSearchContainer` class. - Remove boolean properties from `CsSearchContainer` for simplification. - Introduce new asynchronous methods for loading C# source files. - Refactor methods in `VsProjectExtensions.cs` for improved readability. - Clean up `using` directives and comments in `VsProjectFolderExtensions.cs`.
1 parent 86ab68f commit 4118108

File tree

15 files changed

+229
-75
lines changed

15 files changed

+229
-75
lines changed

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/CodeFactoryWinVsSDK.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.SDK</id>
5-
<version>2.25191.0.1-PreRelease</version>
5+
<version>2.25206.0.1-PreRelease</version>
66
<title>CodeFactory Software Development Kit for Visual Studio - Windows</title>
77
<authors>CodeFactory, LLC.</authors>
88
<owners>CodeFactory, LLC.</owners>
99
<license type="expression">MIT</license>
1010
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1111
<description>Software development kit for building CodeFactory automation in Visual Studio - Windows.</description>
1212
<releaseNotes>
13-
Release Updates for 2.25191.0.1
13+
Release Updates for 2.25206.0.1
1414

1515
Recompile Release:
1616
When you update your automation to this version of the SDK.
@@ -40,9 +40,9 @@
4040
<copyright>Copyright © 2025 CodeFactory, LLC.</copyright>
4141
<tags>Factory Automation</tags>
4242
<dependencies>
43-
<dependency id="CodeFactory" version="2.25191.0.1-PreRelease"/>
44-
<dependency id="CodeFactory.WinVs" version="2.25191.0.1-PreRelease"/>
45-
<dependency id="CodeFactory.WinVs.Wpf" version="2.25191.0.1-PreRelease"/>
43+
<dependency id="CodeFactory" version="2.25206.0.1-PreRelease"/>
44+
<dependency id="CodeFactory.WinVs" version="2.25206.0.1-PreRelease"/>
45+
<dependency id="CodeFactory.WinVs.Wpf" version="2.25206.0.1-PreRelease"/>
4646
</dependencies>
4747
<icon>CFLogo128.png</icon>
4848
</metadata>

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("2.0.0.0")]
36-
[assembly: AssemblyFileVersion("2.25191.0.1")]
36+
[assembly: AssemblyFileVersion("2.25206.0.1")]

Src/CodeFactoryForWindows/CodeFactory.WinVs.Wpf/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("2.0.0.0")]
36-
[assembly: AssemblyFileVersion("2.25191.0.1")]
36+
[assembly: AssemblyFileVersion("2.25206.0.1")]

Src/CodeFactoryForWindows/CodeFactory.WinVs.Wpf/WinVsWpf.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.Wpf</id>
5-
<version>2.25191.0.1-PreRelease</version>
5+
<version>2.25206.0.1-PreRelease</version>
66
<title>CodeFactory User Interface WPF for Visual Studio - Windows</title>
77
<authors>CodeFactory, LLC.</authors>
88
<owners>CodeFactory, LLC.</owners>
99
<license type="expression">MIT</license>
1010
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1111
<description>Library that provides custom dialog screens hosted in Visual Studio for Windows, hosted for CodeFactory automation.</description>
1212
<releaseNotes>
13-
Release Updates for 2.25191.0.1
13+
Release Updates for 2.25206.0.1
1414

1515
Recompile Release:
1616
When you update your automation to this version of the SDK.
@@ -19,8 +19,8 @@
1919
<copyright>Copyright © 2025 CodeFactory, LLC.</copyright>
2020
<tags>Factory Automation</tags>
2121
<dependencies>
22-
<dependency id="CodeFactory" version="2.25191.0.1-PreRelease"/>
23-
<dependency id="CodeFactory.WinVs" version="2.25191.0.1-PreRelease"/>
22+
<dependency id="CodeFactory" version="2.25206.0.1-PreRelease"/>
23+
<dependency id="CodeFactory.WinVs" version="2.25206.0.1-PreRelease"/>
2424
</dependencies>
2525
<icon>CFLogo128.png</icon>
2626
</metadata>

Src/CodeFactoryForWindows/CodeFactory.WinVs/CodeFactory.WinVs.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<SignAssembly>True</SignAssembly>
77
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
88
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
9-
<Version>2.25191.0.1-PreRelease</Version>
9+
<Version>2.25206.0.1-PreRelease</Version>
1010
<Authors>CodeFactory, LLC.</Authors>
1111
<Company>CodeFactory, LLC.</Company>
1212
<Product>CodeFactory Base Library</Product>
@@ -17,10 +17,10 @@
1717
<IncludeSymbols>False</IncludeSymbols>
1818
<Title>CodeFactory API for Visual Studio - Windows </Title>
1919
<AssemblyVersion>2.0.0.0</AssemblyVersion>
20-
<FileVersion>2.25191.0.1</FileVersion>
20+
<FileVersion>2.25206.0.1</FileVersion>
2121
<PackageIcon>CFLogo128.png</PackageIcon>
2222
<PackageReleaseNotes>
23-
Release Updates for 2.25191.0.1
23+
Release Updates for 2.25206.0.1
2424

2525
Recompile Release:
2626
When you update your automation to this version of the SDK.

Src/CodeFactoryForWindows/CodeFactory.WinVs/Loader/SdkSupport.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ public static class SdkSupport
1818
/// <summary>
1919
/// The minimum version of the SDK that can be loaded and used.
2020
/// </summary>
21-
public const string MinVersion = "2.25191.0.1";
21+
public const string MinVersion = "2.25206.0.1";
2222

2323
/// <summary>
2424
/// The maximum version of the SDK that can be loaded and used.
2525
/// </summary>
26-
public const string MaxVersion = "2.25191.0.1";
26+
public const string MaxVersion = "2.25206.0.1";
2727

2828
/// <summary>
2929
/// The target version of the NuGet package this SDK is deployed from.
3030
/// </summary>
31-
public const string NuGetSdkVersion = "2.25191.0.1-PreRelease";
31+
public const string NuGetSdkVersion = "2.25206.0.1-PreRelease";
3232

3333
/// <summary>
3434
/// The name of the assembly type for the CodeFactory SDK version attribute.

Src/CodeFactoryForWindows/CodeFactory.WinVs/Models/CSharp/CsSearchContainer.cs

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ namespace CodeFactory.WinVs.Models.CSharp
1010
/// </summary>
1111
public class CsSearchContainer
1212
{
13+
14+
/// <summary>
15+
/// The file path of the C# container represented by this instance.
16+
/// </summary>
17+
public string FilePath { get; init; } = null;
18+
1319
/// <summary>
1420
/// The namespace the C# cntainer is defined in.
1521
/// </summary>
@@ -70,30 +76,5 @@ public class CsSearchContainer
7076
/// </summary>
7177
public IReadOnlyList<CsAttribute> Attributes { get; init; } = ImmutableList<CsAttribute>.Empty;
7278

73-
/// <summary>
74-
/// Flag that determines if the container has any fields defined.
75-
/// </summary>
76-
public bool HasFields { get; init; } = false;
77-
78-
/// <summary>
79-
/// Flag that determines if the container has any properties defined.
80-
/// </summary>
81-
public bool HasProperties { get; init; } = false;
82-
83-
/// <summary>
84-
/// Flag that determines if the container has any methods defined.
85-
/// </summary>
86-
public bool HasMethods { get; init; } = false;
87-
88-
/// <summary>
89-
/// Flag that determines if the container has any events defined.
90-
/// </summary>
91-
public bool HasEvents { get; init; } = false;
92-
93-
/// <summary>
94-
/// Flag that determines if the container has any constructors defined.
95-
/// </summary>
96-
public bool HasConstructors { get; init; } = false;
97-
9879
}
9980
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Models/ProjectSystem/IVsProjectActions.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,16 @@ public interface IVsProjectActions
8585
/// cref="CsSource"/> objects that match the specified search criteria.</returns>
8686
Task<IReadOnlyList<CsSource>> FindCSharpSourceCodeAsync(VsProject source, CsSourceSearchCriteria searchCriteria, bool searchSubFolders = true, IEnumerable<string> IgnoreFolderPaths = null);
8787

88+
89+
/// <summary>
90+
/// Asynchronously loads a <see cref="VsCSharpSource"/> object from the specified C# source file within a Visual
91+
/// Studio project.
92+
/// </summary>
93+
/// <param name="source">The Visual Studio project that contains the C# source file.</param>
94+
/// <param name="csSource">The C# source file to load.</param>
95+
/// <returns>A task that represents the asynchronous operation. The task result contains the loaded <see
96+
/// cref="VsCSharpSource"/> object.</returns>
97+
Task<VsCSharpSource> LoadFromCsSourceAsync(VsProject source,CsSource csSource);
98+
8899
}
89100
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Models/ProjectSystem/IVsProjectFolderActions.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,16 @@ public interface IVsProjectFolderActions
9191
/// <returns>A task that represents the asynchronous operation. The task result contains a read-only list of <see
9292
/// cref="CsSource"/> objects that match the specified search criteria.</returns>
9393
Task<IReadOnlyList<CsSource>> FindCSharpSourceCodeAsync(VsProjectFolder source, CsSourceSearchCriteria searchCriteria, bool searchSubFolders = true, IEnumerable<string> IgnoreFolderPaths = null);
94+
95+
96+
/// <summary>
97+
/// Asynchronously loads a <see cref="VsCSharpSource"/> object from the specified C# source file within a Visual
98+
/// Studio project folder.
99+
/// </summary>
100+
/// <param name="source">The Visual Studio project folder that contains the C# source file.</param>
101+
/// <param name="csSource">The C# source file to load.</param>
102+
/// <returns>A task that represents the asynchronous operation. The task result contains the loaded <see
103+
/// cref="VsCSharpSource"/> object.</returns>
104+
Task<VsCSharpSource> LoadFromCsSourceAsync(VsProjectFolder source, CsSource csSource);
94105
}
95106
}

Src/CodeFactoryForWindows/CodeFactory.WinVs/Models/ProjectSystem/IVsSourceActions.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,32 @@ public interface IVsSourceActions
2222
/// <returns>Loaded document model.</returns>
2323
/// <exception cref="DocumentException">Exception that occurs while loading the document.</exception>
2424
Task<VsDocument> LoadDocumentFromSourceAsync(ICsSource source);
25+
26+
/// <summary>
27+
/// Asynchronously loads a C# source file from the specified source.
28+
/// </summary>
29+
/// <param name="source">The source from which the C# file will be loaded. Cannot be null.</param>
30+
/// <returns>A task that represents the asynchronous operation. The task result contains a <see cref="VsCSharpSource"/>
31+
/// object representing the loaded C# source file.</returns>
32+
Task<VsCSharpSource> LoadCSharpSourceFromSourceAsync(CsSource source);
33+
34+
35+
/// <summary>
36+
/// Asynchronously loads a C# source file from the specified container.
37+
/// </summary>
38+
/// <param name="source">The container from which the C# source file will be loaded. This parameter cannot be null.</param>
39+
/// <returns>A task that represents the asynchronous operation. The task result contains the loaded <see
40+
/// cref="VsCSharpSource"/> object.</returns>
41+
Task<VsCSharpSource> LoadCSharpSourceFromContainerAsync(CsContainer source);
42+
43+
/// <summary>
44+
/// Asynchronously loads a C# source file from the specified container.
45+
/// </summary>
46+
/// <remarks>This method retrieves and parses a C# source file from the provided container. Ensure
47+
/// that the container contains a valid and accessible C# source file before calling this method.</remarks>
48+
/// <param name="source">The container from which the C# source file will be loaded. Must not be <see langword="null"/>.</param>
49+
/// <returns>A task that represents the asynchronous operation. The task result contains the loaded <see
50+
/// cref="CsSource"/> object.</returns>
51+
Task<CsSource> LoadCsSourceFromContainerAsync(CsContainer source);
2552
}
2653
}

0 commit comments

Comments
 (0)