Open
Conversation
ResourceProvider.GetStringFromEnum returns empty strings for EntityType values in standalone SDK apps because the resource assemblies are not loaded outside of Security Desk/Config Tool. This sample reproduces the issue without requiring a Security Center connection.
Include EntityType, RoleType, CredentialState, StreamingType, and DeviceReaderEncryptionStatus. Use SampleBase for consistency with other Platform SDK samples.
ResourceProvider.GetStringFromEnum is a static helper that does not require an Engine connection. Only SdkResolver.Initialize is needed for assembly resolution.
…atements Match the MediaFileSample pattern: top-level statements with SdkResolver.Initialize() called first, SDK code wrapped in RunSample() local function to ensure assembly resolution occurs before any SDK types are referenced by JIT.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds the new ResourceProviderSample project to the code samples solution so it is included in the Samples build/configuration matrix and appears under the expected solution folder.
Changes:
- Adds
ResourceProviderSampleproject entry toGenetec.Dap.CodeSamples.sln. - Wires the project into all existing solution configurations (Debug/Release + NET481/NET8 variants).
- Nests the project under the existing solution folder structure and registers Shared Items imports.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Remove the .resources assembly filter so satellite resource assemblies can be resolved. Add culture-specific probing for resource assemblies. On .NET Framework, set Environment.CurrentDirectory to the SDK probing path so the internal ResourceHelper can find *.Resources.Core.dll files.
This reverts commit 2ba63fe.
This reverts commit b97d6b7.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.