Skip to content

Commit 90db381

Browse files
committed
Initial setup of SDK
1 parent 4f9c32a commit 90db381

392 files changed

Lines changed: 40213 additions & 0 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.

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,3 +427,6 @@ FodyWeavers.xsd
427427
*.msix
428428
*.msm
429429
*.msp
430+
431+
# Signer Key
432+
*.snk

‎docs/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Overview
2+
Place holder for documentation site.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
5+
</startup>
6+
<runtime>
7+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
8+
<dependentAssembly>
9+
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
10+
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
11+
</dependentAssembly>
12+
<dependentAssembly>
13+
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
14+
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
15+
</dependentAssembly>
16+
<dependentAssembly>
17+
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
18+
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
19+
</dependentAssembly>
20+
<dependentAssembly>
21+
<assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
22+
<bindingRedirect oldVersion="0.0.0.0-6.0.0.7" newVersion="6.0.0.7" />
23+
</dependentAssembly>
24+
</assemblyBinding>
25+
</runtime>
26+
</configuration>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//*****************************************************************************
2+
//* Code Factory SDK - Windows Visual Studio
3+
//* Copyright (c) 2023 CodeFactory, LLC
4+
//*****************************************************************************
5+
6+
namespace CodeFactory.Packager.WinVs
7+
{
8+
/// <summary>
9+
/// Helper class that helps manage attributes.
10+
/// </summary>
11+
internal static class AttributeManager
12+
{
13+
/// <summary>
14+
/// Regex expression to locate the AssemblyCFEnvironment attribute.
15+
/// </summary>
16+
public const string RegexFindCFEnvironment = @"\[.*\bAssemblyCFEnvironment\b.*]";
17+
18+
/// <summary>
19+
/// Regex expression to locate the AssemblyCFSdkVersion attribute.
20+
/// </summary>
21+
public const string RegexFindCFSdkVersion = @"\[.*\bAssemblyCFSdkVersion\b.*]";
22+
23+
/// <summary>
24+
/// Regex expression to locate the using statement for CodeFactory.WinVs
25+
/// </summary>
26+
public const string RegexFindNamespace = @"\busing\b.*\bCodeFactory.WinVs\b";
27+
}
28+
}
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{72C4D6E9-D9F9-4CA0-A6FD-8B2C246C686A}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>CodeFactory.Packager.WinVs</RootNamespace>
10+
<AssemblyName>CodeFactory.Packager.WinVs</AssemblyName>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
<NuGetPackageImportStamp>
16+
</NuGetPackageImportStamp>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<PlatformTarget>AnyCPU</PlatformTarget>
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<PlatformTarget>AnyCPU</PlatformTarget>
30+
<DebugType>pdbonly</DebugType>
31+
<Optimize>true</Optimize>
32+
<OutputPath>bin\Release\</OutputPath>
33+
<DefineConstants>TRACE</DefineConstants>
34+
<ErrorReport>prompt</ErrorReport>
35+
<WarningLevel>4</WarningLevel>
36+
</PropertyGroup>
37+
<PropertyGroup>
38+
<SignAssembly>true</SignAssembly>
39+
</PropertyGroup>
40+
<PropertyGroup>
41+
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
42+
</PropertyGroup>
43+
<ItemGroup>
44+
<Reference Include="MessagePack, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
45+
<HintPath>..\packages\MessagePack.3.1.0\lib\net472\MessagePack.dll</HintPath>
46+
</Reference>
47+
<Reference Include="MessagePack.Annotations, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
48+
<HintPath>..\packages\MessagePack.Annotations.3.1.0\lib\netstandard2.0\MessagePack.Annotations.dll</HintPath>
49+
</Reference>
50+
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
51+
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.9.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
52+
</Reference>
53+
<Reference Include="Microsoft.Extensions.CommandLineUtils, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
54+
<HintPath>..\packages\Microsoft.Extensions.CommandLineUtils.1.1.1\lib\net451\Microsoft.Extensions.CommandLineUtils.dll</HintPath>
55+
</Reference>
56+
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
57+
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
58+
</Reference>
59+
<Reference Include="Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
60+
<HintPath>..\packages\Microsoft.NET.StringTools.17.11.4\lib\net472\Microsoft.NET.StringTools.dll</HintPath>
61+
</Reference>
62+
<Reference Include="Serilog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
63+
<HintPath>..\packages\Serilog.4.0.0\lib\net471\Serilog.dll</HintPath>
64+
</Reference>
65+
<Reference Include="System" />
66+
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
67+
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
68+
</Reference>
69+
<Reference Include="System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
70+
<HintPath>..\packages\System.Collections.Immutable.8.0.0\lib\net462\System.Collections.Immutable.dll</HintPath>
71+
</Reference>
72+
<Reference Include="System.Configuration" />
73+
<Reference Include="System.Core" />
74+
<Reference Include="System.Diagnostics.DiagnosticSource, Version=8.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
75+
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.8.0.1\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
76+
</Reference>
77+
<Reference Include="System.IO.Compression" />
78+
<Reference Include="System.IO.Packaging, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
79+
<HintPath>..\packages\System.IO.Packaging.7.0.0\lib\net462\System.IO.Packaging.dll</HintPath>
80+
</Reference>
81+
<Reference Include="System.IO.Pipelines, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
82+
<HintPath>..\packages\System.IO.Pipelines.9.0.0\lib\net462\System.IO.Pipelines.dll</HintPath>
83+
</Reference>
84+
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
85+
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
86+
</Reference>
87+
<Reference Include="System.Numerics" />
88+
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
89+
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
90+
</Reference>
91+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
92+
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
93+
</Reference>
94+
<Reference Include="System.Text.Encodings.Web, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
95+
<HintPath>..\packages\System.Text.Encodings.Web.9.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
96+
</Reference>
97+
<Reference Include="System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
98+
<HintPath>..\packages\System.Text.Json.9.0.0\lib\net462\System.Text.Json.dll</HintPath>
99+
</Reference>
100+
<Reference Include="System.Threading.Channels, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
101+
<HintPath>..\packages\System.Threading.Channels.8.0.0\lib\net462\System.Threading.Channels.dll</HintPath>
102+
</Reference>
103+
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
104+
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
105+
</Reference>
106+
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
107+
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
108+
</Reference>
109+
<Reference Include="System.Xml.Linq" />
110+
<Reference Include="System.Data.DataSetExtensions" />
111+
<Reference Include="Microsoft.CSharp" />
112+
<Reference Include="System.Data" />
113+
<Reference Include="System.Net.Http" />
114+
<Reference Include="System.Xml" />
115+
<Reference Include="WindowsBase" />
116+
</ItemGroup>
117+
<ItemGroup>
118+
<Compile Include="AttributeManager.cs" />
119+
<Compile Include="LibraryManagement.cs" />
120+
<Compile Include="PackagerData.cs" />
121+
<Compile Include="Program.cs" />
122+
<Compile Include="Properties\AssemblyInfo.cs" />
123+
</ItemGroup>
124+
<ItemGroup>
125+
<None Include="App.config" />
126+
<None Include="CFSigner.snk" />
127+
<None Include="CodeFactoryWinVsSDK.nuspec" />
128+
<None Include="CodeFactory.WinVs.SDK.targets">
129+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
130+
</None>
131+
<None Include="PackagerWinVs.targets">
132+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
133+
</None>
134+
<None Include="packages.config" />
135+
<None Include="README.md" />
136+
</ItemGroup>
137+
<ItemGroup>
138+
<None Include="Images\CFLogo128.png" />
139+
</ItemGroup>
140+
<ItemGroup>
141+
<ProjectReference Include="..\CodeFactory.WinVs\CodeFactory.WinVs.csproj">
142+
<Project>{0cc0c774-5146-4c0d-98c0-9a19d31030a1}</Project>
143+
<Name>CodeFactory.WinVs</Name>
144+
</ProjectReference>
145+
<ProjectReference Include="..\CodeFactory\CodeFactory.csproj">
146+
<Project>{f2c8337f-79ea-4908-824c-d1ad96fafdb6}</Project>
147+
<Name>CodeFactory</Name>
148+
</ProjectReference>
149+
</ItemGroup>
150+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
151+
<Import Project="..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets')" />
152+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
153+
<PropertyGroup>
154+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
155+
</PropertyGroup>
156+
<Error Condition="!Exists('..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\build\Microsoft.Extensions.Logging.Abstractions.targets'))" />
157+
<Error Condition="!Exists('..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets'))" />
158+
</Target>
159+
<Import Project="..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets" Condition="Exists('..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets')" />
160+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Project>
3+
<Import Project="$(MSBuildThisFileDirectory)/../../tools/PackagerWinVs.targets"/>
4+
</Project>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" >
3+
<metadata>
4+
<id>CodeFactory.WinVs.SDK</id>
5+
<version>2.26151.0.1-PreRelease</version>
6+
<title>CodeFactory Software Development Kit for Visual Studio - Windows</title>
7+
<authors>CodeFactory, LLC.</authors>
8+
<owners>CodeFactory, LLC.</owners>
9+
<license type="expression">MIT</license>
10+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
11+
<description>Software development kit for building CodeFactory automation in Visual Studio - Windows.</description>
12+
<releaseNotes>
13+
Release Updates for 2.26151.0.1
14+
15+
Recompile Release:
16+
When you update your automation to this version of the SDK.
17+
You will need to recompile your automation projects to the new version of the SDK, and make sure you have the CodeFactory runtime at least the same version or higher.
18+
19+
Command External Configuration Updates:
20+
Deprecated the use of the CommandManager class. All command configuration is now done through the ExternalConfig class.
21+
ConfigParameter now supports multiple value types including string, bool, datetime and list.
22+
23+
External Configuration Editor:
24+
All CodeFactory command projects now have an external configuration editor that handles the configuration of the commands that are hosted in a CFA file.
25+
The editor is triggered by right-clicking on the solution node in solution explorer and selecting [cF] Automation Configuration.
26+
27+
Transaction History:
28+
CodeFactory now tracks the historical statics of all commands that write to files in projects and the solution.
29+
The following statics are tracked:
30+
- Name of the file updated.
31+
- Name of the project the file resides in or null if it is not part of a project.
32+
- Name of the solution the file resides.
33+
- Relative path of the file from the project or solution root.
34+
- Number of characters written to the file omitting the white space characters and line returns.
35+
- Number of lines written to the file, omitting the lines with no content.
36+
37+
Transaction Results:
38+
You can now get the transaction results from any insert or replace operation. This will return the above statics for the transaction.
39+
</releaseNotes>
40+
<copyright>Copyright © 2026 CodeFactory, LLC.</copyright>
41+
<tags>Factory Automation</tags>
42+
<dependencies>
43+
<dependency id="CodeFactory" version="2.26151.0.1-PreRelease"/>
44+
<dependency id="CodeFactory.WinVs" version="2.26151.0.1-PreRelease"/>
45+
<dependency id="CodeFactory.WinVs.Wpf" version="2.26151.0.1-PreRelease"/>
46+
</dependencies>
47+
<icon>CFLogo128.png</icon>
48+
<readme>README.md</readme>
49+
</metadata>
50+
<files>
51+
<file src="Images\CFLogo128.png" target=""/>
52+
<file src="README.md" target=""/>
53+
<file src="bin\Debug\CodeFactory.WinVs.SDK.targets" target="build/net48/CodeFactory.WinVs.SDK.targets"/>
54+
<file src="bin\Debug\PackagerWinVs.targets" target="tools/PackagerWinVs.targets"/>
55+
<file src="bin\Debug\CodeFactory*.dll" target="tools/net48/"/>
56+
<file src="bin\Debug\MessagePack*.dll" target="tools/net48"/>
57+
<file src="bin\Debug\Microsoft.Extensions.CommandLineUtils.dll" target="tools/net48/Microsoft.Extensions.CommandLineUtils.dll"/>
58+
<file src="bin\Debug\Microsoft.Bcl.AsyncInterfaces.dll" target="tools/net48/Microsoft.Bcl.AsyncInterfaces.dll"/>
59+
<file src="bin\Debug\Microsoft.NET.StringTools.dll" target="tools/net48/Microsoft.NET.StringTools.dll"/>
60+
<file src="bin\Debug\Serilog.dll" target="tools/net48/Serilog.dll"/>
61+
<file src="bin\Debug\System.Buffers.dll" target="tools/net48/System.Buffers.dll"/>
62+
<file src="bin\Debug\System.Collections.Immutable.dll" target="tools/net48/System.Collections.Immutable.dll"/>
63+
<file src="bin\Debug\System.IO.Packaging.dll" target="tools/net48/System.IO.Packaging.dll"/>
64+
<file src="bin\Debug\System.Memory.dll" target="tools/net48/System.Memory.dll"/>
65+
<file src="bin\Debug\System.Numerics.Vectors.dll" target="tools/net48/System.Numerics.Vectors.dll"/>
66+
<file src="bin\Debug\System.Runtime.CompilerServices.Unsafe.dll" target="tools/net48/System.Runtime.CompilerServices.Unsafe.dll"/>
67+
<file src="bin\Debug\System.Threading.Tasks.Extensions.dll" target="tools/net48/System.Threading.Tasks.Extensions.dll"/>
68+
<file src="bin\Debug\CodeFactory.Packager.WinVs.exe" target="tools/net48/CodeFactory.Packager.WinVs.exe"/>
69+
<file src="bin\Debug\CodeFactory.Packager.WinVs.exe.config" target="tools/net48/CodeFactory.Packager.WinVs.exe.config"/>
70+
</files>
71+
</package>
4.97 KB
Loading

0 commit comments

Comments
 (0)