Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaTy committed Feb 28, 2021
1 parent 8136025 commit 64695b3
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 17 deletions.
22 changes: 22 additions & 0 deletions DotNetParser.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,51 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Debug|x64.ActiveCfg = Debug|x64
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Debug|x64.Build.0 = Debug|x64
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Release|Any CPU.Build.0 = Release|Any CPU
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Release|x64.ActiveCfg = Release|x64
{8F344CC5-DB3B-437D-A492-B41F5BD0160B}.Release|x64.Build.0 = Release|x64
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Debug|x64.ActiveCfg = Debug|x64
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Debug|x64.Build.0 = Debug|x64
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Release|Any CPU.Build.0 = Release|Any CPU
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Release|x64.ActiveCfg = Release|x64
{0B54933E-1BDB-4BF3-BBFC-AAFB7806DCA1}.Release|x64.Build.0 = Release|x64
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Debug|x64.ActiveCfg = Debug|x64
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Debug|x64.Build.0 = Debug|x64
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Release|Any CPU.Build.0 = Release|Any CPU
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Release|x64.ActiveCfg = Release|x64
{B6E06C06-B2C1-46EB-B182-0F449E892F88}.Release|x64.Build.0 = Release|x64
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Debug|x64.ActiveCfg = Debug|x64
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Debug|x64.Build.0 = Debug|x64
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Release|Any CPU.Build.0 = Release|Any CPU
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Release|x64.ActiveCfg = Release|x64
{D9732EFD-8AE7-427F-9962-DF7B77DBF5AC}.Release|x64.Build.0 = Release|x64
{98492900-5501-4AF1-B411-9BC084D28A86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{98492900-5501-4AF1-B411-9BC084D28A86}.Debug|Any CPU.Build.0 = Debug|Any CPU
{98492900-5501-4AF1-B411-9BC084D28A86}.Debug|x64.ActiveCfg = Debug|x64
{98492900-5501-4AF1-B411-9BC084D28A86}.Debug|x64.Build.0 = Debug|x64
{98492900-5501-4AF1-B411-9BC084D28A86}.Release|Any CPU.ActiveCfg = Release|Any CPU
{98492900-5501-4AF1-B411-9BC084D28A86}.Release|Any CPU.Build.0 = Release|Any CPU
{98492900-5501-4AF1-B411-9BC084D28A86}.Release|x64.ActiveCfg = Release|x64
{98492900-5501-4AF1-B411-9BC084D28A86}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
1 change: 1 addition & 0 deletions DotNetParser/DotNetParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions LibDotNetParser/LibDotNetParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions LibDotNetParser/PE/PEFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ public byte[] ReadSection(BinaryReader reader, Section section)
#region Read CLR Headers
private CLRHeader ReadCLRHeader(BinaryReader assemblyReader, PEHeader peHeader)
{
if (peHeader.Directories.Count == 0)
throw new InvalidDataException("PE Header has failed to parse");
var clrDirectoryHeader = peHeader.Directories[(int)DataDirectoryName.CLRHeader];
var clrDirectoryData = ReadVirtualDirectory(assemblyReader, clrDirectoryHeader, peHeader.Sections);
using (var reader = new BinaryReader(new MemoryStream(clrDirectoryData)))
Expand Down
20 changes: 20 additions & 0 deletions TestApp/TestApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
46 changes: 29 additions & 17 deletions TestDll/TestDll.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>98492900-5501-4af1-b411-9bc084d28a86</ProjectGuid>
<ProjectGuid>{98492900-5501-4AF1-B411-9BC084D28A86}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TestDll</RootNamespace>
Expand All @@ -30,25 +30,37 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<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.Net.Http"/>

<Reference Include="System.Xml"/>
<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.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
1 change: 1 addition & 0 deletions TesterKernel/TesterKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<DebugMode>Source</DebugMode>
<IgnoreDebugStubAttribute>False</IgnoreDebugStubAttribute>
<ISOFile>bin\Debug\netcoreapp2.0\cosmos\TesterKernel.iso</ISOFile>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 64695b3

Please sign in to comment.