Browse Source

Initial ILSpy commit (empty WPF app, plus some images from SharpDevelop).

pull/1/head
Daniel Grunwald 15 years ago
commit
a26d992ba0
  1. 2
      .gitignore
  2. 18
      ILSpy.sln
  3. 8
      ILSpy/App.xaml
  4. 15
      ILSpy/App.xaml.cs
  5. 116
      ILSpy/ILSpy.csproj
  6. BIN
      ILSpy/Images/Class.png
  7. BIN
      ILSpy/Images/Delegate.png
  8. BIN
      ILSpy/Images/Enum.png
  9. BIN
      ILSpy/Images/Field.png
  10. BIN
      ILSpy/Images/Interface.png
  11. BIN
      ILSpy/Images/InternalClass.png
  12. BIN
      ILSpy/Images/InternalDelegate.png
  13. BIN
      ILSpy/Images/InternalEnum.png
  14. BIN
      ILSpy/Images/InternalField.png
  15. BIN
      ILSpy/Images/InternalInterface.png
  16. BIN
      ILSpy/Images/InternalMethod.png
  17. BIN
      ILSpy/Images/InternalStruct.png
  18. BIN
      ILSpy/Images/Literal.png
  19. BIN
      ILSpy/Images/Method.png
  20. BIN
      ILSpy/Images/NameSpace.png
  21. BIN
      ILSpy/Images/Open.png
  22. BIN
      ILSpy/Images/PrivateClass.png
  23. BIN
      ILSpy/Images/PrivateDelegate.png
  24. BIN
      ILSpy/Images/PrivateEnum.png
  25. BIN
      ILSpy/Images/PrivateField.png
  26. BIN
      ILSpy/Images/PrivateInterface.png
  27. BIN
      ILSpy/Images/PrivateMethod.png
  28. BIN
      ILSpy/Images/PrivateStruct.png
  29. BIN
      ILSpy/Images/ProtectedClass.png
  30. BIN
      ILSpy/Images/ProtectedDelegate.png
  31. BIN
      ILSpy/Images/ProtectedEnum.png
  32. BIN
      ILSpy/Images/ProtectedField.png
  33. BIN
      ILSpy/Images/ProtectedInterface.png
  34. BIN
      ILSpy/Images/ProtectedMethod.png
  35. BIN
      ILSpy/Images/ProtectedStruct.png
  36. BIN
      ILSpy/Images/Reference.png
  37. BIN
      ILSpy/Images/Struct.png
  38. 55
      ILSpy/Images/TypeImages.cs
  39. 9
      ILSpy/MainWindow.xaml
  40. 26
      ILSpy/MainWindow.xaml.cs
  41. 31
      ILSpy/Properties/AssemblyInfo.cs
  42. 27
      ILSpy/Properties/WPFAssemblyInfo.cs
  43. 4
      README.txt

2
.gitignore vendored

@ -0,0 +1,2 @@
bin/
obj/

18
ILSpy.sln

@ -0,0 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.0.1.7084
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ILSpy", "ILSpy\ILSpy.csproj", "{1E85EFF9-E370-4683-83E4-8A3D063FF791}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1E85EFF9-E370-4683-83E4-8A3D063FF791}.Debug|x86.Build.0 = Debug|x86
{1E85EFF9-E370-4683-83E4-8A3D063FF791}.Debug|x86.ActiveCfg = Debug|x86
{1E85EFF9-E370-4683-83E4-8A3D063FF791}.Release|x86.Build.0 = Release|x86
{1E85EFF9-E370-4683-83E4-8A3D063FF791}.Release|x86.ActiveCfg = Release|x86
EndGlobalSection
EndGlobal

8
ILSpy/App.xaml

@ -0,0 +1,8 @@
<Application x:Class="ICSharpCode.ILSpy.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Window1.xaml">
<Application.Resources>
</Application.Resources>
</Application>

15
ILSpy/App.xaml.cs

