Skip to content

Commit

Permalink
chore: update JotunnDoc, JotunnTests and JotunnTestMod to modern SDK …
Browse files Browse the repository at this point in the history
…style project
  • Loading branch information
MSchmoecker committed Jan 19, 2025
1 parent e708951 commit c013836
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 171 deletions.
84 changes: 18 additions & 66 deletions JotunnDoc/JotunnDoc.csproj
Original file line number Diff line number Diff line change
@@ -1,83 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<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')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C1CE124B-037E-46F6-A4BF-58793967D471}</ProjectGuid>
<TargetFramework>net462</TargetFramework>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>JotunnDoc</RootNamespace>
<AssemblyName>JotunnDoc</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Release\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Doc.cs" />
<Compile Include="Docs\EventDoc.cs" />
<Compile Include="Docs\MeshDoc.cs" />
<Compile Include="Docs\VegetationDoc.cs" />
<Compile Include="Docs\LanguageDoc.cs" />
<Compile Include="Docs\LocationDoc.cs" />
<Compile Include="Docs\MaterialDoc.cs" />
<Compile Include="Docs\ShaderDoc.cs" />
<Compile Include="Docs\SpriteDoc.cs" />
<Compile Include="Docs\InputDoc.cs" />
<Compile Include="Docs\PieceDoc.cs" />
<Compile Include="Docs\PieceTableDoc.cs" />
<Compile Include="Docs\RPCDoc.cs" />
<Compile Include="Docs\StatusEffectDoc.cs" />
<Compile Include="Docs\RecipeDoc.cs" />
<Compile Include="Docs\ItemDoc.cs" />
<Compile Include="Docs\PrefabDoc.cs" />
<Compile Include="Docs\CharacterDoc.cs" />
<Compile Include="JotunnDoc.cs" />
<Compile Include="Patches\GameEvents.cs" />
<Compile Include="Patches\ZRoutedRpcPatches.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\IgnoreAccessModifiers.cs" />
</ItemGroup>

<ItemGroup>
<None Include="app.config" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj">
<Project>{a6082a59-38be-4cab-9078-2c8fcda65b8f}</Project>
<Name>JotunnLib</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

<Import Project="$(SolutionDir)JotunnLib\BuildProps\Paths.props" />
<Import Project="$(SolutionDir)JotunnLib\BuildProps\JotunnLibRefsCorlib.props" />
</Project>
</Project>
87 changes: 26 additions & 61 deletions JotunnTests/JotunnTests.csproj
Original file line number Diff line number Diff line change
@@ -1,80 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{63288C44-A2D3-4723-8A45-E71379889CAC}</ProjectGuid>
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFramework>net462</TargetFramework>
<RootNamespace>JotunnTests</RootNamespace>
<AssemblyName>JotunnTests</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<OutputType>Library</OutputType>
<Platforms>AnyCPU</Platforms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Release\</OutputPath>
</PropertyGroup>

<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c">
<HintPath>..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath>
</Reference>
<Reference Include="xunit.assert, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c">
<HintPath>..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll</HintPath>
</Reference>
<Reference Include="xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c">
<HintPath>..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll</HintPath>
</Reference>
<Reference Include="xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c">
<HintPath>..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CompatibilityLevelTest.cs" />
<Compile Include="CompatibilityZPackageTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SynchronizationManagerTest.cs" />
<PackageReference Include="xunit" Version="2.1.0" />
<PackageReference Include="xunit.abstractions" Version="2.0.0" />
<PackageReference Include="xunit.assert" Version="2.1.0" />
<PackageReference Include="xunit.extensibility.core" Version="2.1.0" />
<PackageReference Include="xunit.extensibility.execution" Version="2.1.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj">
<Project>{a6082a59-38be-4cab-9078-2c8fcda65b8f}</Project>
<Name>JotunnLib</Name>
</ProjectReference>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj" />
</ItemGroup>

<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="BuildProps\version.props" Condition="Exists('BuildProps\version.props')" />

<Import Project="$(SolutionDir)JotunnLib\BuildProps\Paths.props" />
<Import Project="$(SolutionDir)JotunnLib\BuildProps\JotunnLibRefsCorlib.props" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
66 changes: 22 additions & 44 deletions TestMod/TestMod.csproj
Original file line number Diff line number Diff line change
@@ -1,51 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<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')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4C2C2CF0-05F9-42C9-AD1D-5CD040D06344}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFramework>net462</TargetFramework>
<RootNamespace>TestMod</RootNamespace>
<AssemblyName>TestMod</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<LangVersion>latest</LangVersion>
<Deterministic>true</Deterministic>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DocumentationFile>
</DocumentationFile>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Release\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>

<ItemGroup>
<Compile Include="ColorChanger.cs" />
<Compile Include="ConsoleCommands\AdminCheckCommand.cs" />
Expand All @@ -69,6 +47,7 @@
<Compile Include="TestMapDrawing.cs" />
<Compile Include="TestUndo.cs" />
</ItemGroup>

<ItemGroup>
<None Include="app.config" />
<EmbeddedResource Include="AssetsEmbedded\steel" />
Expand All @@ -85,6 +64,7 @@
<None Include="Assets\Translations\English\backpack.english.json" />
<None Include="Assets\Translations\English\translations.json" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="AssetsEmbedded\pieces" />
<EmbeddedResource Include="AssetsEmbedded\clutterbundle" />
Expand All @@ -95,18 +75,16 @@
<Content Include="Assets\test_var4.png" />
<Content Include="Assets\test_varpaint.png" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj">
<Project>{a6082a59-38be-4cab-9078-2c8fcda65b8f}</Project>
<Name>JotunnLib</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\JotunnLib\JotunnLib.csproj" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

<Target Name="CopyToPluginFolder" AfterTargets="Build" Condition="'$(OS)' == 'Windows_NT'">
<Exec Command="powershell.exe -ExecutionPolicy RemoteSigned -File &quot;$(SolutionDir)publish.ps1&quot; -Target &quot;$(ConfigurationName)&quot; -TargetPath &quot;$(TargetDir.TrimEnd('\'))&quot; -TargetAssembly &quot;$(TargetFileName)&quot; -ValheimPath &quot;$(VALHEIM_INSTALL.TrimEnd('\'))&quot; -DeployPath &quot;$(MOD_DEPLOYPATH.TrimEnd('\'))&quot; -ProjectPath &quot;$(ProjectDir.TrimEnd('\'))&quot;" />
<Exec Command="xcopy &quot;$(ProjectDir)Assets&quot; &quot;$(MOD_DEPLOYPATH)\TestMod\Assets\&quot; /S /Y" />
</Target>

<Import Project="$(SolutionDir)JotunnLib\BuildProps\Paths.props" />
<Import Project="$(SolutionDir)JotunnLib\BuildProps\JotunnLibRefsCorlib.props" />
</Project>
</Project>

0 comments on commit c013836

Please sign in to comment.