Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Converting amender to .NET 3.5 in preparation for having a .NET 3.5 a…

…nd .NET 4.0 version of the amender
  • Loading branch information...
commit ad52e284a9e7285f5bf01b0d71375b68fa80b838 1 parent 21178c8
@jamiemthomas jamiemthomas authored
View
8 Afterthought.Amender/Afterthought.Amender.csproj → Afterthought.Amender/Afterthought.Amender.3.5.csproj
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Afterthought.Amender</RootNamespace>
<AssemblyName>Afterthought.Amender</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
@@ -56,14 +56,12 @@
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<ItemGroup>
- <Reference Include="Microsoft.Build" />
<Reference Include="Microsoft.Build.Framework" />
- <Reference Include="Microsoft.Build.Utilities.v4.0" />
+ <Reference Include="Microsoft.Build.Utilities.v3.5" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
@@ -158,8 +156,6 @@
<Compile Include="Microsoft.CCI\PeWriter\MemoryStream.cs" />
<Compile Include="Microsoft.CCI\PeWriter\PdbWriterInterface.cs" />
<Compile Include="Microsoft.CCI\PeWriter\PeWriter.cs" />
- <Compile Include="Microsoft.CCI\ReflectionEmitter\Emitter.cs" />
- <Compile Include="Microsoft.CCI\ReflectionEmitter\Mapper.cs" />
<Compile Include="Microsoft.CCI\SourceModel\DummyObjects.cs" />
<Compile Include="Microsoft.CCI\SourceModel\Implementations.cs" />
<Compile Include="Microsoft.CCI\SourceModel\Interfaces.cs" />
View
8 Afterthought.Amender/DelegateType.cs
@@ -37,4 +37,12 @@ internal enum MethodDelegateType
Function = 512,
HasResultParameter = 1024
}
+
+ internal static class MethodDelegateTypeExtensions
+ {
+ public static bool HasFlag(this MethodDelegateType type, MethodDelegateType value)
+ {
+ return (type & value) > 0;
+ }
+ }
}
View
2  Afterthought.Amender/app.config
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
View
76 Afterthought.sln
@@ -15,7 +15,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Afterthought.UnitTest.Targe
{FF39EADC-9D3C-40EB-A0EA-60C76C560D54} = {FF39EADC-9D3C-40EB-A0EA-60C76C560D54}
EndProjectSection
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Afterthought.Amender", "Afterthought.Amender\Afterthought.Amender.csproj", "{FF39EADC-9D3C-40EB-A0EA-60C76C560D54}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Afterthought.Amender.3.5", "Afterthought.Amender\Afterthought.Amender.3.5.csproj", "{FF39EADC-9D3C-40EB-A0EA-60C76C560D54}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Logging", "Examples\Logging\Logging\Logging.csproj", "{DCF621B2-47A4-490A-897D-C3593E2FB9C1}"
ProjectSection(ProjectDependencies) = postProject
@@ -68,50 +68,50 @@ Global
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://vc3-cae-tfs-01.vc3.com:8080/tfs/defaultcollection
SccLocalPath0 = .
- SccProjectUniqueName1 = Afterthought.Amender\\Afterthought.Amender.csproj
- SccProjectName1 = Afterthought.Amender
- SccLocalPath1 = Afterthought.Amender
- SccProjectUniqueName2 = Afterthought.UnitTest.Target\\Afterthought.UnitTest.Target.csproj
- SccProjectName2 = Afterthought.UnitTest.Target
- SccLocalPath2 = Afterthought.UnitTest.Target
- SccProjectUniqueName3 = Afterthought.UnitTest\\Afterthought.UnitTest.csproj
- SccProjectName3 = Afterthought.UnitTest
- SccLocalPath3 = Afterthought.UnitTest
- SccProjectUniqueName4 = Afterthought\\Afterthought.csproj
- SccProjectName4 = Afterthought
- SccLocalPath4 = Afterthought
- SccProjectUniqueName5 = Examples\\EntityFramework\\EntityFramework\\EntityFramework.csproj
+ SccProjectUniqueName1 = Afterthought.UnitTest.Target\\Afterthought.UnitTest.Target.csproj
+ SccProjectName1 = Afterthought.UnitTest.Target
+ SccLocalPath1 = Afterthought.UnitTest.Target
+ SccProjectUniqueName2 = Afterthought.UnitTest\\Afterthought.UnitTest.csproj
+ SccProjectName2 = Afterthought.UnitTest
+ SccLocalPath2 = Afterthought.UnitTest
+ SccProjectUniqueName3 = Afterthought\\Afterthought.csproj
+ SccProjectName3 = Afterthought
+ SccLocalPath3 = Afterthought
+ SccProjectUniqueName4 = Examples\\EntityFramework\\EntityFramework\\EntityFramework.csproj
+ SccProjectTopLevelParentUniqueName4 = Afterthought.sln
+ SccProjectName4 = Examples/EntityFramework/EntityFramework
+ SccLocalPath4 = Examples\\EntityFramework\\EntityFramework
+ SccProjectUniqueName5 = Examples\\Logging\\Logging.Amender\\Logging.Amender.csproj
SccProjectTopLevelParentUniqueName5 = Afterthought.sln
- SccProjectName5 = Examples/EntityFramework/EntityFramework
- SccLocalPath5 = Examples\\EntityFramework\\EntityFramework
- SccProjectUniqueName6 = Examples\\Logging\\Logging.Amender\\Logging.Amender.csproj
+ SccProjectName5 = Examples/Logging/Logging.Amender
+ SccLocalPath5 = Examples\\Logging\\Logging.Amender
+ SccProjectUniqueName6 = Examples\\Logging\\Logging.UnitTest.Target\\Logging.UnitTest.Target.csproj
SccProjectTopLevelParentUniqueName6 = Afterthought.sln
- SccProjectName6 = Examples/Logging/Logging.Amender
- SccLocalPath6 = Examples\\Logging\\Logging.Amender
- SccProjectUniqueName7 = Examples\\Logging\\Logging.UnitTest.Target\\Logging.UnitTest.Target.csproj
+ SccProjectName6 = Examples/Logging/Logging.UnitTest.Target
+ SccLocalPath6 = Examples\\Logging\\Logging.UnitTest.Target
+ SccProjectUniqueName7 = Examples\\Logging\\Logging.UnitTest\\Logging.UnitTest.csproj
SccProjectTopLevelParentUniqueName7 = Afterthought.sln
- SccProjectName7 = Examples/Logging/Logging.UnitTest.Target
- SccLocalPath7 = Examples\\Logging\\Logging.UnitTest.Target
- SccProjectUniqueName8 = Examples\\Logging\\Logging.UnitTest\\Logging.UnitTest.csproj
+ SccProjectName7 = Examples/Logging/Logging.UnitTest
+ SccLocalPath7 = Examples\\Logging\\Logging.UnitTest
+ SccProjectUniqueName8 = Examples\\Logging\\Logging\\Logging.csproj
SccProjectTopLevelParentUniqueName8 = Afterthought.sln
- SccProjectName8 = Examples/Logging/Logging.UnitTest
- SccLocalPath8 = Examples\\Logging\\Logging.UnitTest
- SccProjectUniqueName9 = Examples\\Logging\\Logging\\Logging.csproj
+ SccProjectName8 = Examples/Logging/Logging
+ SccLocalPath8 = Examples\\Logging\\Logging
+ SccProjectUniqueName9 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest.Target\\NotifyPropertyChanged.UnitTest.Target.csproj
SccProjectTopLevelParentUniqueName9 = Afterthought.sln
- SccProjectName9 = Examples/Logging/Logging
- SccLocalPath9 = Examples\\Logging\\Logging
- SccProjectUniqueName10 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest.Target\\NotifyPropertyChanged.UnitTest.Target.csproj
+ SccProjectName9 = Examples/NotifyPropertyChanged/NotifyPropertyChanged.UnitTest.Target
+ SccLocalPath9 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest.Target
+ SccProjectUniqueName10 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest\\NotifyPropertyChanged.UnitTest.csproj
SccProjectTopLevelParentUniqueName10 = Afterthought.sln
- SccProjectName10 = Examples/NotifyPropertyChanged/NotifyPropertyChanged.UnitTest.Target
- SccLocalPath10 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest.Target
- SccProjectUniqueName11 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest\\NotifyPropertyChanged.UnitTest.csproj
+ SccProjectName10 = Examples/NotifyPropertyChanged/NotifyPropertyChanged.UnitTest
+ SccLocalPath10 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest
+ SccProjectUniqueName11 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged\\NotifyPropertyChanged.csproj
SccProjectTopLevelParentUniqueName11 = Afterthought.sln
- SccProjectName11 = Examples/NotifyPropertyChanged/NotifyPropertyChanged.UnitTest
- SccLocalPath11 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged.UnitTest
- SccProjectUniqueName12 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged\\NotifyPropertyChanged.csproj
- SccProjectTopLevelParentUniqueName12 = Afterthought.sln
- SccProjectName12 = Examples/NotifyPropertyChanged/NotifyPropertyChanged
- SccLocalPath12 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged
+ SccProjectName11 = Examples/NotifyPropertyChanged/NotifyPropertyChanged
+ SccLocalPath11 = Examples\\NotifyPropertyChanged\\NotifyPropertyChanged
+ SccProjectUniqueName12 = Afterthought.Amender\\Afterthought.Amender.3.5.csproj
+ SccProjectName12 = Afterthought.Amender
+ SccLocalPath12 = Afterthought.Amender
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
CompilerOnly|Any CPU = CompilerOnly|Any CPU
Please sign in to comment.
Something went wrong with that request. Please try again.