@ -0,0 +1,15 @@
using System;
using System.Windows;
using System.Data;
using System.Xml;
using System.Configuration;
namespace ICSharpCode.ILSpy
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

116
ILSpy/ILSpy.csproj

@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<ProjectGuid>{1E85EFF9-E370-4683-83E4-8A3D063FF791}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>WinExe</OutputType>
<RootNamespace>ICSharpCode.ILSpy</RootNamespace>
<AssemblyName>ILSpy</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'x86' ">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationFramework">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml" />
</ItemGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<SubType>Code</SubType>
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="Images\TypeImages.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\WPFAssemblyInfo.cs" />
<Compile Include="MainWindow.xaml.cs">
<SubType>Code</SubType>
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Page Include="MainWindow.xaml" />
</ItemGroup>
<ItemGroup>
<Resource Include="Images\Class.png" />
<Resource Include="Images\Delegate.png" />
<Resource Include="Images\Enum.png" />
<Resource Include="Images\Field.png" />
<Resource Include="Images\Interface.png" />
<Resource Include="Images\InternalClass.png" />
<Resource Include="Images\InternalDelegate.png" />
<Resource Include="Images\InternalEnum.png" />
<Resource Include="Images\InternalField.png" />
<Resource Include="Images\InternalInterface.png" />
<Resource Include="Images\InternalMethod.png" />
<Resource Include="Images\InternalStruct.png" />
<Resource Include="Images\Literal.png" />
<Resource Include="Images\Method.png" />
<Resource Include="Images\NameSpace.png" />
<Resource Include="Images\Open.png" />
<Resource Include="Images\PrivateClass.png" />
<Resource Include="Images\PrivateDelegate.png" />
<Resource Include="Images\PrivateEnum.png" />
<Resource Include="Images\PrivateField.png" />
<Resource Include="Images\PrivateInterface.png" />
<Resource Include="Images\PrivateMethod.png" />
<Resource Include="Images\PrivateStruct.png" />
<Resource Include="Images\ProtectedClass.png" />
<Resource Include="Images\ProtectedDelegate.png" />
<Resource Include="Images\ProtectedEnum.png" />
<Resource Include="Images\ProtectedField.png" />
<Resource Include="Images\ProtectedInterface.png" />
<Resource Include="Images\ProtectedMethod.png" />
<Resource Include="Images\ProtectedStruct.png" />
<Resource Include="Images\Reference.png" />
<Resource Include="Images\Struct.png" />
</ItemGroup>
<ItemGroup>
<Folder Include="Images" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

BIN
ILSpy/Images/Class.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
ILSpy/Images/Delegate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

BIN
ILSpy/Images/Enum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

BIN
ILSpy/Images/Field.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

BIN
ILSpy/Images/Interface.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

BIN
ILSpy/Images/InternalClass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

BIN
ILSpy/Images/InternalDelegate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

BIN
ILSpy/Images/InternalEnum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

BIN
ILSpy/Images/InternalField.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

BIN
ILSpy/Images/InternalInterface.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

BIN
ILSpy/Images/InternalMethod.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

BIN
ILSpy/Images/InternalStruct.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 B

BIN
ILSpy/Images/Literal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

BIN
ILSpy/Images/Method.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
ILSpy/Images/NameSpace.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

BIN
ILSpy/Images/Open.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
ILSpy/Images/PrivateClass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 B

BIN
ILSpy/Images/PrivateDelegate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

BIN
ILSpy/Images/PrivateEnum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 845 B

BIN
ILSpy/Images/PrivateField.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

BIN
ILSpy/Images/PrivateInterface.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

BIN
ILSpy/Images/PrivateMethod.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

BIN
ILSpy/Images/PrivateStruct.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 B

BIN
ILSpy/Images/ProtectedClass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B

BIN
ILSpy/Images/ProtectedDelegate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 937 B

BIN
ILSpy/Images/ProtectedEnum.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 B

BIN
ILSpy/Images/ProtectedField.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

BIN
ILSpy/Images/ProtectedInterface.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

BIN
ILSpy/Images/ProtectedMethod.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

