Skip to content

Commit 9921775

Browse files
committed
Working on the statics updates for the SDK.
1 parent 19e816f commit 9921775

File tree

1,718 files changed

+1372029
-24
lines changed

Some content is hidden

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

1,718 files changed

+1372029
-24
lines changed

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

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
4242
</PropertyGroup>
4343
<ItemGroup>
44-
<Reference Include="MessagePack, Version=2.5.0.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
45-
<HintPath>..\packages\MessagePack.2.5.108\lib\netstandard2.0\MessagePack.dll</HintPath>
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>
4646
</Reference>
47-
<Reference Include="MessagePack.Annotations, Version=2.5.0.0, Culture=neutral, PublicKeyToken=b4a0369545f0a1be, processorArchitecture=MSIL">
48-
<HintPath>..\packages\MessagePack.Annotations.2.5.108\lib\netstandard2.0\MessagePack.Annotations.dll</HintPath>
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>
4949
</Reference>
50-
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
51-
<HintPath>..\packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
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>
5252
</Reference>
5353
<Reference Include="Microsoft.Extensions.CommandLineUtils, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
5454
<HintPath>..\packages\Microsoft.Extensions.CommandLineUtils.1.1.1\lib\net451\Microsoft.Extensions.CommandLineUtils.dll</HintPath>
@@ -57,7 +57,7 @@
5757
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
5858
</Reference>
5959
<Reference Include="Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
60-
<HintPath>..\packages\Microsoft.NET.StringTools.17.4.0\lib\net472\Microsoft.NET.StringTools.dll</HintPath>
60+
<HintPath>..\packages\Microsoft.NET.StringTools.17.11.4\lib\net472\Microsoft.NET.StringTools.dll</HintPath>
6161
</Reference>
6262
<Reference Include="Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10, processorArchitecture=MSIL">
6363
<HintPath>..\packages\Serilog.2.12.0\lib\net47\Serilog.dll</HintPath>
@@ -66,15 +66,18 @@
6666
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
6767
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
6868
</Reference>
69-
<Reference Include="System.Collections.Immutable, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
70-
<HintPath>..\packages\System.Collections.Immutable.6.0.0\lib\net461\System.Collections.Immutable.dll</HintPath>
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>
7171
</Reference>
7272
<Reference Include="System.Configuration" />
7373
<Reference Include="System.Core" />
7474
<Reference Include="System.IO.Compression" />
7575
<Reference Include="System.IO.Packaging, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
7676
<HintPath>..\packages\System.IO.Packaging.7.0.0\lib\net462\System.IO.Packaging.dll</HintPath>
7777
</Reference>
78+
<Reference Include="System.IO.Pipelines, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
79+
<HintPath>..\packages\System.IO.Pipelines.9.0.0\lib\net462\System.IO.Pipelines.dll</HintPath>
80+
</Reference>
7881
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
7982
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
8083
</Reference>
@@ -85,11 +88,11 @@
8588
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
8689
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
8790
</Reference>
88-
<Reference Include="System.Text.Encodings.Web, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
89-
<HintPath>..\packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll</HintPath>
91+
<Reference Include="System.Text.Encodings.Web, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
92+
<HintPath>..\packages\System.Text.Encodings.Web.9.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
9093
</Reference>
91-
<Reference Include="System.Text.Json, Version=6.0.0.7, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
92-
<HintPath>..\packages\System.Text.Json.6.0.7\lib\net461\System.Text.Json.dll</HintPath>
94+
<Reference Include="System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
95+
<HintPath>..\packages\System.Text.Json.9.0.0\lib\net462\System.Text.Json.dll</HintPath>
9396
</Reference>
9497
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
9598
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
@@ -144,5 +147,7 @@
144147
<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>
145148
</PropertyGroup>
146149
<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'))" />
150+
<Error Condition="!Exists('..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets'))" />
147151
</Target>
152+
<Import Project="..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets" Condition="Exists('..\packages\MessagePackAnalyzer.3.1.0\build\MessagePackAnalyzer.targets')" />
148153
</Project>
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="MessagePack" version="2.5.108" targetFramework="net48" />
4-
<package id="MessagePack.Annotations" version="2.5.108" targetFramework="net48" />
5-
<package id="Microsoft.Bcl.AsyncInterfaces" version="6.0.0" targetFramework="net48" />
3+
<package id="MessagePack" version="3.1.0" targetFramework="net48" />
4+
<package id="MessagePack.Annotations" version="3.1.0" targetFramework="net48" />
5+
<package id="MessagePackAnalyzer" version="3.1.0" targetFramework="net48" developmentDependency="true" />
6+
<package id="Microsoft.Bcl.AsyncInterfaces" version="9.0.0" targetFramework="net48" />
67
<package id="Microsoft.Extensions.CommandLineUtils" version="1.1.1" targetFramework="net48" />
78
<package id="Microsoft.Extensions.Logging.Abstractions" version="6.0.0" targetFramework="net48" />
8-
<package id="Microsoft.NET.StringTools" version="17.4.0" targetFramework="net48" />
9+
<package id="Microsoft.NET.StringTools" version="17.11.4" targetFramework="net48" />
910
<package id="Serilog" version="2.12.0" targetFramework="net48" />
1011
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
11-
<package id="System.Collections.Immutable" version="6.0.0" targetFramework="net48" />
12+
<package id="System.Collections.Immutable" version="8.0.0" targetFramework="net48" />
1213
<package id="System.IO.Packaging" version="7.0.0" targetFramework="net48" />
14+
<package id="System.IO.Pipelines" version="9.0.0" targetFramework="net48" />
1315
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
1416
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
1517
<package id="System.Reflection.Emit" version="4.7.0" targetFramework="net48" />
1618
<package id="System.Reflection.Emit.Lightweight" version="4.7.0" targetFramework="net48" />
1719
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" />
18-
<package id="System.Text.Encodings.Web" version="6.0.0" targetFramework="net48" />
19-
<package id="System.Text.Json" version="6.0.7" targetFramework="net48" />
20+
<package id="System.Text.Encodings.Web" version="9.0.0" targetFramework="net48" />
21+
<package id="System.Text.Json" version="9.0.0" targetFramework="net48" />
2022
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net48" />
2123
<package id="System.ValueTuple" version="4.5.0" targetFramework="net48" />
2224
</packages>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>True</SignAssembly>
6-
<AssemblyOriginatorKeyFile>D:\github\codefactoryllc\CodeFactoryForWindows\Src\CodeFactoryForWindows\CodeFactory.Packager.WinVs\CFSigner.snk</AssemblyOriginatorKeyFile>
6+
<AssemblyOriginatorKeyFile>CFSigner.snk</AssemblyOriginatorKeyFile>
77
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
88
<Version>2.24224.0.1-PreRelease</Version>
99
<Authors>CodeFactory, LLC.</Authors>
@@ -49,10 +49,10 @@
4949
</ItemGroup>
5050

