Skip to content

Commit

Permalink
migrate to net core, add code from pull requests morkt#388 morkt#394
Browse files Browse the repository at this point in the history
…of original fork
  • Loading branch information
daoluong committed Jul 28, 2020
1 parent c5e13f6 commit 1f0570c
Show file tree
Hide file tree
Showing 75 changed files with 5,949 additions and 2,915 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bin
obj
tags
.vs
*.exe
*.dll
*.pdb
Expand All @@ -14,5 +15,9 @@ Images
SchemeBuilder
Makefile
packages
Experimental
#Experimental
.nuget
*.csproj.user
/.vscode
/omnisharp.json
/inc-revision.pl
79 changes: 79 additions & 0 deletions ArcFormats/ArcFormats.Core.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>ArcFormats</AssemblyName>
<RootNamespace>GameRes.Formats</RootNamespace>
<UseWPF>true</UseWPF>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;DEBUG;NETCORE</DefineConstants>
<OutputPath>..\bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\bin\Release\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETCORE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<Compile Remove="CsWare\AudioAF2.cs" />
<Compile Remove="DraftArc.cs" />
<Compile Remove="DraftAudio.cs" />
<Compile Remove="DraftImage.cs" />
<Compile Remove="Entis\AudioEMS.cs" />
<Compile Remove="Primel\AudioWBC.cs" />
</ItemGroup>

<ItemGroup>
<None Remove="packages.config" />
<None Remove="Properties\Settings.settings" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NVorbis" Version="0.10.1" />
<PackageReference Include="SharpZipLib" Version="1.2.0" />
<PackageReference Include="System.ComponentModel.Composition" Version="4.7.0" />
<PackageReference Include="System.IO.FileSystem" Version="4.3.0" />
<PackageReference Include="System.IO.FileSystem.Primitives" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.1" />
<PackageReference Include="System.Security.Cryptography.Primitives" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\GameRes\GameRes.Core.csproj" />
<ProjectReference Include="..\Net20\Net20.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Resource Include="Properties\Settings.settings" />
</ItemGroup>

<ItemGroup>
<Compile Update="Strings\arcStrings.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>arcStrings.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Strings\arcStrings.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>arcStrings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="dotnet script &quot;$(SolutionDir)inc-revision.csx&quot; &quot;$(ProjectPath)&quot; $(ConfigurationName)&#xD;&#xA;&#xA;exit 0" />
</Target>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="if not exist &quot;$(TargetDir)\GameData&quot; mkdir &quot;$(TargetDir)\GameData&quot;&#xD;&#xA;xcopy &quot;$(ProjectDir)\Resources\Formats.dat&quot; &quot;$(TargetDir)\GameData\&quot; /D /Y &gt;NUL" />
</Target>

</Project>
Loading

0 comments on commit 1f0570c

Please sign in to comment.