Skip to content
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

Configuration default tagged option is not serialized #239

Open
glaporte-ubisoft opened this issue Dec 15, 2022 · 0 comments
Open

Configuration default tagged option is not serialized #239

glaporte-ubisoft opened this issue Dec 15, 2022 · 0 comments

Comments

@glaporte-ubisoft
Copy link

Hello,

I want to generate a csproj containing:
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>

i try by doing this

        public override void Configure(Configuration conf, Target target)
        {
            base.Configure(conf, target);
            conf.Options.Add(Options.CSharp.AutoGenerateBindingRedirects.Disabled);
        }

By the way it is not serialized, because this option is tagged with Default attribute (i guess). (If i put Enabled it is serialized)
Moreover the default option should be true since recently (https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/how-to-enable-and-disable-automatic-binding-redirection)

The automatic binding redirection feature affects desktop apps that target .NET Framework 4.5.1 or a later version. If you haven't explicitly enabled or disabled autogenerated binding redirection and you upgrade an existing project, the feature is automatically enabled.

Thank you.

@glaporte-ubisoft glaporte-ubisoft changed the title Configuration default options not serialized Configuration default tagged option is not serialized Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@glaporte-ubisoft and others