What changed, and why it matters
This commit cleans up leftover build configuration entries in two C# project files. It removes duplicate or stale entries that told the build system how to treat certain view files and folders. There is no indication this change fixes or introduces a security problem; it appears to be routine housekeeping.
No security action required. Treat as normal build cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch deletes redundant ItemGroup blocks from BTCPayServer.csproj and removes a TargetFrameworkOverride fallback line from Build/Common.csproj. The removed entries include Content/None/Watch declarations for Razor views, vendor folders, and plugin views. These are build/packaging metadata changes, not runtime code changes. No security-relevant behavior is altered in the diff.
Changed components
BTCPayServer/BTCPayServer.csprojBuild/Common.csprojInspect captured patch +0 / −115
diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj
index b62a849..21e169c 100644
--- a/BTCPayServer/BTCPayServer.csproj
+++ b/BTCPayServer/BTCPayServer.csproj
@@ -23,15 +23,6 @@
<EmbeddedResource Remove="wwwroot\vendor\jquery-nice-select\**" />
<None Remove="Build\**" />
<None Remove="wwwroot\vendor\jquery-nice-select\**" />
- <Content Update="Views\UIStorePullPayments\NewPullPayment.cshtml">
- <Pack>false</Pack>
- </Content>
- <Content Update="Views\UIStorePullPayments\PullPayments.cshtml">
- <Pack>false</Pack>
- </Content>
- <Content Update="Views\UIAccount\_ViewImports.cshtml">
- <Pack>false</Pack>
- </Content>
</ItemGroup>
<ItemGroup>
<None Remove="Currencies.txt" />
@@ -72,23 +63,6 @@
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="10.0.1" />
</ItemGroup>
- <ItemGroup>
- <None Include="Views\UIReports\StoreReports.cshtml" />
- <None Include="wwwroot\vendor\jquery\jquery.js" />
- <None Include="wwwroot\vendor\jquery\jquery.min.js" />
- </ItemGroup>
-
- <ItemGroup>
- <Folder Include="wwwroot\vendor\bootstrap" />
- <Folder Include="wwwroot\vendor\clipboard.js\" />
- <Folder Include="wwwroot\vendor\highlightjs\" />
- <Folder Include="wwwroot\vendor\pivottable\" />
- <Folder Include="wwwroot\vendor\summernote" />
- <Folder Include="wwwroot\vendor\tom-select" />
- <Folder Include="wwwroot\vendor\ur-registry" />
- <Folder Include="wwwroot\vendor\vue-qrcode-reader" />
- </ItemGroup>
-
<ItemGroup>
<ProjectReference Include="..\BTCPayServer.Abstractions\BTCPayServer.Abstractions.csproj" />
<ProjectReference Include="..\BTCPayServer.Client\BTCPayServer.Client.csproj" />
@@ -97,94 +71,6 @@
<ProjectReference Include="..\BTCPayServer.Common\BTCPayServer.Common.csproj" />
</ItemGroup>
- <ItemGroup>
- <Watch Include="Views\**\*.*"></Watch>
- <Watch Remove="Views\Shared\LocalhostBrowserSupport.cshtml" />
- <Watch Remove="Views\Shared\_BackAndReturn.cshtml" />
- <Watch Remove="Views\UIAccount\CheatPermissions.cshtml" />
- <Watch Remove="Views\UIReports\StoreReports.cshtml" />
- <Watch Remove="Views\UIServer\CreateDictionary.cshtml" />
- <Watch Remove="Views\UIServer\EditDictionary.cshtml" />
- <Watch Remove="Views\UIServer\ListDictionaries.cshtml" />
- <Watch Remove="Views\UIWallets\WalletBumpFee.cshtml" />
- <Content Update="Views\UIApps\_ViewImports.cshtml">
- <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\DynamicDnsServices.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\LightningChargeServices.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\LightningWalletServices.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\LndSeedBackup.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\RPCService.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\P2PService.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\DynamicDnsService.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\SSHService.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIStores\ShowToken.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\LndServices.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\Maintenance.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIServer\Services.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\ListWallets.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\WalletPSBTCombine.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\Wallets\WalletPSBTReady.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\WalletPSBT.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\WalletRescan.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\WalletSendVault.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\WalletTransactions.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\_Nav.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\_ViewImports.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- <Content Update="Views\UIWallets\_ViewStart.cshtml">
- <Pack>$(IncludeRazorContentInPack)</Pack>
- </Content>
- </ItemGroup>
-
- <ItemGroup>
- <_ContentIncludedByDefault Remove="Plugins\Emails\Views\UIStoreEmailRules\StoreEmailRulesList.cshtml" />
- <_ContentIncludedByDefault Remove="Plugins\Emails\Views\UIStoreEmailRules\StoreEmailRulesManage.cshtml" />
- <_ContentIncludedByDefault Remove="Plugins\Emails\Views\UIServerEmail\ServerEmailSettings.cshtml" />
- <_ContentIncludedByDefault Remove="Plugins\Emails\Views\UIStoresEmail\StoreEmailSettings.cshtml" />
- </ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties wwwroot_4swagger_4v1_4swagger_1template_1invoices_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1misc_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1pull-payments_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1serverinfo_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1stores_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1stores-payment-methods_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1stores-users_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1users_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" wwwroot_4swagger_4v1_4swagger_1template_1webhooks_1json__JsonSchema="https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json" /></VisualStudio></ProjectExtensions>
</Project>
diff --git a/Build/Common.csproj b/Build/Common.csproj
index 62e0e99..9407247 100644
--- a/Build/Common.csproj
+++ b/Build/Common.csproj
@@ -1,7 +1,6 @@
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
- <TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">$(TargetFrameworkOverride)</TargetFramework>
<NoWarn>$(NoWarn),NU1701,CA1816,CA1308,CA1810,CA2208,CA1303,CA2000,CA2016,CA1835,CA2249,CA9998,CA1704;CS8981</NoWarn>
<LangVersion>12.0</LangVersion>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.