Why is "using YamlDotNet.Core.Tokens;" in one of my scripts?..
Hello
I just stumbled upon an unexpected build error, and when I looked into it I found this extremely strange namespace reference, namely YamlDotNet.Core.Tokens. I looked it up and found what the package is, but I never used or downloaded it. That script was a very basic script I had created (and then discarded soon because of choosing to use Bolt for this very simple project). I am 100% sure I did not write that line of code at the beginning of the script. Does anyone have any idea what this could be? Is it possible that I imported something into my project that does that whenever a new script is created? If I create a script now, that doesn't happen.
Answer by xxmariofer · Nov 19, 2020 at 09:11 AM
Nothing you imported has edited the script, the most probable case, is that once that same script had an error, you clicked on quick fix and one of the fixes was importing that namespace
The highly weird thing is that I never had that asset (YA$$anonymous$$L) so I don't see how VS could have imported that namespace.
maybe an asset you were using imported the library, is hard to tell