microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.34k stars 2.21k forks source link

.Net 4.8 BCL: Switch UseLegacyFipsThrow for VSTO add-ins is set to true (old behavior) by default #1117

Open acardenaskma opened 4 years ago

acardenaskma commented 4 years ago

Hello team,

Why is the switch UseLegacyFipsThrow for VSTO add-ins set to true (old behavior) by default? Was it intentional? All other project types I tested use the new policy as default.

Regards, Alain.

vivmishra commented 4 years ago

@bartonjs

bartonjs commented 4 years ago

If the switch is true, either the main executable targets something older than 4.8, or the switch is actively set to true by config.

I don't know what is hosting the VSTO add-in, but whatever it is is what would be used for the "older than 4.8" check.

acardenaskma commented 4 years ago

Thanks Jeremy,

The add-ins are hosted in PowerPoint and Excel from Office 365 (latest semi-annual stable build). I guess the latest semi-annual release has not target .net 4.8 yet. I tried updating the switch inside the add-in start up function and It seems to work.

I'll do some testing with the latest monthly release to see if the .net target version was increased to 4.8.

Alain.