mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Add net5.0 target framework
This commit is contained in:
parent
18277fbea8
commit
5fa4934787
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
||||||
<FileVersion>0.16.0.0</FileVersion>
|
<FileVersion>0.16.0.0</FileVersion>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFrameworks>net472;net5.0-windows</TargetFrameworks>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ApplicationIcon>Resources\as.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\as.ico</ApplicationIcon>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
@ -51,12 +51,22 @@
|
|||||||
</ContentWithTargetPath>
|
</ContentWithTargetPath>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0-windows' ">
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
<PackageReference Include="OpenTK" Version="4.6.7" />
|
||||||
|
<Reference Include="OpenTK.WinForms">
|
||||||
|
<HintPath>Libraries\OpenTK.WinForms.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
|
||||||
<PackageReference Include="OpenTK" Version="3.1.0" />
|
<PackageReference Include="OpenTK" Version="3.1.0" />
|
||||||
<PackageReference Include="OpenTK.GLControl" Version="3.1.0" />
|
<PackageReference Include="OpenTK.GLControl" Version="3.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="CustomAfterBuild" AfterTargets="AfterBuild">
|
<Target Name="CustomAfterBuild" AfterTargets="AfterBuild">
|
||||||
<Copy SourceFiles="$(SolutionDir)AssetStudioFBXNative\bin\Win32\$(Configuration)\AssetStudioFBXNative.dll" DestinationFolder="$(TargetDir)x86" ContinueOnError="true" />
|
<Copy SourceFiles="$(SolutionDir)AssetStudioFBXNative\bin\Win32\$(Configuration)\AssetStudioFBXNative.dll" DestinationFolder="$(TargetDir)x86" ContinueOnError="true" />
|
||||||
<Copy SourceFiles="$(SolutionDir)AssetStudioFBXNative\bin\x64\$(Configuration)\AssetStudioFBXNative.dll" DestinationFolder="$(TargetDir)x64" ContinueOnError="true" />
|
<Copy SourceFiles="$(SolutionDir)AssetStudioFBXNative\bin\x64\$(Configuration)\AssetStudioFBXNative.dll" DestinationFolder="$(TargetDir)x64" ContinueOnError="true" />
|
||||||
|
11
AssetStudioGUI/AssetStudioGUIForm.Designer.cs
generated
11
AssetStudioGUI/AssetStudioGUIForm.Designer.cs
generated
@ -819,20 +819,21 @@
|
|||||||
//
|
//
|
||||||
// FMODtimerLabel
|
// FMODtimerLabel
|
||||||
//
|
//
|
||||||
|
this.FMODtimerLabel.AutoSize = true;
|
||||||
this.FMODtimerLabel.ForeColor = System.Drawing.SystemColors.ControlLightLight;
|
this.FMODtimerLabel.ForeColor = System.Drawing.SystemColors.ControlLightLight;
|
||||||
this.FMODtimerLabel.Location = new System.Drawing.Point(404, 235);
|
this.FMODtimerLabel.Location = new System.Drawing.Point(460, 235);
|
||||||
this.FMODtimerLabel.Name = "FMODtimerLabel";
|
this.FMODtimerLabel.Name = "FMODtimerLabel";
|
||||||
this.FMODtimerLabel.Size = new System.Drawing.Size(155, 12);
|
this.FMODtimerLabel.Size = new System.Drawing.Size(95, 12);
|
||||||
this.FMODtimerLabel.TabIndex = 7;
|
this.FMODtimerLabel.TabIndex = 7;
|
||||||
this.FMODtimerLabel.Text = "0:00.0 / 0:00.0";
|
this.FMODtimerLabel.Text = "0:00.0 / 0:00.0";
|
||||||
this.FMODtimerLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
|
||||||
//
|
//
|
||||||
// FMODstatusLabel
|
// FMODstatusLabel
|
||||||
//
|
//
|
||||||
|
this.FMODstatusLabel.AutoSize = true;
|
||||||
this.FMODstatusLabel.ForeColor = System.Drawing.SystemColors.ControlLightLight;
|
this.FMODstatusLabel.ForeColor = System.Drawing.SystemColors.ControlLightLight;
|
||||||
this.FMODstatusLabel.Location = new System.Drawing.Point(213, 235);
|
this.FMODstatusLabel.Location = new System.Drawing.Point(213, 235);
|
||||||
this.FMODstatusLabel.Name = "FMODstatusLabel";
|
this.FMODstatusLabel.Name = "FMODstatusLabel";
|
||||||
this.FMODstatusLabel.Size = new System.Drawing.Size(50, 12);
|
this.FMODstatusLabel.Size = new System.Drawing.Size(47, 12);
|
||||||
this.FMODstatusLabel.TabIndex = 6;
|
this.FMODstatusLabel.TabIndex = 6;
|
||||||
this.FMODstatusLabel.Text = "Stopped";
|
this.FMODstatusLabel.Text = "Stopped";
|
||||||
//
|
//
|
||||||
@ -1065,8 +1066,6 @@
|
|||||||
// AssetStudioGUIForm
|
// AssetStudioGUIForm
|
||||||
//
|
//
|
||||||
this.AllowDrop = true;
|
this.AllowDrop = true;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.ClientSize = new System.Drawing.Size(1264, 681);
|
this.ClientSize = new System.Drawing.Size(1264, 681);
|
||||||
this.Controls.Add(this.splitContainer1);
|
this.Controls.Add(this.splitContainer1);
|
||||||
this.Controls.Add(this.menuStrip1);
|
this.Controls.Add(this.menuStrip1);
|
||||||
|
@ -21,9 +21,14 @@ using static AssetStudioGUI.Studio;
|
|||||||
using Font = AssetStudio.Font;
|
using Font = AssetStudio.Font;
|
||||||
using ImageFormat = AssetStudio.ImageFormat;
|
using ImageFormat = AssetStudio.ImageFormat;
|
||||||
using PixelFormat = System.Drawing.Imaging.PixelFormat;
|
using PixelFormat = System.Drawing.Imaging.PixelFormat;
|
||||||
|
#if NET472
|
||||||
using Vector3 = OpenTK.Vector3;
|
using Vector3 = OpenTK.Vector3;
|
||||||
using Vector4 = OpenTK.Vector4;
|
using Vector4 = OpenTK.Vector4;
|
||||||
|
#else
|
||||||
|
using Vector3 = OpenTK.Mathematics.Vector3;
|
||||||
|
using Vector4 = OpenTK.Mathematics.Vector4;
|
||||||
|
using Matrix4 = OpenTK.Mathematics.Matrix4;
|
||||||
|
#endif
|
||||||
namespace AssetStudioGUI
|
namespace AssetStudioGUI
|
||||||
{
|
{
|
||||||
partial class AssetStudioGUIForm : Form
|
partial class AssetStudioGUIForm : Form
|
||||||
|
BIN
AssetStudioGUI/Libraries/OpenTK.WinForms.dll
Normal file
BIN
AssetStudioGUI/Libraries/OpenTK.WinForms.dll
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
||||||
<FileVersion>0.16.0.0</FileVersion>
|
<FileVersion>0.16.0.0</FileVersion>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net472;netstandard2.0;net5.0</TargetFrameworks>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<Version>0.16.0.0</Version>
|
<Version>0.16.0.0</Version>
|
||||||
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
<AssemblyVersion>0.16.0.0</AssemblyVersion>
|
||||||
|
Loading…
Reference in New Issue
Block a user