Build fails for 'dotnet new scim' template due to missing SimpleIdServer.Scim.ApiKeyAuth package
Description
When creating a new project using the dotnet new scim template, the resulting project fails to build because it is missing a required NuGet package: SimpleIdServer.Scim.ApiKeyAuth
Steps to Reproduce
- Install the
SimpleIdServer.Scimtemplates if you haven't already:dotnet new scim -n ScimEF --connectionString "Data Source=.;Initial Catalog=SCIM;Integrated Security=True;TrustServerCertificate=True" -t "SQLSERVER" - Attempt to build the project:
dotnet build
Expected Behavior
The project should build successfully without any errors, as it's generated from a template. All necessary NuGet packages should be included in the project file by default.
Actual Behavior
The build process fails with errors indicating that the SimpleIdServer.Scim.ApiKeyAuth namespace and its types cannot be found. This is because the NuGet package is not referenced in the .csproj file.
Hello @dimOk00,
You're right — the .NET template for the SimpleIdServer.Scim.Startup project was invalid. This issue has been addressed in the release/v6.0.4 branch with the following changes:
- Added the missing NuGet packages:
<PackageReference Include="SimpleIdServer.Scim.ApiKeyAuth" Version="6.0.*-*" />
<PackageReference Include="SimpleIdServer.Scim.MassTransit" Version="6.0.*-*" />
- Included the missing using directive
using SimpleIdServer.Scim;in theScimServerSetup.csfile.
KR,
SID
Thanks for your effort!