Author Topic: Context tagging .NET  (Read 197 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1787
  • Hero Points: 174
  • Text
Context tagging .NET
« on: August 21, 2019, 06:45:22 pm »
How do I get VS to do tagging for .net?

In QuickStart -> Context Tagging, I see
c/C++ compiler libraries
java
perl
google go

But not .NET framework
I see .net in the Help file though.

I tried this with my existing config and a clean config.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2743
  • Hero Points: 419
Re: Context tagging .NET
« Reply #1 on: August 21, 2019, 09:37:41 pm »
SlickEdit will look for the .NET frameworks you have installed.

See the example below.  If you do not have anything listed, then you either do not have any .NET frameworks installed, or what you have installed is newer than what SlickEdit supports on Windows, or they were installed in a manner that left no trace in the Registry.

Also, you can always just create a C# tag file.

jporkkahtc

  • Senior Community Member
  • Posts: 1787
  • Hero Points: 174
  • Text
Re: Context tagging .NET
« Reply #2 on: August 21, 2019, 10:53:30 pm »
I've got a bunch installed ...
Yet none show up in V23 or V24.

I installed them with the installers I downloaded from Microsoft.

jporkkahtc

  • Senior Community Member
  • Posts: 1787
  • Hero Points: 174
  • Text
Re: Context tagging .NET
« Reply #3 on: August 26, 2019, 06:27:27 pm »
Anything else I can try to get Slick to autotag .net libraries?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2743
  • Hero Points: 419
Re: Context tagging .NET
« Reply #4 on: August 26, 2019, 08:47:45 pm »
This will be fixed in v24 beta3.

If you want to tag the assemblies yourself -- it is trivial:

   1) Tools > Tag Files > C# >
  • Add tag file...

   2) Uncheck [ ] Generate References
   3) (x) Create new tag file
            Save As:  dotnet.vtg
            Source Path:  C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.1\
   4) Uncheck [ ] Recursive
   5) Include filespecs:  *.dll;*.xml
   6) Click OK

You do not have to name the tag file "dotnet.vtg", that's just the name SlickEdit uses for the auto-generated one, so this way you can simply replace it instead of having duplicates.  If you want to tag a different version, just navigate to that version path under the .NETFramework or .NETCore directory hierarchy.