Skip to content

create new project build error #1451

Open

Description

@wangyue20075
Image

Activity

  1. iammukeshm commented on Nov 3, 2026

    @iammukeshm
    Member

    Thanks for reporting this. These aren't build errors in your code. They're NuGet security advisories, which the template turns into errors because it builds with TreatWarningsAsErrors. They were published after the 10.0.0 template went out on NuGet:

    main already has all three fixed. What's missing is a new template release on NuGet, and I'm preparing that along with a full dependency upgrade.

    Until then, you can fix your generated project yourself. Open src/Directory.Packages.props and set MessagePack to 2.5.305, set every 10.0.x Microsoft package to 10.0.13, and add these pins next to the others:

    <PackageVersion Include="Microsoft.OpenApi" Version="2.12.2" />
    <PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.13" />
    <PackageVersion Include="System.Security.Cryptography.Pkcs" Version="10.0.13" />

    Those are the versions main builds with today, so the current Directory.Packages.props on main is a good reference to compare against.

    If you just need to get unblocked quickly, <NuGetAuditMode>direct</NuGetAuditMode> in Directory.Build.props also works. I'd only use it short term, though, because it hides real transitive advisories.

    I'll leave this open until the new template version is on NuGet.

  2. iammukeshm commented on Nov 3, 2026

    @iammukeshm
    Member

    Quick update: main now has the whole stack on the latest stable versions (#1460, #1461). I packed the template from main and scaffolded fresh projects, and they build with zero audit errors. Once the 10.0.1 template is published to NuGet, dotnet new install FullStackHero.NET.StarterKit will give you a project that builds out of the box. I'll close this when it's out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions