Replies: 1 comment 2 replies
-
|
This is very likely the same root cause as that issue and so should be resolved by #7415. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A while back (.NET Core 3.1) we implemented a custom task that used
ProtectedDataAPI using theRoslynCodeTaskFactoryto store authentication tokens needed during the build and it worked just fine. Then we switched to a different approach so this wasn't tested for a while.Then on a different project we had that need again so we pulled the previously working solution out of the hat only to figure out it doesn't work in Visual Studio 2022 (CLI build using
dotnet buildworks just fine). I haven't tested VS 2019 as we rely on .NET 6.I cannot shake the feeling this is somehow related to dotnet/sdk#23498 (comment) since there clearly is an assembly loading problem somewhere.
I wasn't able to work around this so we basically copy-pasted
ProtectedDatafrom the runtime (it's only a few lines of code). So we don't have any issue right now but maybe solving this could help others 😉.Could you help me @baronfel get to the bottom of this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions