build: simplify Calamity.csproj, remove redundancies

Brings the file more in line with what tModLoader generates by default.

Introduces different semantics, technically.

- `AssemblyName` property declaration is redundant as the project file is already named `CalamityMod`

  - would require redeclaration if we, for some reason, renamed the project file (irrelevant)

- don't specify `TargetFramework`, duplicated from `tMLMods.targets`,

- don't specify `PlatformTarget`, duplicated from `tMLMods.targets` (in which it is already redundant, because that is the default value),

- don't specify `LangVersion`,

  - semantic change, `tMLMods.targets` specifically sets `12` while we choose `latest`; these are the same value for now.

  - may be worthwhile to set back to `latest` if we desire for some reason,

- remove reference to old `tModLoader.CodeAssist` package

  - made redundant by recent tML update.
This commit is contained in:
Stephen T committed 2025-08-06 23:44:15 -05:00
1 parent c10f153177
commit 70f457c631
1 file changed
+2 -10
+2 -10
View File
@@ -1,13 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\tModLoader.targets" />
<PropertyGroup>
<AssemblyName>CalamityMod</AssemblyName>
<TargetFramework>net8.0</TargetFramework>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="tModLoader.CodeAssist" Version="0.1.5" />
</ItemGroup>
</Project>