diff --git a/.github/workflows/build-frontends.yml b/.github/workflows/build-frontends.yml
index 5f437b3d1f..2ebe5fd40d 100644
--- a/.github/workflows/build-frontends.yml
+++ b/.github/workflows/build-frontends.yml
@@ -14,10 +14,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- - name: Setup .NET
- uses: actions/setup-dotnet@v3
+ - uses: actions/setup-dotnet@v4
with:
- dotnet-version: 6.0.x
+ dotnet-version: '8.0.x'
+ dotnet-quality: 'ga'
- name: Install dependencies
run: dotnet restore ILSpy.XPlat.slnf
@@ -38,7 +38,7 @@ jobs:
- name: Upload binlog
if: always()
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: binlog
path: '**/*.binlog'
diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml
index acc6c810cf..444d22b3c6 100644
--- a/.github/workflows/build-ilspy.yml
+++ b/.github/workflows/build-ilspy.yml
@@ -26,8 +26,13 @@ jobs:
submodules: true
fetch-depth: 0
+ - uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '8.0.x'
+ dotnet-quality: 'ga'
+
- name: Add msbuild to PATH
- uses: microsoft/setup-msbuild@v1.3
+ uses: microsoft/setup-msbuild@v2
- name: Install dotnet-format
run: dotnet tool install -g dotnet-format --version "6.2.315104" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
@@ -48,12 +53,12 @@ jobs:
- name: Execute unit tests
run: dotnet test --logger "junit;LogFileName=${{ matrix.configuration }}.xml" --results-directory test-results $env:Tests1 $env:Tests2 $env:Tests3
env:
- Tests1: ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\win-x64\ICSharpCode.Decompiler.Tests.dll
- Tests2: ILSpy.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ILSpy.Tests.dll
- Tests3: ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
+ Tests1: ICSharpCode.Decompiler.Tests\bin\${{ matrix.configuration }}\net8.0-windows\win-x64\ICSharpCode.Decompiler.Tests.dll
+ Tests2: ILSpy.Tests\bin\${{ matrix.configuration }}\net8.0-windows\ILSpy.Tests.dll
+ Tests3: ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net8.0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
- name: Upload Test Logs
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results-${{ matrix.configuration }}
@@ -76,7 +81,7 @@ jobs:
git diff --exit-code
- name: Zip ILSpy (framework-dependent)
- run: 7z a -tzip $env:StagingDirectory\ILSpy_binaries.zip .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.dll .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.exe .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.config .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.json .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*\ILSpy.resources.dll .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*\ILSpy.ReadyToRun.Plugin.resources.dll
+ run: 7z a -tzip $env:StagingDirectory\ILSpy_binaries.zip .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*.dll .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*.exe .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*.config .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*.json .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*\ILSpy.resources.dll .\ILSpy\bin\${{ matrix.configuration }}\net8.0-windows\*\ILSpy.ReadyToRun.Plugin.resources.dll
- name: Publish x64/arm64 framework-dependent/self-contained
shell: pwsh
@@ -84,11 +89,11 @@ jobs:
- name: Zip ILSpy Release (x64 self-contained)
if: matrix.configuration == 'release'
- run: 7z a -tzip $env:StagingDirectory\ILSpy_selfcontained_x64.zip .\ILSpy\bin\Release\net6.0-windows\win-x64\publish\selfcontained\*
+ run: 7z a -tzip $env:StagingDirectory\ILSpy_selfcontained_x64.zip .\ILSpy\bin\Release\net8.0-windows\win-x64\publish\selfcontained\*
- name: Zip ILSpy Release (arm64 framework-dependent)
if: matrix.configuration == 'release'
- run: 7z a -tzip $env:StagingDirectory\ILSpy_binaries_arm64.zip .\ILSpy\bin\Release\net6.0-windows\win-arm64\publish\fwdependent\*
+ run: 7z a -tzip $env:StagingDirectory\ILSpy_binaries_arm64.zip .\ILSpy\bin\Release\net8.0-windows\win-arm64\publish\fwdependent\*
- name: Build Installer (x64 and arm64, framework-dependent)
if: matrix.configuration == 'release'
@@ -106,7 +111,7 @@ jobs:
# https://github.com/actions/upload-artifact
- name: Upload VSIX (VS 2019) release build artifacts
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy VS Addin for VS 2017-2019 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ILSpy.AddIn\bin\${{ matrix.configuration }}\net472\*.vsix
@@ -114,7 +119,7 @@ jobs:
- name: Upload VSIX (VS 2022) release build artifacts
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy VS Addin for VS 2022 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ILSpy.AddIn.VS2022\bin\${{ matrix.configuration }}\net472\*.vsix
@@ -122,7 +127,7 @@ jobs:
- name: Upload Decompiler NuGet release build artifacts
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ICSharpCode.Decompiler NuGet Package (${{ matrix.configuration }})
path: ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg
@@ -135,7 +140,7 @@ jobs:
- name: Upload ILSpyX NuGet release build artifacts
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ICSharpCode.ILSpyX NuGet Package (${{ matrix.configuration }})
path: ICSharpCode.ILSpyX\bin\Release\ICSharpCode.ILSpyX*.nupkg
@@ -147,7 +152,7 @@ jobs:
dotnet nuget push "ICSharpCode.ILSpyX\bin\Release\ICSharpCode.ILSpyX*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}
- name: Upload zip binaries build artifacts
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ${{ env.StagingDirectory }}\ILSpy_binaries.zip
@@ -155,7 +160,7 @@ jobs:
- name: Upload x64 self-contained zip (Release-only)
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy self-contained x64 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ${{ env.StagingDirectory }}\ILSpy_selfcontained_x64.zip
@@ -163,7 +168,7 @@ jobs:
- name: Upload arm64 framework-dependent zip (Release-only)
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy arm64 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ${{ env.StagingDirectory }}\ILSpy_binaries_arm64.zip
@@ -171,7 +176,7 @@ jobs:
- name: Upload x64 installer artifact
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy Installer x64 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ILSpy.Installer\wix\*-x64.msi
@@ -179,7 +184,7 @@ jobs:
- name: Upload arm64 installer artifact
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpy Installer arm64 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ILSpy.Installer\wix\*-arm64.msi
@@ -187,7 +192,7 @@ jobs:
- name: Upload ilspycmd release build artifacts
if: matrix.configuration == 'release'
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ilspycmd dotnet tool (${{ matrix.configuration }})
path: ICSharpCode.ILSpyCmd\bin\Release\ilspycmd*.nupkg
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 93daa6d31a..1886a05af7 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -23,17 +23,17 @@ jobs:
fetch-depth: 0
- name: Initialize CodeQL
- uses: github/codeql-action/init@v2
+ uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- - name: Setup .NET
- uses: actions/setup-dotnet@v3
+ - uses: actions/setup-dotnet@v4
with:
- dotnet-version: 6.0.x
+ dotnet-version: '8.0.x'
+ dotnet-quality: 'ga'
- name: Build
run: dotnet build ILSpy.XPlat.slnf --configuration Release
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v2
+ uses: github/codeql-action/analyze@v3
diff --git a/.github/workflows/generate-bom.yml b/.github/workflows/generate-bom.yml
index 12466c03de..5cfafea631 100644
--- a/.github/workflows/generate-bom.yml
+++ b/.github/workflows/generate-bom.yml
@@ -19,10 +19,10 @@ jobs:
run: dotnet tool install --global CycloneDX
- name: Analyze
- run: dotnet CycloneDX ILSpy/ILSpy.csproj --out sbom --recursive --exclude-dev --exclude-test-projects
+ run: dotnet-CycloneDX ILSpy/ILSpy.csproj --output sbom --recursive --exclude-dev --exclude-test-projects
- name: Upload BOM
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: ILSpyBOM.xml
path: sbom/bom.xml
diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml
index f3de4cb41f..3bc404b704 100644
--- a/.github/workflows/lock.yml
+++ b/.github/workflows/lock.yml
@@ -8,7 +8,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- - uses: dessant/lock-threads@v4.0.1
+ - uses: dessant/lock-threads@v5.0.1
with:
github-token: ${{ github.token }}
issue-inactive-days: '90'
diff --git a/Directory.Packages.props b/Directory.Packages.props
new file mode 100644
index 0000000000..13e1ebab60
--- /dev/null
+++ b/Directory.Packages.props
@@ -0,0 +1,47 @@
+
+
+ true
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ILSpy.BamlDecompiler/Baml/BamlContext.cs b/ICSharpCode.BamlDecompiler/Baml/BamlContext.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/BamlContext.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlContext.cs
index 7f66138c67..21a2e733fc 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlContext.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlContext.cs
@@ -30,7 +30,7 @@ THE SOFTWARE.
using Metadata = ICSharpCode.Decompiler.Metadata;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal class BamlContext
{
diff --git a/ILSpy.BamlDecompiler/Baml/BamlDocument.cs b/ICSharpCode.BamlDecompiler/Baml/BamlDocument.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Baml/BamlDocument.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlDocument.cs
index 6126c003d7..6ed797e9d6 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlDocument.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlDocument.cs
@@ -22,7 +22,7 @@ THE SOFTWARE.
using System.Collections.Generic;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal class BamlDocument : List
{
diff --git a/ILSpy.BamlDecompiler/Baml/BamlNode.cs b/ICSharpCode.BamlDecompiler/Baml/BamlNode.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/BamlNode.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlNode.cs
index a09c55851b..c8049a668a 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlNode.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlNode.cs
@@ -25,7 +25,7 @@ THE SOFTWARE.
using System.Diagnostics;
using System.Threading;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal abstract class BamlNode
{
diff --git a/ILSpy.BamlDecompiler/Baml/BamlReader.cs b/ICSharpCode.BamlDecompiler/Baml/BamlReader.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/BamlReader.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlReader.cs
index 8f1c6f861f..bed8f934a0 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlReader.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlReader.cs
@@ -26,7 +26,7 @@ THE SOFTWARE.
using System.Text;
using System.Threading;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal class BamlBinaryReader : BinaryReader
{
diff --git a/ILSpy.BamlDecompiler/Baml/BamlRecords.cs b/ICSharpCode.BamlDecompiler/Baml/BamlRecords.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/BamlRecords.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlRecords.cs
index dc64128a2e..f5d514730d 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlRecords.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlRecords.cs
@@ -24,7 +24,7 @@ THE SOFTWARE.
using System.Diagnostics;
using System.IO;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal enum BamlRecordType : byte
{
diff --git a/ILSpy.BamlDecompiler/Baml/BamlWriter.cs b/ICSharpCode.BamlDecompiler/Baml/BamlWriter.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Baml/BamlWriter.cs
rename to ICSharpCode.BamlDecompiler/Baml/BamlWriter.cs
index f350b8edf2..a95a65c2ae 100644
--- a/ILSpy.BamlDecompiler/Baml/BamlWriter.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/BamlWriter.cs
@@ -24,7 +24,7 @@ THE SOFTWARE.
using System.IO;
using System.Text;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal class BamlBinaryWriter : BinaryWriter
{
diff --git a/ILSpy.BamlDecompiler/Baml/KnownMembers.cs b/ICSharpCode.BamlDecompiler/Baml/KnownMembers.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/KnownMembers.cs
rename to ICSharpCode.BamlDecompiler/Baml/KnownMembers.cs
index e6b7c4cb38..d70b088e06 100644
--- a/ILSpy.BamlDecompiler/Baml/KnownMembers.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/KnownMembers.cs
@@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
// Auto generated. Do not modify.
diff --git a/ILSpy.BamlDecompiler/Baml/KnownThings.cs b/ICSharpCode.BamlDecompiler/Baml/KnownThings.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Baml/KnownThings.cs
rename to ICSharpCode.BamlDecompiler/Baml/KnownThings.cs
index 746d531950..616d856173 100644
--- a/ILSpy.BamlDecompiler/Baml/KnownThings.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/KnownThings.cs
@@ -27,7 +27,7 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal partial class KnownThings
{
@@ -59,7 +59,7 @@ public KnownThings(IDecompilerTypeSystem typeSystem)
}
catch (Exception ex)
{
- throw new ICSharpCode.Decompiler.DecompilerException(typeSystem.MainModule.PEFile, ex.Message, ex);
+ throw new ICSharpCode.Decompiler.DecompilerException(typeSystem.MainModule.MetadataFile, ex.Message, ex);
}
}
diff --git a/ILSpy.BamlDecompiler/Baml/KnownThings.g.cs b/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/KnownThings.g.cs
rename to ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs
index 7cefe0c136..0ff802a8d0 100644
--- a/ILSpy.BamlDecompiler/Baml/KnownThings.g.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs
@@ -22,7 +22,7 @@ THE SOFTWARE.
using System;
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
internal partial class KnownThings
{
diff --git a/ILSpy.BamlDecompiler/Baml/KnownThings.gen.cs b/ICSharpCode.BamlDecompiler/Baml/KnownThings.gen.cs
similarity index 100%
rename from ILSpy.BamlDecompiler/Baml/KnownThings.gen.cs
rename to ICSharpCode.BamlDecompiler/Baml/KnownThings.gen.cs
diff --git a/ILSpy.BamlDecompiler/Baml/KnownTypes.cs b/ICSharpCode.BamlDecompiler/Baml/KnownTypes.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Baml/KnownTypes.cs
rename to ICSharpCode.BamlDecompiler/Baml/KnownTypes.cs
index 892ef17c52..e0abc8f125 100644
--- a/ILSpy.BamlDecompiler/Baml/KnownTypes.cs
+++ b/ICSharpCode.BamlDecompiler/Baml/KnownTypes.cs
@@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-namespace ILSpy.BamlDecompiler.Baml
+namespace ICSharpCode.BamlDecompiler.Baml
{
// Auto generated. Do not modify.
diff --git a/ILSpy.BamlDecompiler/BamlConnectionId.cs b/ICSharpCode.BamlDecompiler/BamlConnectionId.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/BamlConnectionId.cs
rename to ICSharpCode.BamlDecompiler/BamlConnectionId.cs
index 30d11f0cfe..4c9ad1e53f 100644
--- a/ILSpy.BamlDecompiler/BamlConnectionId.cs
+++ b/ICSharpCode.BamlDecompiler/BamlConnectionId.cs
@@ -22,7 +22,7 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
///
/// Represents a field assignment of a XAML code-behind class.
diff --git a/ILSpy.BamlDecompiler/BamlDecompilationResult.cs b/ICSharpCode.BamlDecompiler/BamlDecompilationResult.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/BamlDecompilationResult.cs
rename to ICSharpCode.BamlDecompiler/BamlDecompilationResult.cs
index 83e8942ed4..e09a893cd2 100644
--- a/ILSpy.BamlDecompiler/BamlDecompilationResult.cs
+++ b/ICSharpCode.BamlDecompiler/BamlDecompilationResult.cs
@@ -23,7 +23,7 @@
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
public class BamlDecompilationResult
{
diff --git a/ILSpy.BamlDecompiler/BamlDecompilerSettings.cs b/ICSharpCode.BamlDecompiler/BamlDecompilerSettings.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/BamlDecompilerSettings.cs
rename to ICSharpCode.BamlDecompiler/BamlDecompilerSettings.cs
index 464298ad09..4f08915607 100644
--- a/ILSpy.BamlDecompiler/BamlDecompilerSettings.cs
+++ b/ICSharpCode.BamlDecompiler/BamlDecompilerSettings.cs
@@ -19,7 +19,7 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
public class BamlDecompilerSettings : INotifyPropertyChanged
{
diff --git a/ILSpy.BamlDecompiler/BamlDecompilerTypeSystem.cs b/ICSharpCode.BamlDecompiler/BamlDecompilerTypeSystem.cs
similarity index 90%
rename from ILSpy.BamlDecompiler/BamlDecompilerTypeSystem.cs
rename to ICSharpCode.BamlDecompiler/BamlDecompilerTypeSystem.cs
index f43a2d28c5..d6072b6a1c 100644
--- a/ILSpy.BamlDecompiler/BamlDecompilerTypeSystem.cs
+++ b/ICSharpCode.BamlDecompiler/BamlDecompilerTypeSystem.cs
@@ -26,9 +26,9 @@
using ICSharpCode.Decompiler.TypeSystem.Implementation;
using ICSharpCode.Decompiler.Util;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
- class BamlDecompilerTypeSystem : SimpleCompilation, IDecompilerTypeSystem
+ public class BamlDecompilerTypeSystem : SimpleCompilation, IDecompilerTypeSystem
{
string[] defaultBamlReferences = new[] {
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
@@ -40,7 +40,7 @@ class BamlDecompilerTypeSystem : SimpleCompilation, IDecompilerTypeSystem
"System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
};
- public BamlDecompilerTypeSystem(PEFile mainModule, IAssemblyResolver assemblyResolver)
+ public BamlDecompilerTypeSystem(MetadataFile mainModule, IAssemblyResolver assemblyResolver)
{
if (mainModule == null)
throw new ArgumentNullException(nameof(mainModule));
@@ -48,8 +48,8 @@ public BamlDecompilerTypeSystem(PEFile mainModule, IAssemblyResolver assemblyRes
throw new ArgumentNullException(nameof(assemblyResolver));
// Load referenced assemblies and type-forwarder references.
// This is necessary to make .NET Core/PCL binaries work better.
- var referencedAssemblies = new List();
- var assemblyReferenceQueue = new Queue<(bool IsAssembly, PEFile MainModule, object Reference)>();
+ var referencedAssemblies = new List();
+ var assemblyReferenceQueue = new Queue<(bool IsAssembly, MetadataFile MainModule, object Reference)>();
var mainMetadata = mainModule.Metadata;
foreach (var h in mainMetadata.GetModuleReferences())
{
@@ -73,16 +73,16 @@ public BamlDecompilerTypeSystem(PEFile mainModule, IAssemblyResolver assemblyRes
{
assemblyReferenceQueue.Enqueue((true, mainModule, AssemblyNameReference.Parse(bamlReference)));
}
- var comparer = KeyComparer.Create(((bool IsAssembly, PEFile MainModule, object Reference) reference) =>
+ var comparer = KeyComparer.Create(((bool IsAssembly, MetadataFile MainModule, object Reference) reference) =>
reference.IsAssembly ? "A:" + ((IAssemblyReference)reference.Reference).FullName :
"M:" + reference.Reference);
- var processedAssemblyReferences = new HashSet<(bool IsAssembly, PEFile Parent, object Reference)>(comparer);
+ var processedAssemblyReferences = new HashSet<(bool IsAssembly, MetadataFile Parent, object Reference)>(comparer);
while (assemblyReferenceQueue.Count > 0)
{
var asmRef = assemblyReferenceQueue.Dequeue();
if (!processedAssemblyReferences.Add(asmRef))
continue;
- PEFile asm;
+ MetadataFile asm;
if (asmRef.IsAssembly)
{
asm = assemblyResolver.Resolve((IAssemblyReference)asmRef.Reference);
diff --git a/ILSpy.BamlDecompiler/BamlElement.cs b/ICSharpCode.BamlDecompiler/BamlElement.cs
similarity index 96%
rename from ILSpy.BamlDecompiler/BamlElement.cs
rename to ICSharpCode.BamlDecompiler/BamlElement.cs
index 7728a99fbb..0e546a4748 100644
--- a/ILSpy.BamlDecompiler/BamlElement.cs
+++ b/ICSharpCode.BamlDecompiler/BamlElement.cs
@@ -23,9 +23,9 @@ THE SOFTWARE.
using System.Collections.Generic;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
internal readonly struct XamlNode
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs
index d8351f2538..844c825286 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/ConstructorParametersHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class ConstructorParametersStartHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs
index 632769a1b3..8f543271fc 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/DocumentHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class DocumentHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/ElementHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/ElementHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/ElementHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/ElementHandler.cs
index 418fc8ba87..351fbd3884 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/ElementHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/ElementHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class ElementHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs
index 68a543acb5..366b8d93a5 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/KeyElementStartHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class KeyElementStartHandler : ElementHandler, IHandler, IDeferHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs
index 49dfe1af64..c4b20965f5 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyArrayHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyArrayHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs
index ecfb461145..e20ae0155b 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyComplexHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyComplexHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs
index e6c26c0d03..15a2626803 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyDictionaryHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyDictionaryHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs
index bdc7a114b7..a7041d9cff 100644
--- a/ILSpy.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Blocks/PropertyListHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyListHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs
index a0b92cb3bc..24c0dfe650 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/AssemblyInfoHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class AssemblyInfoHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs
index 5165648f88..bcada05719 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/AttributeInfoHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class AttributeInfoHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs
index adc3e23f48..a0b9f9bb1e 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/ConnectionIdHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class ConnectionIdHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs
index 7f3a603374..a6ba8047ee 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/ConstructorParameterTypeHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class ConstructorParameterTypeHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs
index 5d2cb13aa8..3f95e62dec 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/ContentPropertyHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class ContentPropertyHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs
index fe54cd63b5..f8ac9786e9 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class DefAttributeHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs
index 8cae7decc7..c8df693492 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyStringHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class DefAttributeStringHandler : IHandler, IDeferHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs
index 5bd50e9f6e..82a2d82a0a 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/DefAttributeKeyTypeHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class DefAttributeTypeHandler : IHandler, IDeferHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs
index 98a695e166..65385bf1c9 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/DeferableContentStartHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Diagnostics;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class DeferableContentStartHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs
index ea7d68e5f4..6398b2f3e4 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/LineNumberAndPositionHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class LineNumberAndPositionHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/LinePositionHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/LinePositionHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/LinePositionHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/LinePositionHandler.cs
index 25655e218d..feb1c36aa0 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/LinePositionHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/LinePositionHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class LinePositionHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs
index 432aa68c40..f53b3fd5f4 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/LiteralContentHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class LiteralContentHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs
similarity index 96%
rename from ILSpy.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs
index 53b5a773e9..520392349f 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/OptimizedStaticResourceHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class OptimizedStaticResourceHandler : IHandler, IDeferHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PIMappingHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PIMappingHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/PIMappingHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PIMappingHandler.cs
index 86e12f5761..e32ba8a4ed 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PIMappingHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PIMappingHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PIMappingHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs
index 849f0a91b3..f4d13ebdb5 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PresentationOptionsAttributeHandler.cs
@@ -22,9 +22,9 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PresentationOptionsAttributeHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs
index aca9bfd8ea..c62f2fa4aa 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyCustomHandler.cs
@@ -27,10 +27,10 @@ THE SOFTWARE.
using System.Text;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyCustomHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyHandler.cs
index 913712c4f0..e50002cebb 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs
index 51d5b8ae4d..9405d210d3 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyTypeReferenceHandler.cs
@@ -24,10 +24,10 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyTypeReferenceHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs
index ca171f4032..8de1f61bc3 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithConverterHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyWithConverterHandler : PropertyHandler, IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs
index 66da034523..034b6aac6b 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithExtensionHandler.cs
@@ -22,10 +22,10 @@ THE SOFTWARE.
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyWithExtensionHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs
index 627ec1c8f9..a701316e97 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/PropertyWithStaticResourceIdHandler.cs
@@ -23,10 +23,10 @@ THE SOFTWARE.
using System;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class PropertyWithStaticResourceIdHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs
index 94e4fc6149..b0f62432c8 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceIdHandler.cs
@@ -18,10 +18,10 @@
using System;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
class StaticResourceIdHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs
index 302839a9bd..37857e14e5 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/StaticResourceStartHandler.cs
@@ -20,10 +20,10 @@
using System.Linq;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
class StaticResourceStartHandler : IHandler, IDeferHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/TextHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/TextHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Records/TextHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/TextHandler.cs
index 72843f0241..fc41caf5e1 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/TextHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/TextHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class TextHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs
similarity index 93%
rename from ILSpy.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs
index 41c34850fb..7b8ad9c18e 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/TextWithConverterHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class TextWithConverterHandler : TextHandler, IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs
similarity index 94%
rename from ILSpy.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs
index 90bbb776fd..583c680d53 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/TypeInfoHandler.cs
@@ -20,9 +20,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class TypeInfoHandler : IHandler
{
diff --git a/ILSpy.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs b/ICSharpCode.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs
rename to ICSharpCode.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs
index 777327fcf5..399dd7d4d2 100644
--- a/ILSpy.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs
+++ b/ICSharpCode.BamlDecompiler/Handlers/Records/XmlnsPropertyHandler.cs
@@ -28,10 +28,10 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Handlers
+namespace ICSharpCode.BamlDecompiler.Handlers
{
internal class XmlnsPropertyHandler : IHandler
{
diff --git a/ICSharpCode.BamlDecompiler/ICSharpCode.BamlDecompiler.csproj b/ICSharpCode.BamlDecompiler/ICSharpCode.BamlDecompiler.csproj
new file mode 100644
index 0000000000..cd022af4bc
--- /dev/null
+++ b/ICSharpCode.BamlDecompiler/ICSharpCode.BamlDecompiler.csproj
@@ -0,0 +1,75 @@
+
+
+
+ net8.0
+
+ True
+ ..\ICSharpCode.Decompiler\ICSharpCode.Decompiler.snk
+
+ en-US
+ False
+ False
+ False
+
+
+
+ ICSharpCode.BamlDecompiler
+ 8.0.0.0-noversion
+ ILSpy BAML Decompiler
+ ILSpy Contributors
+ MIT
+ https://github.com/icsharpcode/ILSpy/
+ Cross-Platform library for decompiling BAML.
+ PackageReadme.md
+ ic#code
+ BamlDecompiler
+ git
+ https://github.com/icsharpcode/ILSpy.git
+ ../ICSharpCode.Decompiler/DecompilerNuGetPackageIcon.png
+ false
+ Copyright 2024-$([System.DateTime]::Now.Year) AlphaSierraPapa
+ C# Decompiler ILSpy
+
+ true
+ embedded
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+ ILSpyUpdateAssemblyInfo;
+ $(GetPackageVersionDependsOn)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ILSpy.BamlDecompiler/IHandlers.cs b/ICSharpCode.BamlDecompiler/IHandlers.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/IHandlers.cs
rename to ICSharpCode.BamlDecompiler/IHandlers.cs
index 27db2853ea..c373f0bf26 100644
--- a/ILSpy.BamlDecompiler/IHandlers.cs
+++ b/ICSharpCode.BamlDecompiler/IHandlers.cs
@@ -24,9 +24,9 @@ THE SOFTWARE.
using System.Collections.Generic;
using System.Diagnostics;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
internal interface IHandler
{
diff --git a/ILSpy.BamlDecompiler/IRewritePass.cs b/ICSharpCode.BamlDecompiler/IRewritePass.cs
similarity index 96%
rename from ILSpy.BamlDecompiler/IRewritePass.cs
rename to ICSharpCode.BamlDecompiler/IRewritePass.cs
index a139dd4b25..cf0535465d 100644
--- a/ILSpy.BamlDecompiler/IRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/IRewritePass.cs
@@ -22,7 +22,7 @@ THE SOFTWARE.
using System.Xml.Linq;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
internal interface IRewritePass
{
diff --git a/ICSharpCode.BamlDecompiler/PackageReadme.md b/ICSharpCode.BamlDecompiler/PackageReadme.md
new file mode 100644
index 0000000000..6c0fcf12e7
--- /dev/null
+++ b/ICSharpCode.BamlDecompiler/PackageReadme.md
@@ -0,0 +1,3 @@
+## About
+
+ICSharpCode.BamlDecompiler is the library used by the BAML Addin in ILSpy to decompile BAML to XAML.
diff --git a/ILSpy.BamlDecompiler/Rewrite/AttributeRewritePass.cs b/ICSharpCode.BamlDecompiler/Rewrite/AttributeRewritePass.cs
similarity index 96%
rename from ILSpy.BamlDecompiler/Rewrite/AttributeRewritePass.cs
rename to ICSharpCode.BamlDecompiler/Rewrite/AttributeRewritePass.cs
index 06139367ed..da4704ef15 100644
--- a/ILSpy.BamlDecompiler/Rewrite/AttributeRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/Rewrite/AttributeRewritePass.cs
@@ -23,9 +23,9 @@ THE SOFTWARE.
using System.Collections.Generic;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Rewrite
+namespace ICSharpCode.BamlDecompiler.Rewrite
{
internal class AttributeRewritePass : IRewritePass
{
diff --git a/ILSpy.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs b/ICSharpCode.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs
rename to ICSharpCode.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs
index ba05f6df75..104f6343b7 100644
--- a/ILSpy.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/Rewrite/ConnectionIdRewritePass.cs
@@ -27,9 +27,9 @@
using ICSharpCode.Decompiler.IL.Transforms;
using ICSharpCode.Decompiler.Util;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Rewrite
+namespace ICSharpCode.BamlDecompiler.Rewrite
{
using ICSharpCode.Decompiler.TypeSystem;
@@ -128,7 +128,7 @@ void DecompileConnections(XamlContext ctx, List<(LongSet, FieldAssignment)> fiel
IMethod connectMethod = null;
MethodDefinition connectMetadataEntry = default;
- var module = ctx.TypeSystem.MainModule.PEFile;
+ var module = ctx.TypeSystem.MainModule.MetadataFile;
foreach (IMethod m in type.Methods)
{
@@ -171,9 +171,7 @@ void DecompileConnections(XamlContext ctx, List<(LongSet, FieldAssignment)> fiel
ctx.GeneratedMembers.Add(connectMethod.MetadataToken);
-
-
- var body = module.Reader.GetMethodBody(connectMetadataEntry.RelativeVirtualAddress);
+ var body = module.GetMethodBody(connectMetadataEntry.RelativeVirtualAddress);
var genericContext = new GenericContext(
classTypeParameters: connectMethod.DeclaringType?.TypeParameters,
methodTypeParameters: connectMethod.TypeParameters);
diff --git a/ILSpy.BamlDecompiler/Rewrite/DocumentRewritePass.cs b/ICSharpCode.BamlDecompiler/Rewrite/DocumentRewritePass.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Rewrite/DocumentRewritePass.cs
rename to ICSharpCode.BamlDecompiler/Rewrite/DocumentRewritePass.cs
index 80849609bd..4e84ac207f 100644
--- a/ILSpy.BamlDecompiler/Rewrite/DocumentRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/Rewrite/DocumentRewritePass.cs
@@ -24,7 +24,7 @@ THE SOFTWARE.
using System.Linq;
using System.Xml.Linq;
-namespace ILSpy.BamlDecompiler.Rewrite
+namespace ICSharpCode.BamlDecompiler.Rewrite
{
internal class DocumentRewritePass : IRewritePass
{
diff --git a/ILSpy.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs b/ICSharpCode.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs
rename to ICSharpCode.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs
index 46af966472..3df7687530 100644
--- a/ILSpy.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/Rewrite/MarkupExtensionRewritePass.cs
@@ -21,16 +21,14 @@ THE SOFTWARE.
*/
using System.Collections.Generic;
-using System.DirectoryServices.ActiveDirectory;
using System.Linq;
-using System.Windows.Forms;
using System.Xml.Linq;
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Rewrite
+namespace ICSharpCode.BamlDecompiler.Rewrite
{
internal class MarkupExtensionRewritePass : IRewritePass
{
diff --git a/ILSpy.BamlDecompiler/Rewrite/XClassRewritePass.cs b/ICSharpCode.BamlDecompiler/Rewrite/XClassRewritePass.cs
similarity index 96%
rename from ILSpy.BamlDecompiler/Rewrite/XClassRewritePass.cs
rename to ICSharpCode.BamlDecompiler/Rewrite/XClassRewritePass.cs
index 7c4d956c1b..f184995465 100644
--- a/ILSpy.BamlDecompiler/Rewrite/XClassRewritePass.cs
+++ b/ICSharpCode.BamlDecompiler/Rewrite/XClassRewritePass.cs
@@ -23,9 +23,9 @@ THE SOFTWARE.
using System.Linq;
using System.Xml.Linq;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler.Rewrite
+namespace ICSharpCode.BamlDecompiler.Rewrite
{
internal class XClassRewritePass : IRewritePass
{
diff --git a/ILSpy.BamlDecompiler/Xaml/NamespaceMap.cs b/ICSharpCode.BamlDecompiler/Xaml/NamespaceMap.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Xaml/NamespaceMap.cs
rename to ICSharpCode.BamlDecompiler/Xaml/NamespaceMap.cs
index 290fe8e41e..6523c2be70 100644
--- a/ILSpy.BamlDecompiler/Xaml/NamespaceMap.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/NamespaceMap.cs
@@ -25,7 +25,7 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal class NamespaceMap
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlExtension.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlExtension.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Xaml/XamlExtension.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlExtension.cs
index 78d8f51765..a39be99d72 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlExtension.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlExtension.cs
@@ -24,7 +24,7 @@ THE SOFTWARE.
using System.Text;
using System.Xml.Linq;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal class XamlExtension
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlPathDeserializer.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlPathDeserializer.cs
similarity index 99%
rename from ILSpy.BamlDecompiler/Xaml/XamlPathDeserializer.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlPathDeserializer.cs
index c23a4e77f3..0ac2c4d413 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlPathDeserializer.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlPathDeserializer.cs
@@ -25,7 +25,7 @@ THE SOFTWARE.
using System.IO;
using System.Text;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
class XamlPathDeserializer
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlProperty.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlProperty.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Xaml/XamlProperty.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlProperty.cs
index a6f3575faf..6372f2a0cf 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlProperty.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlProperty.cs
@@ -26,7 +26,7 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal class XamlProperty
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlResourceKey.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlResourceKey.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/Xaml/XamlResourceKey.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlResourceKey.cs
index 5f4288b076..7e642fd05b 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlResourceKey.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlResourceKey.cs
@@ -23,9 +23,9 @@ THE SOFTWARE.
using System.Collections.Generic;
using System.Diagnostics;
-using ILSpy.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Baml;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal class XamlResourceKey
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlType.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlType.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Xaml/XamlType.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlType.cs
index b3b7a18d73..f2f9075729 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlType.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlType.cs
@@ -25,7 +25,7 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal class XamlType
{
diff --git a/ILSpy.BamlDecompiler/Xaml/XamlUtils.cs b/ICSharpCode.BamlDecompiler/Xaml/XamlUtils.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/Xaml/XamlUtils.cs
rename to ICSharpCode.BamlDecompiler/Xaml/XamlUtils.cs
index 878d8214e8..33ae2494a4 100644
--- a/ILSpy.BamlDecompiler/Xaml/XamlUtils.cs
+++ b/ICSharpCode.BamlDecompiler/Xaml/XamlUtils.cs
@@ -24,7 +24,7 @@ THE SOFTWARE.
using System.Text;
using System.Xml.Linq;
-namespace ILSpy.BamlDecompiler.Xaml
+namespace ICSharpCode.BamlDecompiler.Xaml
{
internal static class XamlUtils
{
diff --git a/ILSpy.BamlDecompiler/XamlContext.cs b/ICSharpCode.BamlDecompiler/XamlContext.cs
similarity index 98%
rename from ILSpy.BamlDecompiler/XamlContext.cs
rename to ICSharpCode.BamlDecompiler/XamlContext.cs
index d9be0620ca..bd24cbeaf5 100644
--- a/ILSpy.BamlDecompiler/XamlContext.cs
+++ b/ICSharpCode.BamlDecompiler/XamlContext.cs
@@ -29,10 +29,10 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
internal class XamlContext
{
diff --git a/ILSpy.BamlDecompiler/XamlDecompiler.cs b/ICSharpCode.BamlDecompiler/XamlDecompiler.cs
similarity index 95%
rename from ILSpy.BamlDecompiler/XamlDecompiler.cs
rename to ICSharpCode.BamlDecompiler/XamlDecompiler.cs
index 0d5c5205c7..2467210aac 100644
--- a/ILSpy.BamlDecompiler/XamlDecompiler.cs
+++ b/ICSharpCode.BamlDecompiler/XamlDecompiler.cs
@@ -31,10 +31,10 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Baml;
-using ILSpy.BamlDecompiler.Rewrite;
+using ICSharpCode.BamlDecompiler.Baml;
+using ICSharpCode.BamlDecompiler.Rewrite;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
public class XamlDecompiler
{
@@ -72,7 +72,7 @@ public XamlDecompiler(PEFile module, IAssemblyResolver assemblyResolver, BamlDec
{
}
- internal XamlDecompiler(BamlDecompilerTypeSystem typeSystem, BamlDecompilerSettings settings)
+ public XamlDecompiler(BamlDecompilerTypeSystem typeSystem, BamlDecompilerSettings settings)
{
this.typeSystem = typeSystem ?? throw new ArgumentNullException(nameof(typeSystem));
this.settings = settings;
diff --git a/ILSpy.BamlDecompiler/XmlnsDictionary.cs b/ICSharpCode.BamlDecompiler/XmlnsDictionary.cs
similarity index 97%
rename from ILSpy.BamlDecompiler/XmlnsDictionary.cs
rename to ICSharpCode.BamlDecompiler/XmlnsDictionary.cs
index 74ada58150..74f7f7f0db 100644
--- a/ILSpy.BamlDecompiler/XmlnsDictionary.cs
+++ b/ICSharpCode.BamlDecompiler/XmlnsDictionary.cs
@@ -25,9 +25,9 @@ THE SOFTWARE.
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.TypeSystem;
-using ILSpy.BamlDecompiler.Xaml;
+using ICSharpCode.BamlDecompiler.Xaml;
-namespace ILSpy.BamlDecompiler
+namespace ICSharpCode.BamlDecompiler
{
internal class XmlnsScope : List
{
diff --git a/ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs b/ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs
index 9b87d99bee..e94175e80a 100644
--- a/ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs
+++ b/ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs
@@ -1,5 +1,4 @@
using System;
-using System.Collections.Concurrent;
using System.IO;
using System.Management.Automation;
using System.Threading;
@@ -89,7 +88,7 @@ protected override void ProcessRecord()
private void DoDecompile(string path)
{
- PEFile module = Decompiler.TypeSystem.MainModule.PEFile;
+ MetadataFile module = Decompiler.TypeSystem.MainModule.MetadataFile;
var assemblyResolver = new UniversalAssemblyResolver(module.FileName, false, module.Metadata.DetectTargetFrameworkId());
WholeProjectDecompiler decompiler = new WholeProjectDecompiler(assemblyResolver);
decompiler.ProgressIndicator = this;
diff --git a/ICSharpCode.Decompiler.PowerShell/ICSharpCode.Decompiler.PowerShell.csproj b/ICSharpCode.Decompiler.PowerShell/ICSharpCode.Decompiler.PowerShell.csproj
index c50801c161..f5d58901fe 100644
--- a/ICSharpCode.Decompiler.PowerShell/ICSharpCode.Decompiler.PowerShell.csproj
+++ b/ICSharpCode.Decompiler.PowerShell/ICSharpCode.Decompiler.PowerShell.csproj
@@ -8,11 +8,9 @@
8.0
-
-
-
-
+
+
diff --git a/ICSharpCode.Decompiler.TestRunner/ICSharpCode.Decompiler.TestRunner.csproj b/ICSharpCode.Decompiler.TestRunner/ICSharpCode.Decompiler.TestRunner.csproj
index 8c8d40ddc3..af31fefa23 100644
--- a/ICSharpCode.Decompiler.TestRunner/ICSharpCode.Decompiler.TestRunner.csproj
+++ b/ICSharpCode.Decompiler.TestRunner/ICSharpCode.Decompiler.TestRunner.csproj
@@ -2,7 +2,7 @@
Exe
- net7.0
+ net8.0
enable
diff --git a/ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs b/ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs
index ed4a3f2bb2..53cb566c07 100644
--- a/ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs
+++ b/ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs
@@ -46,7 +46,7 @@ public void AllFilesHaveTests()
if (file.Extension == ".txt" || file.Extension == ".exe" || file.Extension == ".config")
continue;
var testName = Path.GetFileNameWithoutExtension(file.Name);
- Assert.Contains(testName, testNames);
+ Assert.That(testNames, Has.Member(testName));
}
}
@@ -336,10 +336,6 @@ public async Task StackTypes([Values(false, true)] bool force32Bit)
[Test]
public async Task UnsafeCode([ValueSource(nameof(defaultOptions))] CompilerOptions options)
{
- if (options.HasFlag(CompilerOptions.UseMcs2_6_4))
- {
- Assert.Ignore("Decompiler bug with mono!");
- }
await RunCS(options: options);
}
@@ -486,7 +482,7 @@ async Task RunIL(string testFileName, CompilerOptions options = CompilerOptions.
bool optionsForce32Bit = options.HasFlag(CompilerOptions.Force32Bit);
bool asmOptionsForce32Bit = asmOptions.HasFlag(AssemblerOptions.Force32Bit);
- Assert.AreEqual(optionsForce32Bit, asmOptionsForce32Bit, "Inconsistent architecture.");
+ Assert.That(asmOptionsForce32Bit, Is.EqualTo(optionsForce32Bit), "Inconsistent architecture.");
try
{
diff --git a/ICSharpCode.Decompiler.Tests/DataFlowTest.cs b/ICSharpCode.Decompiler.Tests/DataFlowTest.cs
index cfe14be750..7a1c200fa9 100644
--- a/ICSharpCode.Decompiler.Tests/DataFlowTest.cs
+++ b/ICSharpCode.Decompiler.Tests/DataFlowTest.cs
@@ -45,11 +45,11 @@ public RDTest(ILFunction f, ILVariable v) : base(f, _ => true, CancellationToken
protected internal override void VisitTryFinally(TryFinally inst)
{
- Assert.IsTrue(IsPotentiallyUninitialized(state, v));
+ Assert.That(IsPotentiallyUninitialized(state, v));
base.VisitTryFinally(inst);
- Assert.IsTrue(state.IsReachable);
- Assert.AreEqual(1, GetStores(state, v).Count());
- Assert.IsFalse(IsPotentiallyUninitialized(state, v));
+ Assert.That(state.IsReachable);
+ Assert.That(GetStores(state, v).Count(), Is.EqualTo(1));
+ Assert.That(!IsPotentiallyUninitialized(state, v));
}
}
diff --git a/ICSharpCode.Decompiler.Tests/DisassemblerPrettyTestRunner.cs b/ICSharpCode.Decompiler.Tests/DisassemblerPrettyTestRunner.cs
index 9636facc1c..9fa9e7e855 100644
--- a/ICSharpCode.Decompiler.Tests/DisassemblerPrettyTestRunner.cs
+++ b/ICSharpCode.Decompiler.Tests/DisassemblerPrettyTestRunner.cs
@@ -47,7 +47,7 @@ public void AllFilesHaveTests()
if (file.Extension.Equals(".il", StringComparison.OrdinalIgnoreCase))
{
var testName = file.Name.Split('.')[0];
- Assert.Contains(testName, testNames);
+ Assert.That(testNames, Has.Member(testName));
}
}
}
diff --git a/ICSharpCode.Decompiler.Tests/Helpers/Tester.VB.cs b/ICSharpCode.Decompiler.Tests/Helpers/Tester.VB.cs
index 2c84b6180e..6b8e403e37 100644
--- a/ICSharpCode.Decompiler.Tests/Helpers/Tester.VB.cs
+++ b/ICSharpCode.Decompiler.Tests/Helpers/Tester.VB.cs
@@ -133,7 +133,7 @@ public static async Task CompileVB(string sourceFileName, Compi
{
Console.WriteLine("errors:" + Environment.NewLine + result.StandardError);
}
- Assert.AreEqual(0, result.ExitCode, "vbc failed");
+ Assert.That(result.ExitCode, Is.EqualTo(0), "vbc failed");
return results;
}
diff --git a/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs b/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs
index cd3f185dad..ecbcf5c1b7 100644
--- a/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs
+++ b/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs
@@ -105,12 +105,19 @@ static Tester()
TesterPath = Path.GetDirectoryName(typeof(Tester).Assembly.Location);
TestCasePath = Path.Combine(TesterPath, "../../../../TestCases");
#if DEBUG
- testRunnerBasePath = Path.Combine(TesterPath, "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Debug/net7.0");
+ testRunnerBasePath = Path.Combine(TesterPath, "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Debug/net8.0");
#else
- testRunnerBasePath = Path.Combine(TesterPath, "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Release/net7.0");
+ testRunnerBasePath = Path.Combine(TesterPath, "../../../../../ICSharpCode.Decompiler.TestRunner/bin/Release/net8.0");
#endif
- packagesPropsFile = Path.Combine(TesterPath, "../../../../../packages.props");
- roslynLatestVersion = XDocument.Load(packagesPropsFile).XPathSelectElement("//RoslynVersion").Value;
+ // To parse:
+ packagesPropsFile = Path.Combine(TesterPath, "../../../../../Directory.Packages.props");
+ roslynLatestVersion = ((IEnumerable