- ago
I'm in the process of moving some of my WL support code from VS 2019 using .NET 4.6.2 to VS 2022 using .NET 6.0. The problem is I can't find any .NET 6.0 assemblies anywhere even though I installed VS 2022 for .NET 6.0. So where are the greyed out assemblies (see screenshot) located on Windows? I can find them for .NET 4.7.2, but not 6.0. I'm looking for a path name.

0
647
Solved
3 Replies

Reply

Bookmark

Sort
Glitch8
 ( 8.08% )
- ago
#1
Is this preventing you from compiling the project? Or are you just worried they are greyed out? They are only greyed out as an indication that they're not actually being referenced in this Program.cs file.
0
- ago
#2
QUOTE:
They are only greyed out [because] they're not actually being referenced in this Program.cs file.

But they are referenced in the .NET 4.6.2 based project on VS 2019.

Ahhh. VS 2022 flags zero errors in Program.cs. Interesting. So you're saying all the greyed out assemblies are automatically included in the .NET 6.0 library together?

So the .NET 6.0 library contains less namespaces than .NET 4.6 and there aren't any name conflicts? Let me pause while I try to digest that thought. (I just don't believe it.)
0
Glitch8
 ( 8.08% )
- ago
#3
Visual Studio greys them out as a convenience feature, letting you know that you actually DON'T NEED those using statements in your code. You're not USING any of the classes in those namespaces.
0
Best Answer

Reply

Bookmark

Sort