Skip to content

Commit

Permalink
Verbose mode prints command line, temp file name
Browse files Browse the repository at this point in the history
  • Loading branch information
damageboy committed Apr 4, 2011
1 parent c3d04d5 commit 0e70e41
Show file tree
Hide file tree
Showing 13 changed files with 2,013 additions and 2,003 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ Daemaged.InlineIL/bin
Daemaged.InlineIL/obj Daemaged.InlineIL/obj
*.suo *.suo
*.user *.user
*.suo
100 changes: 50 additions & 50 deletions Daemaged.InlineIL.Demos/Filter_CSharp.cs
@@ -1,51 +1,51 @@
using System; using System;
class Foo class Foo
{ {
static void ThrowMe() static void ThrowMe()
{ {
throw new ArgumentException(); throw new ArgumentException();
} }


static void Main() static void Main()
{ {
string x; string x;
object ex = null; object ex = null;
#if IL #if IL
// declare a new local. // declare a new local.
.locals init (int32 ghi) .locals init (int32 ghi)


.try .try
{ {
#endif #endif
x = "a"; x = "a";
ThrowMe(); ThrowMe();


#if IL #if IL
leave.s IL_ExitTryCatch leave.s IL_ExitTryCatch
} // end try block } // end try block
filter filter
{ {
// Exception object is on the stack. // Exception object is on the stack.
stloc ex stloc ex
#endif #endif
Console.WriteLine("Inside Filter. Object=" + ex); Console.WriteLine("Inside Filter. Object=" + ex);
x += "b"; x += "b";


#if IL #if IL
ldc.i4.1 // true - execute handler ldc.i4.1 // true - execute handler
endfilter endfilter
} // end filter } // end filter
{ // begin handler { // begin handler
#endif #endif
Console.WriteLine("Yow! In handler now!"); Console.WriteLine("Yow! In handler now!");
x += "c"; x += "c";
#if IL #if IL
leave.s IL_ExitTryCatch leave.s IL_ExitTryCatch
} // end handler } // end handler
IL_ExitTryCatch: nop IL_ExitTryCatch: nop
#endif #endif


Console.WriteLine("Back in C#"); Console.WriteLine("Back in C#");
Console.WriteLine(x); Console.WriteLine(x);
} // end Main } // end Main
} // end Class Foo } // end Class Foo
40 changes: 20 additions & 20 deletions Daemaged.InlineIL.Demos/Simple_CSharp.cs
@@ -1,21 +1,21 @@
using System; using System;
class Program class Program
{ {
static void Main() static void Main()
{ {
int x = 3; int x = 3;
int y = 4; int y = 4;
int z = 5; int z = 5;


// Here's some inline IL // Here's some inline IL
#if IL #if IL
ldloc x ldloc x
ldloc y ldloc y
add add
ldloc z ldloc z
add add
stloc x stloc x
#endif #endif
Console.WriteLine(x); Console.WriteLine(x);
} }
} }
40 changes: 20 additions & 20 deletions Daemaged.InlineIL.sln
@@ -1,20 +1,20 @@


Microsoft Visual Studio Solution File, Format Version 11.00 Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010 # Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Daemaged.InlineIL", "Daemaged.InlineIL\Daemaged.InlineIL.csproj", "{DD22CE04-2896-4430-8D16-CD7FB06BABD4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Daemaged.InlineIL", "Daemaged.InlineIL\Daemaged.InlineIL.csproj", "{DD22CE04-2896-4430-8D16-CD7FB06BABD4}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Debug|Any CPU.Build.0 = Debug|Any CPU {DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Release|Any CPU.ActiveCfg = Release|Any CPU {DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Release|Any CPU.Build.0 = Release|Any CPU {DD22CE04-2896-4430-8D16-CD7FB06BABD4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal
162 changes: 81 additions & 81 deletions Daemaged.InlineIL/Daemaged.InlineIL.csproj
@@ -1,82 +1,82 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion> <ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion> <SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{DD22CE04-2896-4430-8D16-CD7FB06BABD4}</ProjectGuid> <ProjectGuid>{DD22CE04-2896-4430-8D16-CD7FB06BABD4}</ProjectGuid>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Daemaged.InlineIL</RootNamespace> <RootNamespace>Daemaged.InlineIL</RootNamespace>
<AssemblyName>Daemaged.InlineIL</AssemblyName> <AssemblyName>Daemaged.InlineIL</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile> <TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisLogFile>bin\Debug\Daemaged.InlineIL.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile> <CodeAnalysisLogFile>bin\Debug\Daemaged.InlineIL.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSetDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> <CodeAnalysisRuleSetDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
<CodeAnalysisRuleDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> <CodeAnalysisRuleDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<CodeAnalysisLogFile>bin\Release\Daemaged.InlineIL.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile> <CodeAnalysisLogFile>bin\Release\Daemaged.InlineIL.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
<CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
<CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSetDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> <CodeAnalysisRuleSetDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
<CodeAnalysisRuleDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> <CodeAnalysisRuleDirectories>;C:\dev\vs10\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<SignAssembly>true</SignAssembly> <SignAssembly>true</SignAssembly>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<AssemblyOriginatorKeyFile>Daemaged.InlineIL.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>Daemaged.InlineIL.snk</AssemblyOriginatorKeyFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="ILanguage.cs" /> <Compile Include="ILanguage.cs" />
<Compile Include="ILDocument.cs" /> <Compile Include="ILDocument.cs" />
<Compile Include="InlineILSnippet.cs" /> <Compile Include="InlineILSnippet.cs" />
<Compile Include="Options.cs" /> <Compile Include="Options.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Daemaged.InlineIL.snk" /> <None Include="Daemaged.InlineIL.snk" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>
Empty file modified Daemaged.InlineIL/Daemaged.InlineIL.snk 100755 → 100644
Empty file.

0 comments on commit 0e70e41

Please sign in to comment.