5151
<ItemGroup>
52-
<PackageReference Include="MessagePack" Version="2.5.108" />
52+
<PackageReference Include="MessagePack" Version="3.1.0" />
5353
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
5454
<PackageReference Include="Serilog" Version="2.12.0" />
55-
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
55+
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
5656
<PackageReference Include="System.IO.Packaging" Version="7.0.0" />
5757
<PackageReference Include="System.Text.Json" Version="6.0.7" />
5858
</ItemGroup>

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ protected CsAttribute(bool isLoaded, bool hasErrors, bool loadedFromSource, Sour
8686
/// <returns>A newly loaded copy of the <see cref="ICsSource"/> model after the changes have been applied.</returns>
8787
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
8888
public abstract Task<CsSource> AddBeforeAsync(string sourceCode);
89+
/// <summary>
90+
/// Adds the source code directly before the definition of the <see cref="ICsAttribute"/>in the target document.
91+
/// </summary>
92+
/// <param name="sourceCode">The source code that is to be added to the document.</param>
93+
/// <returns>Updated source model and the transaction details.</returns>
94+
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
95+
public abstract Task<CsSourceTransaction> AddBeforeTransactionAsync(string sourceCode);
8996

9097

9198
/// <summary>
@@ -106,6 +113,14 @@ protected CsAttribute(bool isLoaded, bool hasErrors, bool loadedFromSource, Sour
106113
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
107114
public abstract Task<CsSource> AddAfterAsync(string sourceCode);
108115

116+
/// <summary>
117+
/// Adds the source code directly after the definition of the <see cref="CsAttribute"/>in the target document.
118+
/// </summary>
119+
/// <param name="sourceCode">The source code that is to be added to the document.</param>
120+
/// <returns>Updated source model and the transaction details.</returns>
121+
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
122+
public abstract Task<CsSourceTransaction> AddAfterTransactionAsync(string sourceCode);
123+
109124
/// <summary>
110125
/// Deletes the definition of the attribute from the source document.
111126
/// </summary>
@@ -156,6 +171,14 @@ protected CsAttribute(bool isLoaded, bool hasErrors, bool loadedFromSource, Sour
156171
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
157172
public abstract Task<CsSource> ReplaceAsync(string sourceCode);
158173

174+
/// <summary>
175+
/// Replaces the current attribute with the provided source code.
176+
/// </summary>
177+
/// <param name="sourceCode">The source code that is to be used to replace the original definition in the document.</param>
178+
/// <returns>Updated source model and the transaction details.</returns>
179+
/// <exception cref="DocumentException">Error is raised when errors occur updating the source document.</exception>
180+
public abstract Task<CsSourceTransaction> ReplaceTransactionAsync(string sourceCode);
181+
159182
/// <summary>
160183
/// Flag that determines if the attribute has parameters
161184
/// </summary>

0 commit comments

Comments
 (0)