BIN
ILSpy/Images/ProtectedStruct.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

BIN
ILSpy/Images/Reference.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

BIN
ILSpy/Images/Struct.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

55
ILSpy/Images/TypeImages.cs

@ -0,0 +1,55 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Windows.Media.Imaging;
namespace ICSharpCode.ILSpy
{
static class TypeImages
{
static BitmapImage LoadBitmap(string name)
{
BitmapImage image = new BitmapImage(new Uri("pack://application:,,,/Images/" + name + ".png"));
image.Freeze();
return image;
}
public static readonly BitmapImage Class = LoadBitmap("Class");
public static readonly BitmapImage Delegate = LoadBitmap("Delegate");
public static readonly BitmapImage Enum = LoadBitmap("Enum");
public static readonly BitmapImage Interface = LoadBitmap("Interface");
public static readonly BitmapImage Struct = LoadBitmap("Struct");
public static readonly BitmapImage Field = LoadBitmap("Field");
public static readonly BitmapImage Method = LoadBitmap("Method");
public static readonly BitmapImage Literal = LoadBitmap("Literal");
public static readonly BitmapImage InternalClass = LoadBitmap("InternalClass");
public static readonly BitmapImage InternalDelegate = LoadBitmap("InternalDelegate");
public static readonly BitmapImage InternalEnum = LoadBitmap("InternalEnum");
public static readonly BitmapImage InternalInterface = LoadBitmap("InternalInterface");
public static readonly BitmapImage InternalStruct = LoadBitmap("InternalStruct");
public static readonly BitmapImage InternalField = LoadBitmap("InternalField");
public static readonly BitmapImage InternalMethod = LoadBitmap("InternalMethod");
public static readonly BitmapImage PrivateClass = LoadBitmap("PrivateClass");
public static readonly BitmapImage PrivateDelegate = LoadBitmap("PrivateDelegate");
public static readonly BitmapImage PrivateEnum = LoadBitmap("PrivateEnum");
public static readonly BitmapImage PrivateInterface = LoadBitmap("PrivateInterface");
public static readonly BitmapImage PrivateStruct = LoadBitmap("PrivateStruct");
public static readonly BitmapImage PrivateField = LoadBitmap("PrivateField");
public static readonly BitmapImage PrivateMethod = LoadBitmap("PrivateMethod");
public static readonly BitmapImage ProtectedClass = LoadBitmap("ProtectedClass");
public static readonly BitmapImage ProtectedDelegate = LoadBitmap("ProtectedDelegate");
public static readonly BitmapImage ProtectedEnum = LoadBitmap("ProtectedEnum");
public static readonly BitmapImage ProtectedInterface = LoadBitmap("ProtectedInterface");
public static readonly BitmapImage ProtectedStruct = LoadBitmap("ProtectedStruct");
public static readonly BitmapImage ProtectedField = LoadBitmap("ProtectedField");
public static readonly BitmapImage ProtectedMethod = LoadBitmap("ProtectedMethod");
}
}

9
ILSpy/MainWindow.xaml

@ -0,0 +1,9 @@
<Window x:Class="ICSharpCode.ILSpy.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ILSpy" Height="300" Width="300"
>
<Grid>
</Grid>
</Window>

26
ILSpy/MainWindow.xaml.cs

@ -0,0 +1,26 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ICSharpCode.ILSpy
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}

31
ILSpy/Properties/AssemblyInfo.cs

@ -0,0 +1,31 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ILSpy")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ILSpy")]
[assembly: AssemblyCopyright("Copyright 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

27
ILSpy/Properties/WPFAssemblyInfo.cs

@ -0,0 +1,27 @@
#region Using directives
using System.Resources;
using System.Windows;
#endregion
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

4
README.txt

@ -0,0 +1,4 @@
ILSpy is the open-source .NET assembly browser and decompiler.
This early version was hastily created by Daniel Grunwald after RedGate announced that Reflector would no longer
be available for free.
Loading…
Cancel
Save