Upgrade to SDK-style .csproj file

This enables dotnet CLI support and helps with moving to .NET 5 in the
future.
This commit is contained in:
Kazumi 2020-09-15 18:01:43 +02:00 committed by Yorumoto Akira
parent cae439d957
commit d70fcaa1d5
No known key found for this signature in database
GPG key ID: B99B4048B29FC4B8
3 changed files with 15 additions and 83 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
obj/ obj/
bin/ bin/
*.user *.user
backup*/

View file

@ -1,37 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<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> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <TargetFramework>net472</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <LangVersion>latest</LangVersion>
<ProjectGuid>{13C812E9-0D42-4B95-8646-40EEBF30636F}</ProjectGuid> <AssemblyTitle>Penumbra</AssemblyTitle>
<OutputType>Library</OutputType> <Company>absolute gangstas</Company>
<AppDesignerFolder>Properties</AppDesignerFolder> <Product>Penumbra</Product>
<RootNamespace>Penumbra</RootNamespace> <Copyright>Copyright © 2020</Copyright>
<AssemblyName>Penumbra</AssemblyName> <FileVersion>1.0.0.0</FileVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> <AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileAlignment>512</FileAlignment> <OutputPath>bin\$(Configuration)\</OutputPath>
<Deterministic>true</Deterministic> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>8</LangVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Dalamud"> <Reference Include="Dalamud">
@ -54,42 +39,13 @@
<HintPath>$(AppData)\XIVLauncher\addon\Hooks\Lumina.dll</HintPath> <HintPath>$(AppData)\XIVLauncher\addon\Hooks\Lumina.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Numerics" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<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.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Configuration.cs" /> <PackageReference Include="DotNetZip" Version="1.13.8" />
<Compile Include="DialogExtensions.cs" />
<Compile Include="Importer\Models\ExtendedModPack.cs" />
<Compile Include="Importer\Models\SimpleModPack.cs" />
<Compile Include="Importer\TexToolsImport.cs" />
<Compile Include="Extensions\FuckedExtensions.cs" />
<Compile Include="Models\ModMeta.cs" />
<Compile Include="ModManager.cs" />
<Compile Include="Plugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Structs\FileMode.cs" />
<Compile Include="Structs\SeFileDescriptor.cs" />
<Compile Include="ResourceMod.cs" />
<Compile Include="ResourceLoader.cs" />
<Compile Include="Structs\ResourceHandle.cs" />
<Compile Include="SettingsInterface.cs" />
<Compile Include="Util\Crc32.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DotNetZip">
<Version>1.13.8</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View file

@ -1,18 +1,6 @@
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Penumbra")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("absolute gangstas")]
[assembly: AssemblyProduct("Penumbra")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. // COM, set the ComVisible attribute to true on that type.
@ -20,16 +8,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM // The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("13c812e9-0d42-4b95-8646-40eebf30636f")] [assembly: Guid("13c812e9-0d42-4b95-8646-40eebf30636f")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]