Skip to content

Commit

Permalink
Versioning and bug fix for issue #36
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiffinlcd committed Dec 5, 2022
1 parent 82007fa commit 0648141
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static class SdkSupport
/// <summary>
/// The maximum version of the SDK that can be loaded and used.
/// </summary>
public const string MaxVersion = "1.22335.0.1";
public const string MaxVersion = "1.22339.0.1";

/// <summary>
/// The target version of the NuGet package this SDK is deployed from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,11 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>Software factory automation library used with the CodeFactory for Visual Studio.</description>
<releaseNotes>
SDK Update for CodeFactory 1.22335.1
SDK Update for CodeFactory 1.22339.1

This release of the SDK focuses on the following.
- Have updated the injection process of code into files. You no longer have to provide the file path, framework determines this.
- Have added an overload to AddBeforeAsync functionality to allow you to add directly before the definition of the model ignoring xml documentation.
- LookupModel is now obsolete use GetModel now.
- Added GetModel[T] this allows to set the target type to return instead of having to cast to directly.
- CodeFactory.Formatting.CSharp has been moved into the SDK.
- NamespaceManager in formatting now supports adding additional using statements after the manager has been loaded.
- CsManualUsingStatement has been added to formatting to allow adding customizing using statements to the namespace manager.
- Can now directly control code documentation from the SDK. Added the following code management methods to control documentation.
- AddBeforeDocsAsync - Add source code content before XML documentation.
- AddAfterDocsAsync - Add source code content after XML documentation.
- ReplaceDocsAsync - Replaces the XML documentation.
- DeleteDocsAsync - Deletes the XML documentation.
- CsProperty mode has added the following capabilities.
- GetMethod property has been added to give you direct access to the get accessor and all the code management functions of the method.
- SetMethod property has been added to give you direct access to the set accessor and all the code management functions of the method.
- CsEnum mode has added the following capabilities
- Can now inject code at the beginning of the Enum body.
- Can now inject code at the end of the Enum body.
- Can now get the source location of the contents of the Enum body.
- CsContainer Types (Class,Interface, Structure) now support nested type definitions, this includes the following.
- Class,Interface, Structure, and Enums can be nested in the above container types.
- CSMethod now provide partial support in definition which includes the following.
- Method Partial Definition - The capture of the definition of a partial method.
- Method Partial Implementation - The capture of the implementation of a partial method.
- When getting the list of methods you will get two instance models now. One for the definition and second for the implementation.
- CsMethodType has added two additional enums PartialDefinition and PartialImplementation.
- XML Documentation for all models is directly captured from source code so the raw documentation is provided. This includes the following.
- Partial implementations will provide the target xml documentation that was provided.
If documentation was provided in each partial file it will grab the target file the model generation was requested from.
- All C# Models now have a ModelSourceFile property that identifies the source code file the model was generated from.
- Fixed an issue with the Visual Studio packager not able to process project paths that had spaces in the path.
- Packager now injects the target platform and SDK version information directly into assemblies during the build of CodeFactory automation.
This is used to confirm the library is supported by the runtime.
- Bug fix for bug https://github.com/CodeFactoryLLC/CodeFactory/issues/36
- Issue was with how reflections of an assembly was reading the custom attributes assigned to the assembly. Has been fixed and validated.
</releaseNotes>
<copyright>Copyright 2022</copyright>
<tags>Factory Automation</tags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private static int WriteNewAssemblyInfo(string assemblyPath)
assemblyFileContents.Add("using System.Runtime.InteropServices;");
assemblyFileContents.Add("");
assemblyFileContents.Add("[assembly: AssemblyVersion(\"1.0.0.0\")]");
assemblyFileContents.Add("[assembly: AssemblyFileVersion(\"1.22335.0.1\")]");
assemblyFileContents.Add("[assembly: AssemblyFileVersion(\"1.22339.0.1\")]");
assemblyFileContents.Add("[assembly: AssemblyCFEnvironment(\"CFVSW\")]");
assemblyFileContents.Add($"[assembly: AssemblyCFSdkVersion(\"{LoadFileVersion()}\")]");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]
[assembly: Guid("34699FC7-0F5E-4BDF-899F-6EBC55A4A6DA")]

Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.22335.0.1")]
[assembly: AssemblyFileVersion("1.22339.0.1")]

0 comments on commit 0648141

Please sign in to comment.