Skip to content

Commit f005f71

Browse files
committed
Release for 2.24224.0.1
1 parent 86851ae commit f005f71

File tree

13 files changed

+188
-36
lines changed

13 files changed

+188
-36
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
37+
<PropertyGroup>
38+
<SignAssembly>true</SignAssembly>
39+
</PropertyGroup>
40+
<PropertyGroup>
41+
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
42+
</PropertyGroup>
3743
<ItemGroup>
3844
<Reference Include="CodeFactory, Version=2.0.0.0, Culture=neutral, PublicKeyToken=6f4b2344c7d1e83a, processorArchitecture=MSIL">
3945
<HintPath>..\packages\CodeFactory.2.23151.1-PreRelease\lib\netstandard2.0\CodeFactory.dll</HintPath>
@@ -114,6 +120,7 @@
114120
</ItemGroup>
115121
<ItemGroup>
116122
<None Include="App.config" />
123+
<None Include="CFSigner.snk" />
117124
<None Include="CodeFactoryWinVsSDK.nuspec" />
118125
<None Include="CodeFactory.WinVs.SDK.targets">
119126
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

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

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,26 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.SDK</id>
5-
<version>2.23160.1-PreRelease</version>
5+
<version>2.24224.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-
Notes
14-
Daily build focused on bug fixes.
13+
WPF Updates:
14+
- ViewUserControl now imports the current style in visual studio to all standard WPF controls.
1515

16-
PropertyBuilderStandard Fixes
17-
- Extra ; added to the end of property generation removed.
18-
19-
MethodBuilderStandard Fixes
20-
- Fixed generation logic to correctly inject bounds check logic when found.
21-
- Fixed formatting of try catch finally logic to correctly indent at the right level.
16+
Command Notifications:
17+
- Commands will now log notifications to the CodeFactory output window. You can add notifications to any command being built by calling the static class method CommandNotifications.SendCommandNotificationAsync
2218
</releaseNotes>
23-
<copyright>Copyright © 2023 CodeFactory, LLC.</copyright>
19+
<copyright>Copyright © 2024 CodeFactory, LLC.</copyright>
2420
<tags>Factory Automation</tags>
2521
<dependencies>
26-
<dependency id="CodeFactory" version="2.23151.1-PreRelease"/>
27-
<dependency id="CodeFactory.WinVs" version="2.23160.1-PreRelease"/>
28-
<dependency id="CodeFactory.WinVs.Wpf" version="2.23151.1-PreRelease"/>
22+
<dependency id="CodeFactory" version="2.24224.0.1-PreRelease"/>
23+
<dependency id="CodeFactory.WinVs" version="2.24224.0.1-PreRelease"/>
24+
<dependency id="CodeFactory.WinVs.Wpf" version="2.24224.0.1-PreRelease"/>
2925
</dependencies>
3026
<icon>CFLogo128.png</icon>
3127
</metadata>

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private static int WriteNewAssemblyInfo(string assemblyPath)
355355
assemblyFileContents.Add("using System.Runtime.InteropServices;");
356356
assemblyFileContents.Add("");
357357
assemblyFileContents.Add("[assembly: AssemblyVersion(\"1.0.0.0\")]");
358-
assemblyFileContents.Add("[assembly: AssemblyFileVersion(\"1.23050.0.2\")]");
358+
assemblyFileContents.Add("[assembly: AssemblyFileVersion(\"1.0.0.0\")]");
359359
assemblyFileContents.Add("[assembly: AssemblyCFEnvironment(\"CFVSW\")]");
360360
assemblyFileContents.Add($"[assembly: AssemblyCFSdkVersion(\"{LoadFileVersion()}\")]");
361361

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.23160.0.1")]
36+
[assembly: AssemblyFileVersion("2.24224.0.1")]

