❔ .NET 8 - C#12 - preview try interceptors

would like to try the new c# 12 preview function Interceptors but can't seem to get them to work. The page says Preview feature Introduced in Visual Studio 17.7, preview 3. this is not released jet so i tried rider because I have seen Nick Chapsas Youtube video I have looked at the Youtube video some more and saw that the InterceptsLocationAttribute was in one of his helper files so I tried adding the code for that attribute to my code project. Than the code compiles bus still not works. The code execution did not jump to the interception code.
11 Replies
demonicmetalcs
demonicmetalcs13mo ago
thanks for that info but how is he using them in this video?
demonicmetalcs
demonicmetalcs13mo ago
Nick Chapsas
YouTube
The New “Interceptors” Feature of C# 12 Is WILD!
Use code SUMMER23 until the 20th of July for a 15% discount on any bundle at https://dometrain.com/bundles Become a Patreon and get source code access: https://www.patreon.com/nickchapsas Hello everybody, I'm Nick, and in this video, I will introduce you to a new C# feature coming in C# 12 and .NET 8 called "Interceptors". It is a very interest...
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
demonicmetalcs
demonicmetalcs13mo ago
but the prototype is made, it there a way to use that?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
demonicmetalcs
demonicmetalcs13mo ago
I got it working the changes are already in the main brach of https://github.com/dotnet/roslyn so by building that localy i can start a new version of visual studio and run the code in that
GitHub
GitHub - dotnet/roslyn: The Roslyn .NET compiler provides C# and Vi...
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs. - GitHub - dotnet/roslyn: The Roslyn .NET compiler provides C# and Visual Basic languages with rich cod...
ero
ero13mo ago
good luck getting anyone to contribute to your code if you're planning on that lol (also the feature will likely change dramatically before it's released)
demonicmetalcs
demonicmetalcs13mo ago
It is just a test project for myself something to hobby on
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.