Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
<ToolingPackagesVersion>1.1.1.19071</ToolingPackagesVersion>
<AccessToNugetFeed Condition="'$(AccessToNugetFeed)' == ''">false</AccessToNugetFeed>
<!-- Disable NuGet vulnerability audit when the private feed is unavailable (e.g. CI without credentials).
NuGet audit queries all sources in nuget.config regardless of RestoreSources, causing NU1900 which is
escalated to an error by TreatWarningsAsErrors. -->
<NuGetAudit Condition="'$(AccessToNugetFeed)' != 'true'">false</NuGetAudit>
<!-- Enable NuGet vulnerability audit on public nuget.org feed. Restrict to nuget.org's service index
to avoid NU1900 errors when the private Azure DevOps feed is unavailable (e.g. CI without credentials). -->
<NuGetAudit>true</NuGetAudit>
<NuGetAuditSources Condition="'$(AccessToNugetFeed)' != 'true'">https://api.nuget.org/v3/index.json</NuGetAuditSources>
</PropertyGroup>
<ItemGroup Condition="$(AccessToNugetFeed)">
<PackageVersion Include="ContentFeedNuget" Version="$(ToolingPackagesVersion)" />
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This guide will help you set up your local development environment for working o
For basic browsing and UI development, no secrets are needed. The database connection and HCaptcha test keys are already configured in `appsettings.Development.json`.

1. Clone the repository.
2. If you have access to the private NuGet feed, set `<AccessToNugetFeed>true</AccessToNugetFeed>` in [Directory.Packages.props](../Directory.Packages.props).
2. (Optional) If you have access to the private NuGet feed, set `<AccessToNugetFeed>true</AccessToNugetFeed>` in [Directory.Packages.props](../Directory.Packages.props) to include internal packages. Without this, the app runs with placeholder content but security audits still function.
3. Run the project.

> **Tip:** Use the [dotnet secret manager](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets#set-a-secret) for any secrets below:
Expand Down
4 changes: 4 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="EssentialCSharp" value="https://pkgs.dev.azure.com/intelliTect/_packaging/EssentialCSharp/nuget/v3/index.json" />
</packageSources>
<auditSources>
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</auditSources>
<packageSourceMapping>
<packageSource key="nuget">
<package pattern="*" />
Expand Down
Loading