Src/CodeFactoryForWindows/CodeFactory.Packager.WinVs/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<package id="MessagePack" version="2.5.108" targetFramework="net48" />
66
<package id="MessagePack.Annotations" version="2.5.108" targetFramework="net48" />
77
<package id="Microsoft.Bcl.AsyncInterfaces" version="6.0.0" targetFramework="net48" />
8+
<package id="Microsoft.Extensions.CommandLineUtils" version="1.1.1" targetFramework="net48" />
89
<package id="Microsoft.Extensions.Logging.Abstractions" version="6.0.0" targetFramework="net48" />
910
<package id="Microsoft.NET.StringTools" version="17.4.0" targetFramework="net48" />
1011
<package id="Serilog" version="2.12.0" targetFramework="net48" />

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.23151.0.1")]
36+
[assembly: AssemblyFileVersion("2.24224.0.1")]

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
33
<metadata>
44
<id>CodeFactory.WinVs.Wpf</id>
5-
<version>2.23151.1-PreRelease</version>
5+
<version>2.24224.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>
12-
<releaseNotes>Pre release of CodeFactory for Windows Version 2.0. No documentation or site access at this time.</releaseNotes>
13-
<copyright>Copyright © 2023 CodeFactory, LLC.</copyright>
12+
<releaseNotes>ViewUserControl now natively imports the visual studio styling to the standard wpf controls.</releaseNotes>
13+
<copyright>Copyright © 2024 CodeFactory, LLC.</copyright>
1414
<tags>Factory Automation</tags>
1515
<dependencies>
16-
<dependency id="CodeFactory" version="2.23151.1-PreRelease"/>
17-
<dependency id="CodeFactory.WinVs" version="2.23151.1-PreRelease"/>
16+
<dependency id="CodeFactory" version="2.24224.0.1-PreRelease"/>
17+
<dependency id="CodeFactory.WinVs" version="2.24224.0.1-PreRelease"/>
1818
</dependencies>
1919
<icon>CFLogo128.png</icon>
2020
</metadata>

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>True</SignAssembly>
6-
<AssemblyOriginatorKeyFile>C:\github\codefactoryllc\CodeFactoryRuntimeWinVs\src\CodeFactory.Runtime.WinVs-Solution\CodeFactory.Runtime.WinVs\CFSigner.snk</AssemblyOriginatorKeyFile>
6+
<AssemblyOriginatorKeyFile>D:\github\codefactoryllc\CodeFactoryForWindows\Src\CodeFactoryForWindows\CodeFactory.Packager.WinVs\CFSigner.snk</AssemblyOriginatorKeyFile>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8-
<Version>2.23160.1-PreRelease</Version>
8+
<Version>2.24224.0.1-PreRelease</Version>
99
<Authors>CodeFactory, LLC.</Authors>
1010
<Company>CodeFactory, LLC.</Company>
1111
<Product>CodeFactory Base Library</Product>
@@ -16,16 +16,13 @@
1616
<IncludeSymbols>False</IncludeSymbols>
1717
<Title>CodeFactory API for Visual Studio - Windows </Title>
1818
<AssemblyVersion>2.0.0.0</AssemblyVersion>
19-
<FileVersion>2.23160.0.1</FileVersion>
19+
<FileVersion>2.24224.0.1</FileVersion>
2020
<PackageIcon>CFLogo128.png</PackageIcon>
2121
<PackageReleaseNotes>
22-
Release Updates for 2.23160.0.1
22+
Release Updates for 2.24224.0.1
2323

24-
Source Manager Add Source Changes
25-
- The roll up order has been fixed so to pass through constructor and field positions before the top of the file.
26-
27-
C# Generation Additions
28-
- GenerateCSharpTypeName
24+
Execution logging for CodeFactory Commands
25+
- CommandNotifications has been added to CodeFactory commands. This allows real time logging of what happened in a command to log to the CodeFactory output window.
2926
</PackageReleaseNotes>
3027
<GenerateDocumentationFile>True</GenerateDocumentationFile>
3128
</PropertyGroup>
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace CodeFactory.WinVs
6+
{
7+
/// <summary>
8+
/// Immutable command notification message.
9+
/// </summary>
10+
public class CommandNotificationMessage
11+
{
12+
/// <summary>
13+
/// Backing field for the message property.
14+
/// </summary>
15+
private readonly string _message;
16+
17+
/// <summary>
18+
/// Backing field for the category property.
19+
/// </summary>
20+
private readonly string _category;
21+
22+
/// <summary>
23+
/// Backing field for the status property.
24+
/// </summary>
25+
private readonly CommandNotificationStatus _status;
26+
27+
/// <summary>
28+
/// Initializes the <see cref="CommandNotificationMessage"/>
29+
/// </summary>
30+
/// <param name="message">The message to be returned.</param>
31+
/// <param name="category">What category the message belongs to.</param>
32+
/// <param name="status">The status of the message.</param>
33+
protected CommandNotificationMessage(string message, string category, CommandNotificationStatus status)
34+
{
35+
_message = message;
36+
_category = category;
37+
_status = status;
38+
}
39+
40+
/// <summary>
41+
/// The message to be provided to the executing command.
42+
/// </summary>
43+
public string Message => _message;
44+
45+
/// <summary>
46+
/// The category the message belongs to.
47+
/// </summary>
48+
public string Category => _category;
49+
50+
/// <summary>
51+
/// The current status of the notification message.
52+
/// </summary>
53+
public CommandNotificationStatus Status => _status;
54+
55+
/// <summary>
56+
/// Initializes a instance of the <see cref="CommandNotificationMessage"/>
57+
/// </summary>
58+
/// <param name="message">The message to be returned.</param>
59+
/// <param name="category">What category the message belongs to.</param>
60+
/// <param name="status">The status of the message.</param>
61+
/// <returns>The created instance.</returns>
62+
public static CommandNotificationMessage Init(string message, string category, CommandNotificationStatus status)
63+
{
64+
return new CommandNotificationMessage(message, category, status);
65+
}
66+
}
67+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace CodeFactory.WinVs
6+
{
7+
/// <summary>
8+
/// Enumeration on the current status of a command notification message.
9+
/// </summary>
10+
public enum CommandNotificationStatus
11+
{
12+
/// <summary>
13+
/// The beginning of a automation process has started.
14+
/// </summary>
15+
Started = 0,
16+
17+
/// <summary>
18+
/// The automation process has completed successfuly.
19+
/// </summary>
20+
Success = 1,
21+
22+
/// <summary>
23+
/// The automation process has ended and has failed.
24+
/// </summary>
25+
Failed = 2,
26+
27+
/// <summary>
28+
/// The automation process is currently running
29+
/// </summary>
30+
Running = 3,
31+
32+
/// <summary>
33+
/// The automation process has completed.
34+
/// </summary>
35+
Finished = 4
36+
37+
38+
}
39+
}

0 commit comments

Comments
 (0)