F5 in VS Code now starts Titano, the Uploader and the server under the C# extension's debugger, as well as the --capture runs, Titano.Tools and the test programs. Each configuration builds in Debug first and starts the program's .exe rather than its .dll, because the programs read Environment.ProcessPath (Setup's payload, the Run keys and tray icons). The server's session keeps its data and archive in out/debug/server instead of %ProgramData% and C:\TitanoArchive. The build tasks use no reused MSBuild nodes, whose cached drive-letter case made every F5 build restore and C# Dev Kit reload, and keep MSB3026 (a copy that succeeds on a retry) a warning so a file held for a moment no longer stops F5. Design-time builds skip the icon generation, which on a fresh clone ran a Titano.Tools.dll that did not exist yet (MSB3073 in VS Code), and log WPF's MC1000 about projects not built yet as a message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
3.1 KiB
XML
64 lines
3.1 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
|
|
<TitanoVersion Condition="'$(TitanoVersion)' == ''">0.1.0</TitanoVersion>
|
|
<Version>$(TitanoVersion)</Version>
|
|
<AssemblyVersion>$([System.Text.RegularExpressions.Regex]::Match($(TitanoVersion), '^\d+\.\d+\.\d+').Value).0</AssemblyVersion>
|
|
<FileVersion>$(AssemblyVersion)</FileVersion>
|
|
<InformationalVersion>$(TitanoVersion)</InformationalVersion>
|
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
|
<Product>Titano</Product>
|
|
<Company>Titano</Company>
|
|
<Copyright>© Titano</Copyright>
|
|
<NeutralLanguage>en</NeutralLanguage>
|
|
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
|
|
<AnalysisLevel>latest</AnalysisLevel>
|
|
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
|
|
<GenerateDocumentationFile>false</GenerateDocumentationFile>
|
|
<Deterministic>true</Deterministic>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<InvariantGlobalization>false</InvariantGlobalization>
|
|
<SatelliteResourceLanguages>en;it;de;fr;es;pt-BR;pt-PT;nl;pl;cs;sk;hu;ro;sv;da;nb;fi;ru;uk;tr;el;bg;hr;sl;lt;lv;et;ja;zh-Hans;zh-Hant;ko;ar;he;hi;id;ms;vi;th</SatelliteResourceLanguages>
|
|
|
|
<!-- Lets Linux build the Windows projects (compile check); runtime remains Windows-only. -->
|
|
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
|
<!-- No package feeds are used; restore only fetches SDK targeting/runtime packs. -->
|
|
<NuGetAudit>false</NuGetAudit>
|
|
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
|
<IsPackable>false</IsPackable>
|
|
<DebugType>embedded</DebugType>
|
|
</PropertyGroup>
|
|
|
|
<!-- Design-time builds (C# Dev Kit, Visual Studio) of a fresh clone: WPF's markup compile cannot load project
|
|
references not built yet (MC1000, a warning there that warnings as errors would turn back into an error). -->
|
|
<PropertyGroup Condition="'$(DesignTimeBuild)' == 'true'">
|
|
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MC1000</MSBuildWarningsAsMessages>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- Public repository that hosts releases, update checks and the Unraid template (BRIEF §19.4). -->
|
|
<TitanoReleasesRepo Condition="'$(TitanoReleasesRepo)' == ''">alby96/titano-releases</TitanoReleasesRepo>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<AssemblyMetadata Include="TitanoReleasesRepo" Value="$(TitanoReleasesRepo)" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- Monetization (BRIEF §21) ships disabled; the human's own builds pass -p:TitanoAdsEnabled=true. -->
|
|
<TitanoAdsEnabled Condition="'$(TitanoAdsEnabled)' != 'true'">false</TitanoAdsEnabled>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<AssemblyMetadata Include="TitanoAdsEnabled" Value="$(TitanoAdsEnabled)" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
|
<Optimize>true</Optimize>
|
|
</PropertyGroup>
|
|
</Project>
|