Skip to content

Commit

Permalink
Add optimize flag to release configs
Browse files Browse the repository at this point in the history
Add git versioning to missing modules
  • Loading branch information
bcssov committed Mar 15, 2024
1 parent 7372a8d commit 1a82368
Show file tree
Hide file tree
Showing 27 changed files with 273 additions and 10 deletions.
13 changes: 11 additions & 2 deletions src/IronyModManager.Common/IronyModManager.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,21 @@
<WarningsAsErrors />
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>


<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>


<ItemGroup>
<None Include="..\IronyModManager\Assets\logo.png">
<Pack>True</Pack>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.DI/IronyModManager.DI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<None Remove="Irony-Main-Public.snk" />
<None Remove="Irony-Plugin-Public.snk" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
<Compile Include="..\IronyModManager.IO.Common\Platforms\ISteam.cs" Link="IO\ISteam.cs" />
Expand Down Expand Up @@ -47,10 +57,14 @@

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Nerdbank.GitVersioning" />
<PackageReference Include="NLog" Version="5.2.8" />
<PackageReference Include="Sajidur78.StrongNamer" Version="0.2.8" />
<PackageReference Include="Steamworks.NET" Version="20.1.0" />
<PackageReference Update="Nerdbank.GitVersioning" Version="3.6.133" />
<PackageReference Update="Nerdbank.GitVersioning" Version="3.6.133">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.IO.Common/IronyModManager.IO.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.IO.Tests/IronyModManager.IO.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.IO/IronyModManager.IO.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
<WarningsAsErrors />
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>


<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.Models/IronyModManager.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions src/IronyModManager.Parser.Tests/HOI4Validation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public HOI4Validation(ITestOutputHelper writer) : base(writer, @"D:\Games\Steam\
#else


#region Methods

[Fact(Timeout = 300000)]
#endif
/// <summary>
Expand Down Expand Up @@ -74,6 +72,5 @@ public Task HOI4Extensions()
return Task.CompletedTask;
}

#endregion Methods
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.Parser/IronyModManager.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
11 changes: 11 additions & 0 deletions src/IronyModManager.Platform/IronyModManager.Platform.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>


<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.Services/IronyModManager.Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
10 changes: 10 additions & 0 deletions src/IronyModManager.Shared/IronyModManager.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
<NoWarn>1701;1702;NU1603</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\GlobalSuppressions.cs" Link="GlobalSuppressions.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
<NoWarn>1701;1702;NU1603;xUnit1004</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='osx-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='win-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='linux-x64|x64'">
<Optimize>True</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Functional_Test|x64'">
<DefineConstants>TRACE;FUNCTIONAL_TEST</DefineConstants>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 1a82368

Please sign in to comment.