Skip to content

Added preprocessor directive so that the assembly internals are visib… #6245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

kc284
Copy link
Contributor

@kc284 kc284 commented Jan 21, 2025

…le to XenServerTest only when specified.

Making the internals visible to a friend assembly works only if both assemblies are signed with a strong name or both unsigned. The code won't compile in scenarios where only the source code needs to be built and signed with a .snk key, therefore I'm suggesting using a preprocessor directive that can be switched on and off by the build caller (the other option is to put both source and test projects in a solution and build and sign both at all times, but at the moment I think we can go with the easy option).

@kc284 kc284 force-pushed the master branch 2 times, most recently from 13186cd to 356f134 Compare January 21, 2025 18:32
…le to XenServerTest only when specified.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@cloud.com>
@kc284 kc284 marked this pull request as ready for review January 22, 2025 12:23
@kc284 kc284 requested review from xueqingz and CitrixChris January 22, 2025 12:24
Copy link
Contributor

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passes, although I can't comment on the C# build changes, I assume the CI passed before too, and problems were only noticed in other build environments which sign builds differently?

@kc284 kc284 added this pull request to the merge queue Jan 23, 2025
Merged via the queue into xapi-project:master with commit 4441556 Jan 23, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants