Skip to content

Commit 1e1c9d6

Browse files
committed
refactor: upgrade csproj to new style
1 parent 91810ba commit 1e1c9d6

File tree

4 files changed

+33
-118
lines changed

4 files changed

+33
-118
lines changed
File renamed without changes.

GhostMod/GhostMod.csproj

+32-84
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,63 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{4ABF8C07-C533-407E-9EC9-534C2916C907}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
103
<RootNamespace>Celeste.Mod.Ghost</RootNamespace>
11-
<AssemblyName>GhostMod</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<OutputPath Condition=" '$(TravisCore)' == 'true' ">Artifact\</OutputPath>
15-
<NuGetPackageImportStamp>
16-
</NuGetPackageImportStamp>
4+
<TargetFramework>net452</TargetFramework>
175
<LangVersion>11</LangVersion>
6+
<AssemblyTitle>GhostMode</AssemblyTitle>
7+
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3270</MSBuildWarningsAsMessages>
8+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
10+
</PropertyGroup>
11+
<ItemDefinitionGroup>
12+
<PackageReference IncludeAssets="compile" />
13+
<Reference>
14+
<Private>False</Private>
15+
</Reference>
16+
</ItemDefinitionGroup>
17+
<PropertyGroup>
18+
<PathMap>$(MSBuildProjectDirectory)=GhostMod/</PathMap>
1819
</PropertyGroup>
1920
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20-
<DebugSymbols>true</DebugSymbols>
21-
<OutputPath Condition=" '$(TravisCore)' == '' ">bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
24-
<DebugType>full</DebugType>
25-
<PlatformTarget>AnyCPU</PlatformTarget>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
21+
<DebugType>portable</DebugType>
22+
<DefineConstants>TRACE</DefineConstants>
23+
<WarningLevel>0</WarningLevel>
24+
<UseVSHostingProcess>true</UseVSHostingProcess>
2825
</PropertyGroup>
2926
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30-
<OutputPath Condition=" '$(TravisCore)' == '' ">bin\Release\</OutputPath>
27+
<DebugType>portable</DebugType>
3128
<DefineConstants>TRACE</DefineConstants>
32-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
33-
<Optimize>true</Optimize>
34-
<DebugType Condition=" '$(TravisCore)' == '' ">pdbonly</DebugType>
29+
<DocumentationFile />
30+
<NoWarn>CS1591</NoWarn>
3531
<PlatformTarget>AnyCPU</PlatformTarget>
36-
<ErrorReport>prompt</ErrorReport>
37-
<WarningLevel>4</WarningLevel>
38-
<DebugType>portable</DebugType>
3932
</PropertyGroup>
33+
<ItemGroup>
34+
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.29.1" />
35+
<PackageReference Include="YamlDotNet" Version="8.1.2" />
36+
</ItemGroup>
4037
<ItemGroup>
4138
<Reference Include="Celeste">
4239
<HintPath>lib-stripped\Celeste-nstrip.exe</HintPath>
43-
<Private>False</Private>
4440
</Reference>
4541
<Reference Include="FNA">
4642
<HintPath>lib-stripped\FNA.dll</HintPath>
47-
<Private>False</Private>
4843
</Reference>
4944
<Reference Include="MMHOOK_Celeste">
5045
<HintPath>lib-stripped\MMHOOK_Celeste.dll</HintPath>
51-
<Private>False</Private>
52-
</Reference>
53-
<Reference Include="Mono.Cecil, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.dll</HintPath>
55-
</Reference>
56-
<Reference Include="Mono.Cecil.Mdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
57-
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
58-
</Reference>
59-
<Reference Include="Mono.Cecil.Pdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
60-
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
61-
</Reference>
62-
<Reference Include="Mono.Cecil.Rocks, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
63-
<HintPath>..\packages\Mono.Cecil.0.11.3\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
64-
</Reference>
65-
<Reference Include="MonoMod.RuntimeDetour, Version=21.4.29.1, Culture=neutral, processorArchitecture=MSIL">
66-
<HintPath>..\packages\MonoMod.RuntimeDetour.21.4.29.1\lib\net40\MonoMod.RuntimeDetour.dll</HintPath>
67-
</Reference>
68-
<Reference Include="MonoMod.Utils, Version=21.4.29.1, Culture=neutral, processorArchitecture=MSIL">
69-
<HintPath>..\packages\MonoMod.Utils.21.4.29.1\lib\net40\MonoMod.Utils.dll</HintPath>
70-
</Reference>
71-
<Reference Include="System" />
72-
<Reference Include="System.Xml" />
73-
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e">
74-
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>
75-
<Private>False</Private>
7646
</Reference>
7747
</ItemGroup>
7848
<ItemGroup>
79-
<Compile Include="GhostChunkInput.cs" />
80-
<Compile Include="GhostChunkData.cs" />
81-
<Compile Include="GhostManager.cs" />
82-
<Compile Include="GhostName.cs" />
83-
<Compile Include="GhostInputReplayer.cs" />
84-
<Compile Include="GhostRecorder.cs" />
85-
<Compile Include="GhostData.cs" />
86-
<Compile Include="Ghost.cs" />
87-
<Compile Include="GhostFrame.cs" />
88-
<Compile Include="GhostModuleSettings.cs" />
89-
<Compile Include="GhostModule.cs" />
90-
<Compile Include="Properties\AssemblyInfo.cs" />
91-
<Compile Include="GhostInputNodes.cs" />
92-
</ItemGroup>
93-
<ItemGroup>
94-
<EmbeddedResource Include="Content\Dialog\English.txt">
95-
<LogicalName>Content\Dialog\English.txt</LogicalName>
96-
</EmbeddedResource>
49+
<Compile Remove="lib-stripped\**" />
50+
<EmbeddedResource Remove="lib-stripped\**" />
9751
</ItemGroup>
9852
<ItemGroup>
53+
<Content Include="Dialog\**">
54+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
55+
</Content>
9956
<Content Include="..\everest.yaml">
100-
<Link>everest.yaml</Link>
10157
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
10258
</Content>
10359
</ItemGroup>
10460
<ItemGroup>
105-
<None Include="packages.config" />
61+
<None Remove="lib-stripped\**" />
10662
</ItemGroup>
107-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
108-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
109-
Other similar extension points exist, see Microsoft.Common.targets.
110-
<Target Name="BeforeBuild">
111-
</Target>
112-
<Target Name="AfterBuild">
113-
</Target>
114-
-->
11563
</Project>

GhostMod/Properties/AssemblyInfo.cs

+1-27
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("GhostMod")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("GhostMod")]
13-
[assembly: AssemblyCopyright("Copyright © 2018")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
174
// Setting ComVisible to false makes the types in this assembly not visible
185
// to COM components. If you need to access a type in this assembly from
196
// COM, set the ComVisible attribute to true on that type.
@@ -22,18 +9,5 @@
229
// The following GUID is for the ID of the typelib if this project is exposed to COM
2310
[assembly: Guid("4abf8c07-c533-407e-9ec9-534c2916c907")]
2411

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
37-
3812
// access to internal and private members without needing to use reflection
3913
[assembly: IgnoresAccessChecksTo("Celeste")]

GhostMod/packages.config

-7
This file was deleted.

0 commit comments

Comments
 (0)